Coding task · Next.js course · Module 2: Routing and Layouts
Practice: Dashboard Page
Next.js App Router: the /app folder contains all pages. page.tsx = page, layout.tsx = wrapper for pages. Export a default component function. Each folder = a new URL path. It's like a map of a cybernetic city!
Task
Create /app/dashboard/page.tsx: export default function Dashboard() { return <main className='dashboard-grid'><h1>Dashboard</h1><div className='lo-panel'>System Online</div></main> }. You will see the result in the preview next to the editor.