all projects

This website

How I rebuilt itsjustben.co.uk with Astro and Cloudflare, with a public blog and a family-only private area.

  • Astro
  • TypeScript
  • Cloudflare Workers
  • Cloudflare Access
  • Claude Code

This site is my corner of the internet: a blog, write-ups of things I’ve built, and a private area that only my family can get into. It’s also a project in itself, so this is the write-up of how it was built.

Why I rebuilt it

The first version, back in January 2025, used Quartz. Quartz is a tool for publishing Obsidian-style notes as a website. It got a CV online quickly, but I was always working against it. It’s designed for a linked “digital garden” of notes, not a personal site with a blog, a projects page and a CV. Every layout tweak meant digging through someone else’s framework.

I also wanted somewhere private for the family: a recipe book, and eventually links to things we host at home, like a photo library. That needs a login, and a static notes site can’t do that.

So in November 2026 I started again from scratch.

How it’s built

Astro builds the site. Blog posts, project write-ups and recipes are plain Markdown files, which suits me. I can write in VS Code, and Astro checks each file’s details (title, date, tags and so on) when the site builds. A missing date or a typo in a field stops the build rather than going out broken.

Cloudflare Workers hosts it. Most pages are built ahead of time and served as plain files, which is fast and costs nothing at this scale. The private pages are the exception: they’re generated on each visit so they can check who’s asking.

Deploys are automatic. When I push to the main branch on GitHub, Cloudflare builds and publishes the site. A GitHub Action runs the same checks, so a broken change is caught before anyone sees it.

The CV is kept in a Google Doc, because that’s where I actually edit it. When it changes, I ask Claude to port the doc into the site’s CV data file. The page is generated from that file and prints cleanly. It isn’t linked from the menu or listed for search engines: it lives at an unguessable address that I send to people when they need it.

The design

The first design was a terminal look called “Console”. It was tidy but a bit boring, so a week later I redesigned it. I went through a dozen mock-ups with Claude, from late-night Tokyo neon to ink drawings to post-apocalyptic field notes, and landed somewhere I didn’t expect: something with a bit of speed to it, inspired by the lightning-and-speed-lines look of comic-book superheroes, toned right down.

The result is black and grey, with one red-to-gold line that moves. It sweeps under the nav, runs across a card’s top edge when you hover over it, and fills along the top of the page as you read. The headline has a short speed trail that stretches out when you hover over it. Headings are in Barlow Condensed italic, the reading text is IBM Plex Sans, and dates and labels are IBM Plex Mono.

The homepage in dark mode: a large italic 'Hi, I'm Ben.' headline with a red speed trail behind it, an introduction underneath, and a numbered menu (Home, Blog, Projects, Personal) to the right of the headline.
The homepage. The menu sits beside the headline rather than in the header.

A few decisions that shaped it:

  • The menu sits beside the headline on the homepage. I wasn’t sure it would work, so I asked to see it before deciding. On every other page there’s no big headline to sit next to, so the menu moves into the header, in the same style.
  • Blog posts and write-ups have an “On this page” list down the right-hand side, numbered to match the section headings, with the section you’re reading marked as you scroll. Code blocks get a copy button.
  • I took a few things out along the way. A lightning-bolt logo went. So did a motion-blur effect on card titles, because it hurt my eyes. Every effect switches off for anyone whose device is set to reduce motion.
  • Light mode was designed properly, not just inverted. The bright gold is fine for lines but unreadable as small text on white, so text that uses the gold gets a darker amber in light mode. The site follows the device setting until you press the sun/moon button, then remembers your choice.
This write-up in light mode: an off-white page with the title 'This website' in large black italic capitals, a row of technology tags, and an 'On this page' list on the right with the first section marked by a short red-to-gold line.
A write-up in light mode, with the contents list on the right.
The homepage on a phone in dark mode, with the menu moved below the introduction.
This write-up on a phone in light mode, with the menu on its own row under the site name.

The constraint that matters most is that I’m red-green colour blind. Red and gold only ever appear together as a decorative line, never as a signal. Links are always underlined, the current page and section are marked with a line rather than just a colour, and the old private pages picked up the new theme without being rewritten. It’s a good discipline anyway: if a design only works in colour, it doesn’t really work.

The private area

