8000 GitHub - anish274/anish3d-f: 🚀 Personal website / blog / portfolio built using TypeScript, Next.js, Tailwind CSS and Notion API
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
/ anish3d-f Public template
forked from BartoszJarocki/jarocki.me

🚀 Personal website / blog / portfolio built using TypeScript, Next.js, Tailwind CSS and Notion API

License

Notifications You must be signed in to change notification settings

anish274/anish3d-f

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

screenshot

Anish Shah - Personal website built using Next.js and Notion as headless CMS (Original by Bartosz Jarocki)

This is my personal website I have forked and customized as per my needs. Originally built using

✨ Additional Implementation ✨

Running locally

To run application locally few environment variables have to be defined (in .env.local):

  1. NEXT_PUBLIC_URL - used to create absolute urls, for example canonical links and open graph images
  2. NOTION_TOKEN - used by Notion API client, nore info here
  3. NOTION_DATABASE_ID - used to fetch notes/blog post list

There's a certain data format of Notion database that's needed by application. When fetching the database content, application expects the following properties to be configured in the database:

  1. id
  2. created_time
  3. last_edited_time
  4. cover
  5. hashtags
  6. title
  7. description
  8. slug - used as a notes slug for example in /notes/hello-world the slug would be hello-world
  9. published - used to filter unpublished notes from available notes list
  10. publishedAt
  11. inProgress - used to display Work in progress badge on in the notes list

Here's how the database in Notion should look like:

notion notion2

After defining environment variables and your Notion database, run the application

git clone https://github.com/anish274/anish3d.com-f
cd anish3d.com-f
yarn
yarn dev

OG images generation

Application generates Open Graph images automatically using lambda functions and Puppetter

Main page example main page OG image

Blog post example blog post OG image

Credits

Deploy to Vercel

Deploy with Vercel

License

MIT


Last updated: 2024

About

🚀 Personal website / blog / portfolio built using TypeScript, Next.js, Tailwind CSS and Notion API

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • TypeScript 92.1%
  • JavaScript 6.8%
  • CSS 1.1%
0