Coding task · Next.js course · Module 1: Next.js Configuration

Portfolio with App Router - Step by Step

Combine the skills from this module: an App Router page component, navigation with Link, rendering a list with key and styling with a CSS class.

Task

Build the home page of a portfolio with the App Router (file app/page.jsx) as a default-exported Portfolio component. Follow these steps in order: 1. The main element has className="portfolio". 2. At the top, put a <nav> with three <Link> links from next/link: "Home" (/), "Projects" (/projects) and "Contact" (/contact). 3. Add an <h1> heading with your name or nickname. 4. Create a projects array with at least 2 objects { id, title } and display it in a <ul> with map: each project as an <li key={project.id}> with its title. 5. In styles.css, add a rule for the .portfolio class (for example a background and spacing).