You've got a product idea. Maybe it's a SaaS tool, an open-source project, or a side project you want to ship fast. The first thing you need is a landing page that looks credible without eating a week of your time.
Next.js and shadcn/ui are a solid combo for this. Next.js handles routing, performance, and deployment. shadcn/ui gives you unstyled-but-beautiful components you actually own, without fighting a third-party design system.
By the end of this post, you'll have a working landing page with a navbar, hero, features grid, testimonials, and a CTA section. If you'd rather skip straight to a production-ready template, ChatDeck is a free shadcn/ui landing page you can grab right now.
Prerequisites
- Node.js 20.9+ installed (Next.js 16 requirement)
- Basic React familiarity
- A terminal you're comfortable with
That's it. No prior shadcn/ui experience needed.
A note on versions: This tutorial targets Next.js 16 (released October 2025; current stable is 16.x). Next.js 16 requires Node.js 20.9+ and uses Turbopack as the default bundler. The App Router code below works with Next.js 15 as well, but if you hit unexpected errors on either version, check the Next.js upgrade guide. Async params arrived in Next.js 15, not 16 — if you're coming from 14 or earlier, that's the change most likely to break existing code.
1. Setting Up the Project
Start a new Next.js project:
npx create-next-app@latest my-landing-page
cd my-landing-pagePick these options when prompted:
- TypeScript: Yes
- Tailwind CSS: Yes
- App Router: Yes
Now install shadcn/ui:
npx shadcn@latest initThe CLI walks you through a few config questions. Pick your base color (Neutral works for most landing pages) and let it set up your components.json and CSS variables.
Note (late 2026): npx shadcn@latest init now defaults to Base UI primitives (since July 2026). To use the older Radix primitives, add -b radix: npx shadcn@latest init -b radix. Both work with this tutorial, but the component code in your project will differ slightly: Base UI uses render={<Link />} where Radix used asChild, and data-open where Radix used data-[state=open]. If you copy a snippet from elsewhere and it doesn't work, check which primitive layer it targets.
Your folder structure will look like this:
my-landing-page/
├── app/
│ ├── layout.tsx
│ └── page.tsx
├── components/
│ └── ui/ ← shadcn components land here
├── lib/
│ └── utils.ts
└── tailwind.config.ts2. Planning Your Sections
A landing page that converts has a clear structure. Here's what we're building:
| Section | Job |
|---|---|
| Navbar | Orient the visitor, offer navigation |
| Hero | Communicate value in 5 seconds |
| Features | Back up the claim with specifics |
| Testimonials | Build trust with social proof |
| CTA | Give one clear next step |
| Footer | Housekeeping: links, legal |
Don't add sections because they look impressive. Each one should answer a question your visitor has. Hero answers "what is this?" Features answers "how does it work?" Testimonials answers "can I trust this?"
3. Building Each Section
Navbar
Install the Button component first; you'll use it everywhere:
npx shadcn@latest add buttonCreate components/Navbar.tsx:
import Link from "next/link";
import { Button } from "@/components/ui/button";
export function Navbar() {
return (
<header className="sticky top-0 z-50 w-full border-b bg-background/95 backdrop-blur supports-[backdrop-filter]:bg-background/60">
<div className="container flex h-16 items-center justify-between">
<Link href="/" className="text-xl font-bold">
YourProduct
</Link>
<nav className="hidden gap-6 md:flex">
<Link
href="#features"
className="text-sm text-muted-foreground hover:text-foreground transition-colors"
>
Features
</Link>
<Link
href="#testimonials"
className="text-sm text-muted-foreground hover:text-foreground transition-colors"
>
Testimonials
</Link>
<Link
href="#pricing"
className="text-sm text-muted-foreground hover:text-foreground transition-colors"
>
Pricing
</Link>
</nav>
<Button>Get Started</Button>
</div>
</header>
);
}Sticky navbar with a blur effect. No library needed, just Tailwind utilities.
Hero
The hero has one job: get the visitor to keep reading. Lead with the outcome your product delivers, not what it is.
Create components/Hero.tsx:
Ship your SaaS landing page in an afternoon
Stop rebuilding the same components. Get a production-ready landing page built on Next.js and shadcn/ui.
import { Button } from "@/components/ui/button";
export function Hero() {
return (
<section className="container flex flex-col items-center gap-6 py-24 text-center md:py-32">
<span className="rounded-full border bg-muted px-4 py-1.5 text-sm text-muted-foreground">
Now in public beta
</span>
<h1 className="max-w-3xl text-4xl font-bold tracking-tight md:text-6xl">
Ship your SaaS landing page in an afternoon
</h1>
<p className="max-w-xl text-lg text-muted-foreground">
Stop rebuilding the same components. Get a production-ready landing
page built on Next.js and shadcn/ui, customizable, fast, and yours to keep.
</p>
<div className="flex gap-4">
<Button size="lg">Get Started Free</Button>
<Button size="lg" variant="outline">
View Demo
</Button>
</div>
</section>
);
}Two CTAs: one primary, one secondary. The variant="outline" on shadcn's Button handles the visual hierarchy automatically.
Building the hero for a personal site rather than a product? A signature that writes itself above the headline takes one small Motion component, and the SVG signature animation tutorial covers tracing, timing, and reduced motion.
🚀 Want to skip building the hero from scratch? ChatDeck is a free shadcn/ui SaaS landing page template with a production-ready hero, gradient accents, and dark mode, already assembled and ready to customize.
Features
Install the Card component:
npx shadcn@latest add cardCreate components/Features.tsx:
Everything you need to ship
No fluff. Just the stack that gets it done.
Every component is yours. Copy it, modify it, ship it.
Server components, streaming, and layouts ready to go.
Light and dark mode work out of the box.
import { Card, CardContent, CardHeader, CardTitle } from "@/components/ui/card";
const features = [
{
title: "Built on shadcn/ui",
description:
"Every component is yours. Copy it, modify it, ship it. No locked-in design system.",
icon: "⚡",
},
{
title: "Next.js App Router",
description:
"Server components, streaming, and layouts, all set up and ready for you.",
icon: "🚀",
},
{
title: "Tailwind CSS",
description:
"Utility-first styling with a full design token system baked in via CSS variables.",
icon: "🎨",
},
{
title: "Dark Mode Ready",
description:
"Light and dark mode work out of the box. Toggle without writing a single line.",
icon: "🌙",
},
{
title: "TypeScript",
description:
"Full type safety across components, routes, and data fetching.",
icon: "🛡️",
},
{
title: "SEO Optimized",
description:
"Metadata API, Open Graph tags, and server rendering configured from day one.",
icon: "📈",
},
];
export function Features() {
return (
<section id="features" className="container py-24">
<div className="mb-12 text-center">
<h2 className="text-3xl font-bold tracking-tight md:text-4xl">
Everything you need to ship
</h2>
<p className="mt-4 text-muted-foreground">
No fluff. Just the stack that gets landing pages done.
</p>
</div>
<div className="grid gap-6 md:grid-cols-2 lg:grid-cols-3">
{features.map((feature) => (
<Card key={feature.title}>
<CardHeader>
<div className="mb-2 text-3xl">{feature.icon}</div>
<CardTitle>{feature.title}</CardTitle>
</CardHeader>
<CardContent>
<p className="text-muted-foreground">{feature.description}</p>
</CardContent>
</Card>
))}
</div>
</section>
);
}A data-driven grid. Adding a new feature means adding one object to the array, not touching markup.
Testimonials
Install Avatar:
npx shadcn@latest add avatarCreate components/Testimonials.tsx:
"Went from idea to live landing page in three hours."
Sarah Chen
Founder
"Clean, accessible, easy to extend."
Marcus Rivera
Engineer
"I handed this to a dev and they shipped it same day."
Priya Nair
Designer
import { Avatar, AvatarFallback, AvatarImage } from "@/components/ui/avatar";
import { Card, CardContent } from "@/components/ui/card";
const testimonials = [
{
name: "Sarah Chen",
role: "Founder, Launchpad",
avatar: "/avatars/sarah.jpg",
initials: "SC",
quote:
"Went from idea to live landing page in three hours. The shadcn components saved me an entire weekend.",
},
{
name: "Marcus Rivera",
role: "Senior Frontend Engineer",
avatar: "/avatars/marcus.jpg",
initials: "MR",
quote:
"Clean, accessible, easy to extend. This is how component libraries should work.",
},
{
name: "Priya Nair",
role: "Product Designer",
avatar: "/avatars/priya.jpg",
initials: "PN",
quote:
"I handed this to a developer and they shipped it the same day. The structure just makes sense.",
},
];
export function Testimonials() {
return (
<section id="testimonials" className="container py-24">
<div className="mb-12 text-center">
<h2 className="text-3xl font-bold tracking-tight md:text-4xl">
Developers ship faster with this stack
</h2>
</div>
<div className="grid gap-6 md:grid-cols-3">
{testimonials.map((t) => (
<Card key={t.name}>
<CardContent className="pt-6">
<p className="mb-6 text-muted-foreground">"{t.quote}"</p>
<div className="flex items-center gap-3">
<Avatar>
<AvatarImage src={t.avatar} alt={t.name} />
<AvatarFallback>{t.initials}</AvatarFallback> {/* shows initials if avatar image fails */}
</Avatar>
<div>
<p className="text-sm font-semibold">{t.name}</p>
<p className="text-xs text-muted-foreground">{t.role}</p>
</div>
</div>
</CardContent>
</Card>
))}
</div>
</section>
);
}The AvatarFallback shows initials if the image fails to load. Small detail, but it matters in production.
🖼️ Want to extend the testimonials with richer avatar patterns? The Shadcn Avatar guide covers status badges, avatar groups, and custom sizing, all patterns that show up in user-facing testimonials and team sections.
CTA Section
Create components/CTA.tsx:
Ready to ship your landing page?
Start from scratch or grab a free template and cut your build time to zero.
import { Button } from "@/components/ui/button";
export function CTA() {
return (
<section className="border-t bg-muted/50">
<div className="container flex flex-col items-center gap-6 py-24 text-center">
<h2 className="text-3xl font-bold tracking-tight md:text-4xl">
Ready to ship your landing page?
</h2>
<p className="max-w-md text-muted-foreground">
Start from scratch with this guide or grab a free production-ready
template and cut your build time to zero.
</p>
<div className="flex gap-4">
<Button size="lg">Start Building</Button>
<Button size="lg" variant="outline">
Browse Templates
</Button>
</div>
</div>
</section>
);
}Footer
Create components/Footer.tsx:
© 2026 YourProduct. All rights reserved.
import Link from "next/link";
export function Footer() {
return (
<footer className="border-t">
<div className="container flex flex-col items-center justify-between gap-4 py-8 md:flex-row">
<p className="text-sm text-muted-foreground">
© {new Date().getFullYear()} YourProduct. All rights reserved.
</p>
<nav className="flex gap-6">
<Link
href="/privacy"
className="text-sm text-muted-foreground hover:text-foreground transition-colors"
>
Privacy
</Link>
<Link
href="/terms"
className="text-sm text-muted-foreground hover:text-foreground transition-colors"
>
Terms
</Link>
<Link
href="/support"
className="text-sm text-muted-foreground hover:text-foreground transition-colors"
>
Support
</Link>
</nav>
</div>
</footer>
);
}Wiring It Together
Open app/page.tsx and pull all sections in:
Ship faster with shadcn/ui
Production-ready components, yours to keep.
import { Navbar } from "@/components/Navbar";
import { Hero } from "@/components/Hero";
import { Features } from "@/components/Features";
import { Testimonials } from "@/components/Testimonials";
import { CTA } from "@/components/CTA";
import { Footer } from "@/components/Footer";
export default function Home() {
return (
<main>
<Navbar />
<Hero />
<Features />
<Testimonials />
<CTA />
<Footer />
</main>
);
}Run npm run dev and you have a working landing page at localhost:3000.
4. Theming Your Landing Page
shadcn/ui uses CSS variables for its entire color system. Open app/globals.css and you'll see variables like:
:root {
--background: 0 0% 100%;
--foreground: 222.2 84.3% 4.9%;
--primary: 222.2 47.4% 11.2%;
--muted: 210 40% 96.1%;
/* ...and more */
}Change these and every component updates. You don't touch individual component files.
🎨 Don't want to write HSL values by hand? The shadcndeck Theme Generator lets you pick colors visually, preview them live across all components, and copy the CSS in seconds, no guessing required.
5. Don't Want to Build from Scratch?
Building section by section is a great way to learn the stack. But if you're shipping something real and want a head start, ChatDeck is a free shadcn/ui landing page template built for exactly this.
It includes:
- A production-ready hero with gradient accents
- Features grid with icons
- Pricing section with toggle
- Testimonials
- Dark mode out of the box
- Fully typed with TypeScript
You get the source. Modify it however you want. No attribution required.
ChatDeck covers the marketing page, not the sign-in flow. If your product needs one, see our shadcn login page templates guide for 5 free, copy-paste variants.
📋 Comparing more options before committing? The free shadcn templates guide reviews 15 open-source landing page starters with honest trade-offs for each one, useful if ChatDeck doesn't fit your use case.
Browse all available templates at shadcndeck.com/templates, or jump to our Next.js shadcn landing page templates if you want one built on the same stack as this tutorial.
6. A Few Things Worth Getting Right
Images: Use Next.js <Image /> instead of <img>. It handles lazy loading, resizing, and WebP conversion automatically.
import Image from "next/image";
<Image
src="/hero.png"
alt="Product screenshot"
width={1200}
height={630}
priority
/>Mobile first: Write your Tailwind classes mobile-first (text-4xl md:text-6xl). shadcn/ui components are responsive by default, but your layout decisions aren't.
Metadata: Add this to app/layout.tsx before you ship:
export const metadata = {
title: "Your Product: One-line value prop",
description: "Slightly longer explanation of what you do and who it's for.",
openGraph: {
title: "Your Product",
description: "...",
images: ["/og-image.png"],
},
};That block is the minimum. Canonical URLs, a generated Open Graph image, the sitemap and robots file, and rules for AI crawlers are all in our 21-point Next.js SEO checklist, which is worth running before you point a domain at the page.
For a deeper look at shadcn/ui component patterns, this blog has detailed breakdowns of components like tabs, accordions, and resizable sidebars.
Wrapping Up
You now have a full landing page with a navbar, hero, features, testimonials, CTA, and footer, built on Next.js and shadcn/ui. The stack is fast to build with, easy to maintain, and scales cleanly as your product grows.
If you got stuck on any step, ChatDeck's source has a working version of these sections on the same stack — clone it and compare your file against a reference that builds. The most common failure mode is a missing component install (npx shadcn@latest add button) or a typo in a Tailwind class name that the compiler doesn't catch.
If you want to skip the build and go straight to customizing, grab ChatDeck for free. It's the same stack, already assembled.
Related Posts
- Next.js SEO checklist for landing pages - Metadata, sitemap, Open Graph image and AI-crawler rules to set before you launch this page
- 10 best AI SaaS landing page templates - Skip the build and start from a premium template if your AI product needs a full site fast
- 15 Free Shadcn UI Landing Page Templates - Find a production-ready starting point faster than building from scratch
- Shadcn Tabs Component Guide - Add tabbed navigation and organized content sections to your landing page
- Shadcn Accordion Component Guide - Build FAQ sections and collapsible content blocks for your landing page
- Next.js rendering strategies: SSG, SSR, ISR and CSR - Keep your landing page fully static and know when a section needs to run per request
- Shadcn Avatar Component Guide - Testimonial avatars, user profiles, and avatar groups in detail
- Build an SVG signature animation in React - A self-drawing signature for a portfolio or personal-site hero
- Framer vs Next.js for a portfolio - When a site builder beats writing the page yourself, and what each costs per year





