All posts

How this site is built, and why it is one site

Why a portfolio, a client pitch page, a gallery and a bookshelf share one domain, and the small stack that runs it.

I write code for a living, make art on the side, and publish books. For a while those lived in three different places, and none of them pointed at the others. This site is the fix: one domain, one codebase, and a section for each thing.

One site, several audiences

A recruiter wants to see engineering work. A shop owner wants to know whether I can build them a website. Someone who likes a piece of art wants to ask about it. These people rarely overlap, so each section is written for one of them, and the sections that matter most have their own links. The portfolio lives at its own address and has its own contact form, so job enquiries never get mixed in with everything else.

The stack

The site is built with Astro. Astro ships almost no JavaScript by default, which keeps pages fast on a phone, and it handles Markdown natively, so this post is a plain text file in the project.

  • Pages are Astro components with a little shared data for projects, paintings and books.
  • The blog is a folder of Markdown files with a title, date and category at the top.
  • Page transitions use the browser’s view transition support, so moving between sections feels like one continuous page.
  • The hero on the home page is a small canvas script. It draws a few brush strokes when the page loads and then lets visitors paint over it.

What I’d do differently

I started with the design and wrote the content second. Next time I would write the words first. A page that has to say something specific usually ends up looking better than a layout waiting to be filled.

More posts will follow as I build things worth writing about.

Get new posts by email

Occasional, and only when there’s something worth reading.