Lesson 1 · 12 min · Free
Project setup with Next.js
Create the project, add Tailwind and Motion, and learn the three folders you'll actually touch.
Every site in this course is a Next.js app. Next.js gives you pages, fast loading and one-click hosting on Vercel, and it's what Velour itself runs on. You'll write React components and style them with Tailwind classes.
1. Create the project
Install Node.js 20 or newer from nodejs.org, open a terminal in the folder where you keep projects, and run:
npx create-next-app@latest cinematic-site --typescript --tailwind --app --eslint
cd cinematic-site
npm install motion
npm run devOpen http://localhost:3000. You should see the Next.js starter page. Leave this terminal running: the page reloads by itself every time you save a file.
2. The folders that matter
- app/page.tsx: your home page. Everything you see at / comes from this file.
- app/layout.tsx: the frame around every page (fonts, <html>, <body>).
- app/globals.css: global styles. Tailwind is already imported here.
- public/: images and files served as-is, e.g. public/hero.jpg becomes /hero.jpg.
3. Start from a clean page
export default function Home() {
return (
<main className="min-h-dvh bg-[#05060a] text-white">
<section className="grid min-h-dvh place-items-center px-6">
<h1 className="text-5xl font-semibold tracking-tight">Hello, cinematic web.</h1>
</section>
</main>
);
}Tip: Tailwind classes read like sentences: min-h-dvh means 'at least the full screen tall', place-items-center centres the content, tracking-tight pulls letters closer together.
Build it with Claude Code
Create a new Next.js App Router project with TypeScript and Tailwind called cinematic-site, install the motion package, and replace app/page.tsx with a full-screen dark hero (background #05060a) that centres the heading "Hello, cinematic web." Explain each file you changed in one sentence.