π Building a Portfolio Website with Next.js + Sanity (Headless CMS)
Recently, Iβve been exploring Sanity (a headless CMS) and how it integrates with Next.js for building a portfolio site.
As a frontend dev + designer, I wanted something flexible, scalable, and easy to update without touching code every time.
πLive Demo + Code
- GitHub Repo π https://github.com/irwingb1979/sanity_cms_headless
- Live Demo π https://sanity-cms-headless.onrender.com
π οΈ Tech Stack
- Next.js β React framework for frontend
- Sanity β Headless CMS for managing content
- TypeScript β Type safety
- Tailwind CSS β Styling
- Vercel β Deployment + hosting
β‘ Why Headless CMS?
A headless CMS like Sanity gives me:
- Structured content (projects, blog posts, about page)
- API-first approach (fetch data via GROQ queries)
- Easy updates (no need to redeploy for every content change)
- Works seamlessly with frontend frameworks like Next.js
π Project Structure
bash
my-portfolio/
βββ app/ # Next.js App Router pages
βββ components/ # UI components
βββ lib/ # Sanity client setup
βββ sanity/ # Sanity schema & config
βββ tailwind.config.js
βββ package.json
Top comments (0)