Close the earlier lessons and build this from the brief.
The brief
A site for a Study Club, with three pages:
| Route | Heading | Content |
|---|---|---|
/ | Study Club | We learn together. See the schedule., where schedule links to /schedule |
/schedule | Schedule | A list: Week 1: Pages and routes, Week 2: Server and client components |
/members | Members | A list: Ada, Grace, Linus |
On every page:
- a navigation bar with Home, Schedule and Members links, at the top;
- a footer, Study Club meets every Thursday., at the bottom.
Also:
- The home page's heading has its own colour, from a CSS Module.
- An unknown address shows No such page with a link back home, and still has the navigation and footer.
Acceptance checks: follow every link, use the back button, and try /nope.
Runs with real Next.js on your computer: unzip, then
npm install and npm run dev. Hint 1: the files
app/schedule/page.jsx, app/members/page.jsx, app/not-found.jsx and
app/page.module.css, plus changes to app/layout.jsx and app/page.jsx.
Hint 2: on every page
The navigation and footer go in the root layout, around {children}.
Show one solution
Runs with real Next.js on your computer: unzip, then
npm install and npm run dev. Check yourself
- Which file makes the page at
/members? - What does a layout receive as
children, and what stays on screen when you follow a link? - Why use
Linkinstead of<a>for your own pages?
Completion is saved in this browser only. It does not measure mastery.