All Projects → Collected-Notes → static-template-nextjs

Collected-Notes / static-template-nextjs

Licence: MIT License
A Next.js based template of a blog built using the Collected Notes API

Programming Languages

typescript
32286 projects
javascript
184084 projects - #8 most used programming language
CSS
56736 projects

Projects that are alternatives of or similar to static-template-nextjs

Swr
React Hooks for data fetching
Stars: ✭ 20,348 (+106994.74%)
Mutual labels:  nextjs, swr, vercel
axiom
Axiom - A Hugo Theme. GitTip: https://gitcoin.co/tip?username=jhauraw
Stars: ✭ 67 (+252.63%)
Mutual labels:  tailwind, vercel
Next.js
The React Framework
Stars: ✭ 78,384 (+412447.37%)
Mutual labels:  nextjs, vercel
animeflix
A anime discovery, streaming site made with NextJs and TailwindCSS. Uses AniList API and video data from GogoAnime. No ads and no vpn required
Stars: ✭ 326 (+1615.79%)
Mutual labels:  tailwind, vercel
Material Kit React
React Dashboard made with Material UI’s components. Our pro template contains features like TypeScript version, authentication system with Firebase and Auth0 plus many other
Stars: ✭ 3,465 (+18136.84%)
Mutual labels:  nextjs, tailwind
Notion Blog
A Next.js site using new SSG support with a Notion backed blog
Stars: ✭ 2,339 (+12210.53%)
Mutual labels:  nextjs, vercel
Personal-Site-Gourav.io
My personal site & blog made with NextJS, Typescript, MDX, Tailwind CSS. Deployed on Vercel : https://gourav.io
Stars: ✭ 64 (+236.84%)
Mutual labels:  nextjs, vercel
wefootwear-store
next js footwear store e-commerce 🚀🚀🚀
Stars: ✭ 17 (-10.53%)
Mutual labels:  nextjs, vercel
portfolio
My personal portfolio website, proudly built with Next.js, TypeScript and Tailwind
Stars: ✭ 165 (+768.42%)
Mutual labels:  nextjs, vercel
netease-music-app
网易云音乐移动端【React/Next/Vue】【Ant Design/Material UI】
Stars: ✭ 95 (+400%)
Mutual labels:  nextjs, swr
dev-cover
🌐 Get and publish your developer portfolio with just your username
Stars: ✭ 155 (+715.79%)
Mutual labels:  nextjs, vercel
platforms
A template for site builders and low-code tools.
Stars: ✭ 1,156 (+5984.21%)
Mutual labels:  nextjs, vercel
Next-JS-Landing-Page-Starter-Template
🚀 Free NextJS Landing Page Template written in Tailwind CSS 3 and TypeScript ⚡️ Made with developer experience first: Next.js 12 + TypeScript + ESLint + Prettier + Husky + Lint-Staged + VSCode + Netlify + PostCSS + Tailwind CSS
Stars: ✭ 521 (+2642.11%)
Mutual labels:  nextjs, tailwind
expansion-pack
🔋 Useful stack expansion for ts-nextjs-tailwind-starter
Stars: ✭ 16 (-15.79%)
Mutual labels:  nextjs, swr
onlysetups
OnlyFans, but for pictures of desk setups.
Stars: ✭ 82 (+331.58%)
Mutual labels:  nextjs, vercel
dsmtech
🚀 The best tech companies and startups in the Greater Des Moines area.
Stars: ✭ 21 (+10.53%)
Mutual labels:  tailwind, vercel
notion-nextjs-blog
A starter blog template powered by Next.js, Notion and Tailwind CSS.
Stars: ✭ 25 (+31.58%)
Mutual labels:  nextjs, vercel
folio
Interactive Portfolio with Next, GSAP, Tailwind, and React
Stars: ✭ 20 (+5.26%)
Mutual labels:  nextjs, tailwind
benjamincarlson.io
My personal website built with Next.js, Chakra UI, Firebase, and next-mdx-remeote.
Stars: ✭ 102 (+436.84%)
Mutual labels:  swr, vercel
yearn-comms
Collection of communication, announcements, tweets, newsletters, and other articles about Yearn and a hosted blog for all translation contributors.
Stars: ✭ 16 (-15.79%)
Mutual labels:  nextjs, vercel

Collected Notes - Static Site Template with Next.js

This template is based on the Next.js JavaScript framework, and allows you to build a static website that can be updated automatically when notes are added or updated on your Collected Notes account.

Features

  • Incremental Regeneration - Deploy once and get incremental updates on your site everytime you create or update notes.
  • Dark Mode Support - Detect from system preference and per-site support user preference.
  • Search - Search between all of your notes.
  • Links on the note - List all the links used at the bottom of each note.
  • Easy to customize - Create a new repo based on this one and start customizing the look & feel.

How to create your static website

Requirements

Step 1: Create your deployment

Make sure you have created a Collected Notes premium account. Then go to your site settings and click on “Create static website” it should take you to the static deployments page.

Click on the vercel button:

Deploy with Vercel

Follow the steps. When prompted to enter your environmental variables use the ones that show up on the static deployments page.

These environment variables are:

Optionally, you can add the FEED_HOME_PAGE_URL environment variable to enable an RSS and JSON feed to work.


Customize your static website

If you want to customize the design of your static website, you can use this repository as a quick starter, in that case go to this URL https://github.com/Collected-Notes/static-template-nextjs/ and clone it.

Once you have the repo, you can start editing the files, below you can find more documentation on how the stack works:

Stack

These are the main technologies used to build the project

File Structure

The code is inside two main folders

  • public
  • src

Inside public there is a single dark-mode.js, this file is loaded first and avoid a flash of different styles between the HTML generated and the correct color schema.

Inside src you can find the style.css with global styles and types.d.ts with the types the different pages and layouts uses.

Then, there are more folders inside src

  • component - Hre live the few reusable components, all in TypeScript and using CSS Modules with Tailwind @apply directive to style them.
  • layouts - Here you can edit the layouts of the three different type of pages (article, home and search), they are also in TypeScript and CSS Modules with Tailwind.
  • pages - Pages import the layouts and are in charge of fetching the required data for each one, inside this folder you can find a custom API endpoint used to support the search feature.
  • queries - Here there is a single custom Hook built on top of SWR to request the /api/search endpoint.
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].