/Portfolio

A Portfolio created by Matthew Harwood

Primary LanguageJavaScriptOtherNOASSERTION

Morning Harwood

A Portfolio by Matthew harwood

This is a working example of a SSG with partial(selective) hydration[⚡🧩💦].

Why

The server and client render should not be 1:1. Don't render buttons on the server that require JS to work. Don't ship code to the client that simply repeats what the server has already done

Inspired by:

Technology

  • htm/preact
  • preact/hooks
  • web-components
  • TailwindCSS
  • PostCSS / PurgeCSS
  • Hosted by www.render.com for the Brotli Compression
  • Quicklinks
  • Turbolinks inspired router based on HighwayJS
  • AnimeJS (Animation)

Up and Running

  • npm i
  • npm run dev

Production build

  • npm run build

TODO:

Done

  • Prefetch templates based on Quicklinks.
  • Lazy evaluate hydrated components with intersection observer
  • Add Popmotion Pure
  • Add Highway JS
  • Tailwind integration.
  • Add Preact and Partial Hydration
  • PurgeCSS.
  • Put in hydration for clientside
  • html minification.

TextContainer Removal (Reference, needs manual custom addition):

  • highlight-vertical
  • sandwich-layout
  • card-icons