Skip to content

Praneel7015/landing-page

Repository files navigation

Landing + Blog (Next.js Pages Router)

A simple personal landing page with a blog, built on the Next.js Pages Router tutorial and customized to my liking.

Why I made this

  • I was doing the official Next.js Pages Router Tutorial and then thought i can modify and use it, so i modified the layout, styling, and structure to fit my use (landing page, dark/light theme toggle, Linktree-style links, and a blog Page).

How to use (fork/clone + run)

  1. Fork this repository on GitHub (or) Directly Clone the Repository.

  2. Clone the project locally:

    git clone https://github.com/<your-username>/landing-page.git
    cd landing-page
  3. Install dependencies and run the dev server:

    • Node.js 18+ recommended
    • Install and run:
    npm install
    npm run dev
    
  4. Open http://localhost:3000

Customize it

  • Profile image: replace public/images/profile.jpg.
  • Name and site title: edit components/layout.js (name and siteTitle).
  • Landing page intro and links: edit pages/index.js.
  • Favicon: replace public/favicon.ico.
  • Theme colors: adjust CSS variables in styles/global.css.
  • Blog content: add markdown files under blog/posts/.
  • Images in posts: put images in public/ and reference as ![alt](/path/in/public.png).

Write blog posts (Markdown)

  • Posts live as Markdown files in the blog/posts/ folder (not pages/posts).

  • Each post needs front matter at the top:

     ---
     title: "My Post Title"
     date: "2025-08-15"
     ---
    
     Your content here in Markdown.
    
  • The blog index is at /blog. Each markdown file becomes a post at /blog/posts/[id], where [id] is the filename (without .md).

Deploy

  • Build with npm run build and deploy to your host of choice (I Used Vercel). Importing the repo into Vercel auto-detects Next.js.

Attribution

About

Using NextJS, Made my Own Landing+ Blog Page, NOW HOSTED ON AWS AMPLIFY!

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published