Anything under /private is for family only, and it’s locked down twice:

  1. Cloudflare Access sits in front of the site. Anyone who isn’t on the family list is asked to log in and is turned away before their request reaches the site.
  2. The site checks again. Every private page verifies the login token Cloudflare Access attaches. If Access were ever misconfigured, the site refuses the request instead of quietly showing private pages.

That second layer felt like overkill at first, but it means a slip in a dashboard setting can’t leak anything. The site fails closed.

The first thing in there is a recipe book for the meals my partner and I cook regularly. Each recipe is a short Markdown file with ingredients, method and notes, plus serving size, timings and tags. The list page has a search box that also looks inside the ingredients, so “that one with chickpeas” works, and tag filters for things like “weeknight” or “veggie”. It’s deliberately simple: no database, no app to install, just a page on my phone in the kitchen.

The personal section and the stadium map

I have a hobby: I go to football grounds, in all sorts of countries and divisions, take a photo of myself outside and buy the shirt. I wanted a page where people could see where I’ve been and where I haven’t, so the site now has a personal section for non-work things, starting with a map of football stadiums. It’s built so I can add more later, like races I’ve run, by dropping in a new page and adding a card to the list.

The map shows about 660 grounds across 36 leagues: England down to the National League, Scotland’s top two tiers, the top two tiers of the big European countries, and the top flights of others like MLS, Brazil and Japan. Grounds I’ve been to get a solid marker with a tick. The rest are small hollow rings, grouped into numbered clusters when you’re zoomed out. You can filter by country or league, or search for a ground, club or town. Clicking a ground shows its clubs and league, and if I’ve been, the date, my photo from outside and the shirt I bought.

The stadium map in dark mode, centred on Europe. Two grounds are marked with solid white circles containing a tick; the rest appear as numbered hollow circles grouping grounds not visited yet. Above the map are All, Been and Not yet buttons, country and league drop-downs and a search box; below it, a key explains the three marker types.
The map in demo mode, with two made-up example visits. Shape, not colour, separates visited from not visited.
A close-up of the map around Carlisle in light mode, with a popup for Brunton Park showing Carlisle United, National League tier 5, 18,202 capacity, 'Been: 14/03/2026', a placeholder drawing of a person outside a stand and '2025/26 away shirt · £45'.
Clicking a ground shows when I went, my photo from outside and the shirt I bought (example data).

How it works:

  • The list of grounds comes from Wikidata, the free database behind Wikipedia. A script asks it for each league’s clubs and their home grounds, with coordinates, and saves the result into the site. The site never calls Wikidata itself, so a slow or changed Wikidata can’t break a build. I re-run it once a season, after promotions and relegations.
  • Wikidata is patchy in places, so the script checks each league against its real size and warns me when it looks short: right now the Scottish Championship, Belgium’s second tier and Argentina’s top flight are missing a few grounds. Hand fixes live in a separate file so a refresh never wipes them.
  • Logging a visit is one short entry in a text file: the ground, the date, and optionally my photo from outside and the shirt’s season, home or away, and price. Photos go straight from my phone: the build resizes them and strips the camera’s location data, including from the original files Astro copies into the site. The site checks every entry when it builds, so a typo in a ground’s ID stops the build with a message rather than putting a tick in the wrong place.
  • The map is MapLibre with OpenFreeMap tiles, which are free and need no account. It follows the site’s light and dark modes.
  • Colour-blind safe, as always: been there and not yet differ by shape and size, and the key spells it out in words.
The 'Visits' list: two cards with placeholder drawings of a person outside a stadium, for Brunton Park and St James Park in Exeter, each with the date, club, shirt details, price and a 'show on map' link.
The stadium map on a phone in dark mode, with the filters stacked above the map and the key below it.

Under the map there’s a gallery of every visit with its photo, newest first, and a table of progress by country. That also means everything on the map can be read without it.

Logging a visit from my phone

Editing a text file is fine at my desk, but I’m usually at the ground when I want to log a visit. So there’s a page in the private area, only for me, that does it from my phone.

I pick the photo I’ve just taken outside the ground. The page reads when and where it was taken, suggests the nearest grounds (and tells me if I’ve been to one before), and fills in the date. I can add the shirt details, check a summary, and press Save. If a ground isn’t on the map, say a non-league ground or a cup final at Wembley, it switches to “not on the map” and fills in the photo’s location instead.

