Skip to content

Repository files navigation

Blog

This is a blogging platform that utilizes Sanity as a leightweight headless CMS.

Setup

Sanity

cd blog sanity start runs on localhost:3333

Nextjs

npm run build npm run dev runs on localhost:3000

\

Folder structure

Component structure

  • Every page contains
    • navbar (left)
    • main (middle)
    • sidebar (right)
  • The sidebar is outsourced into own component, because it doesn't vary much between pages
    • Homepage (index.tsx) and bookmark page (bookmarked.tsx) share the same sidebar



\

Next.js + Tailwind CSS Example

This example shows how to use Tailwind CSS (v3.0) with Next.js. It follows the steps outlined in the official Tailwind docs.

About

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages