Giter Site home page Giter Site logo

bartoszjarocki / jarocki.me Goto Github PK

View Code? Open in Web Editor NEW
259.0 6.0 29.0 33.19 MB

๐Ÿš€ Personal website / blog / portfolio built using TypeScript, Next.js, Tailwind CSS and Notion API

Home Page: https://jarocki.me

License: MIT License

JavaScript 3.87% TypeScript 93.69% CSS 2.43%
nextjs typescript tailwindcss react portfolio reactjs blog notion notion-api notion-blog

jarocki.me's Introduction

screenshot

Bartosz Jarocki - Personal website built using Next.js and Notion as headless CMS

This is my personal website built using

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

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

git clone https://github.com/BartoszJarocki/web-jarocki-me
cd web-jarocki-me
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

Design heavily inspired by Tailwind UI Spotlight template

Deploy to Vercel

Deploy with Vercel

License

MIT

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.