The 'Add a stadium visit' page on a phone. A placeholder photo has been chosen; below it the page says the photo was taken on 12/09/2026 with the nearest ground 3 metres away, and lists Bramall Lane (selected) and Hillsborough Stadium, 5 km away, as the nearest grounds. The ground and date fields are already filled in.
The check screen on a phone: 'Add this visit?' with the placeholder photo, 'Bramall Lane · Sheffield United F.C.', '12/09/2026 · 2026/27 away shirt £70', and Change and Save buttons (here labelled 'Run the practice' because practice run is ticked).

Saving doesn’t go into a database. The page adds the visit and the photo to the website’s code on GitHub, in one go, which makes the site rebuild itself: a few minutes later the new tick is on the map. That keeps one list of visits, with a full history, and the same checks as when I edit the file by hand. Before it’s uploaded, the photo is shrunk on my phone, which also strips out where it was taken. There’s a practice mode that checks everything without saving.

I also got fed up typing the private area’s address, so once I’ve signed in, the menu on the public pages shows a “private” link. It’s only a shortcut: the private pages still need the proper login.

Working with Claude

I built most of this with Claude Code as a pair programmer. I set the direction, design rules and constraints (colour-blind safe, fail closed, keep it simple), and Claude wrote most of the code and the README. It worked well for a project like this, where I know exactly what I want but don’t write front-end code every day. The README is written so that future me, or Claude, can pick it up without remembering how it all fits together.

What’s next

  • More things in the private area, starting with a self-hosted photo library reached through a Cloudflare Tunnel
  • Actually writing blog posts, mostly about moving into analytics as a career change

Changelog

28/11/2026

  • Added a private page, just for me, that shows my project backlog from GitHub as a kanban board: a column for each stage (new ideas, shaped, ready to start, in progress, done) and a row for each bigger project, so I can see how far through each one I am. I find GitHub’s own board fiddly, and this reads the same data live in a layout I can actually scan. Anyone in the family can also log an idea for me from the same page, and it drops straight into the backlog’s inbox. And when I can’t decide what to do next, it suggests one thing to pick up and says why, favouring finishing what I’ve started over starting something new.

27/11/2026

  • Took the CV out of the menu and moved it to an unguessable address, hidden from search engines, so only people I send the link to will find it.
  • Added a private page for logging a stadium visit from my phone: pick the photo, it reads the date and location and suggests the ground, then saving commits it to the site, which rebuilds and puts it on the map a few minutes later.
  • The menu now shows a “private” link once I’ve signed in, instead of me typing the address.
  • Added a public personal section, with a map of football stadiums: about 660 grounds across 36 leagues from Wikidata, ticked when I’ve been, with the date, my photo from outside and the shirt I bought.
  • Added a build step that strips camera metadata (including GPS location) from every image on the site.
  • Logged my first 50 grounds. Claude filled in most of them from my photos: the date and GPS each photo was taken with, matched to the nearest ground, and for older photos without GPS, the signs and landmarks in the picture.
  • Added “personal” to the menu.

26/11/2026

  • Redesigned the site with a new “Velocity” theme: black and grey with a moving red-to-gold line, italic display type, and proper light and dark modes with a toggle in the header.
  • Moved the homepage menu beside the headline, and gave inner pages a numbered menu in the header.
  • Added an “On this page” list, reading progress bar, copy buttons on code and “Keep reading” cards to posts and write-ups.
  • Switched dates to DD/MM/YYYY and added screenshots to this post.

22/11/2026

  • Added the private recipe book at /private/recipes/, with search and tag filters.
  • Wrote this project post.

21/11/2026

  • Replaced the Quartz site with Astro on Cloudflare Workers.
  • Built the Console theme, blog, projects and CV pages, and the private area behind Cloudflare Access.
  • Set up automatic deploys through Cloudflare Workers Builds.

Keep reading

parkrun + Spoons

A page that pairs parkruns with the nearest Wetherspoon for a post-run breakfast. A public finder for anyone, plus a private version that tracks the ones we've done.

Smart home

Tidying up the tech around the house, starting with stripping the ads, trackers and clutter out of my Google TV box and giving it a home screen that matches this website.

Training planner

A training plan that writes itself into my calendar and onto my Garmin watch, moves around the rest of my life, and eases off after a bad night's sleep.