Skip to content

tom-nightingale/next-boilerplate

Folders and files

NameName
Last commit message
Last commit date

Latest commit

author
Tom Nightingale
Oct 4, 2022
3311c0d ยท Oct 4, 2022

History

45 Commits
Oct 4, 2022
Oct 4, 2022
Oct 4, 2022
Jul 6, 2021
Oct 4, 2022
Mar 18, 2021
Sep 30, 2022
Oct 3, 2022
Sep 30, 2022
Jul 6, 2021
Sep 30, 2022
Sep 30, 2022
Sep 30, 2022
Sep 30, 2022
Nov 9, 2021
Oct 4, 2022
Oct 4, 2022
Jan 12, 2022
Oct 3, 2022
Oct 4, 2022

Repository files navigation

NextJS Boilerplate

NextJS boilerplate based upon the Shiftwalk Starter and expanded with the following enhancements:

Shiftwalk Starter

Demo: https://sg-next-tailwind-motion.vercel.app/

A simple Next.js boilerplate with TailwindCSS (JIT), Framer Motion, and a few other nice bits preconfigured.

โœจ Features

*To remove Preact and switch back to React simply remove the code in next.config.js

Roadmap / Coming Soon...

  • Feature branch with Sanity preconfigured
  • Feature branch with DatoCMS preconfigured
  • Feature branch with GSAP preconfigured

๐Ÿš€ Quick start

  1. Clone the repo

    git clone https://github.com/samuelgoddard/next-tailwind-motion.git
  2. Start developing

    Navigate into your new siteโ€™s directory and install the local dependencies first, then run the dev command.

    cd next-tailwind-motion/
    
    npm i
    npm run dev
  3. Open the source code and start editing!

    Your site is will be running at http://localhost:3000

๐Ÿ—„ Directory Structure

|-- components
    |-- container.js *// A simple container component to wrap areas in a max width*
    |-- fancyLink.js *// A simple wrapper around `next/link`
    |-- footer.js *// Example footer component*
    |-- header.js *// Example header component*
    |-- layout.js *// Layout component that can be used to wrap your pages in a global layout*
|-- gql
    |-- apolloClient.js *// apollo graphQL client to query endpoint*
    |-- queries.js *// singular graphQL query file*
    |-- gen
        |--codegen.ts *// automatically generated types from graphQL endpoint (after running `npm run codegen`)*
        |-- schema.json *// automatically generated schema from graphQL endpoint (after running `npm run codegen`)
|-- helpers
    |-- seo.config.js *// default SEO configuration helper, imported in `pages/_app.js`*
    |-- transitions.js *// re-usable framer motion transition helper with a basic 'fade' transition to get started*
|-- pages
    |-- _app.js *// Includes default SEO component & Framer motion AnimatePresence init*
    |-- _document.js *// Default Next document component*
    |-- about.js
    |-- index.js
|-- public *// Next public assets*
|-- styles
    |-- _fonts.css *// custom webfont styles*
    |-- _typography.css *// custom typographical styles*
    |-- main.css *// Tailwind init and custom css imports*
|-- .gitignore
|-- tsconfig.json *// module aliasing & typescript options*
|-- postcss.config.js *// Tailwind, CSS import, CSS nesting init*
|-- next.config.js *// Prefer Preact to React*
|-- package.json
|-- README.md
|-- tailwind.config.js

About

Nextjs Boilerplate

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published