The goal is to create a dashboard using the below set of technologies:
Create a new Nextjs app with the following options:
What is your project named? next-dashboard-challenge
Would you like to use TypeScript? Yes
Would you like to use ESLint? Yes
Would you like to use Tailwind CSS? Yes
Would you like to use `src/` directory? No
Would you like to use App Router? (recommended) Yes
Would you like to customize the default import alias? Yes
What import alias would you like configured? @/*
-
Recreate the screen below using the
app/layout.tsx
file for the navbar, andapp/page.tsx
for the content. Tailwindcss must be used for styling. -
Add a product page
app/products/page.tsx
that displays the following: -
Add navigation links to the navbar.
Dashboard
must navigate to root page, andProducts
must navigate to the product page. See below image for reference. The navbar must be available on all pages. -
Add a form for creating a new product, and show all products in a table on the homepage:
- Install shadcn.
- Add the form and data table components.
- Use the components on the homepage so it looks like this:
-
[ ]