This site is a static Astro build with exactly two server routes: the contact page and the endpoint it posts to. Everything else is plain HTML generated at build time, which is why pages open fast even with a WebGL hero on the front page.
One codebase, two hosts
It runs on Netlify today and will move to my own server later. Rather than maintain two versions, astro.config.mjs reads an ADAPTER environment variable: netlify by default, node for the server build that ships in a Docker image behind Caddy. The only code that cares is the contact endpoint, and it reads its secrets from environment variables on both hosts.
Content lives in files
Projects and blog posts are Markdown in content collections, validated with a Zod schema. A post with a bad date fails the build instead of rendering Invalid Date in production. The “Right now” line on the home page is a small JSON file, so updating it is a one-line commit.
Where the weight went
- Worth it: a variable display font whose width axis animates in the hero, GSAP ScrollTrigger for the pinned project film strip, and Lenis for smooth scrolling. Together they give the page its feel for a modest amount of JavaScript.
- Worth it, but load it late: the command palette. It is a dynamic import that only downloads when you press Cmd or Ctrl and K, or click the button.
- Careful with: anything that runs every frame. The hero shader and the physics toys only run while they are on screen, using an IntersectionObserver, so a page you scrolled past isn’t burning battery.
Things I’d skip
The first-visit intro overlay looks good, but it delays the first paint of the actual content on a cold load. If I started again I’d keep it under a second and skip it entirely on slow connections. I’d also decide on the font roles up front: one display face, one text face, one mono for tags and dates, and a handwriting face used only for the mascot’s speech. Mixing fonts works when each one has a single job.