This is a free Next.js starter project with dynamic layouts by iJS.to.
This project features the following:
-
NextJS app with dynamic layouts handled by components in
layouts/
folder. -
custom _app.js file to support the layouts component
-
Modular CSS examples
-
dynamic and static page examples
You can see a live demo of this repo at iemotion-nextjs.now.sh
This is a Next.js starter project with dynamic layouts.
The purpose is to have different layouts for different parts of your website. For example you may want to display a different layout for user dashboard, single blog post and blog post lists - we'll call them SingleBookLayout instead of SingleBlogPost, because why not. ¯\_(ツ)_/¯
This example has been prepared to core 2 cases - main layout and single blog post.
- Clone the the starter repo
git clone [email protected]:ijsto/iemotion-nextjs.git
- Enter the directory
cd iemotion-nextjs
- Install project dependencies
npm install
or npm i
To run the project locally:
npm run dev
Starter project is live at: http://localhost:3000
All contributions and/or feature requests are most welcome!