Create project
Start by creating a new Next.js project using create-next-app
:
Follow the Steps
Follow the steps and install dependencies and copy paste code of the components
Add Utils file
App structure
- I place the UI components in the
components/eldoraui
folder. - The rest of the components such as
<Header />
and<Navbar />
are placed in thecomponents
folder. - The
lib
folder contains all the utility functions. I have autils.ts
where I define thecn
helper. - The
styles
folder contains the global CSS.
That's it
You can now start adding components to your project.