Skip to content

Refresh the site's look with a simpler, minimal layout - #238

Open
AustinAbbott wants to merge 2 commits into
masterfrom
claude/project-thread-g9w1oj
Open

AustinAbbott wants to merge 2 commits into
masterfrom
claude/project-thread-g9w1oj

Conversation

@AustinAbbott

Copy link
Copy Markdown
Owner

Requested by Austin · project thread

What changed

This is a from-scratch style cleanup, not a new theme. It's meant to feel clean and minimal, like Astro Cactus.

  • Layout: one narrow column (44rem) for the header, content and footer. The full-width shadowed nav bar, gray page gradient and heavy image shadows are gone.
  • Header: avatar and name on the left. The nav links, social icons and theme toggle are smaller and grouped on the right, and on mobile the nav links move to a second row.
  • Type: Inter for text and JetBrains Mono for code, both self-hosted through @fontsource-variable. The old Atkinson font files are removed. Headings are smaller and tighter.
  • Home: a short intro, then the five newest posts as a list with the date on the left, plus an "All posts" link.
  • Blog index: a simple list showing each post's date, title and description. The image cards are gone, but header images still appear on post pages.
  • Posts: the date, title and description are left-aligned above the header image, and the body text is easier to read.
  • Code blocks: Shiki now uses two themes (github-light and github-dark), so code follows the light/dark toggle instead of always being dark. Code blocks and inline code have subtle borders.
  • Footer: one quiet row with RSS, Source and "Built with Astro".

What didn't change

  • Post content, header images and URLs.
  • How the light/dark toggle works. The html.dark class, stored preference and __setTheme are untouched; only the colors changed.

Screenshots

The updated baselines in tests/visual.spec.ts-snapshots/ show before and after for every tested page in GitHub's image diff (Files changed → each PNG → Swipe or Onion skin). There are larger side-by-side comparisons in light and dark mode in the project thread.

Tests

  • bun run build passes (astro check: 0 errors).
  • I regenerated the visual baselines locally with Playwright 1.65.1 Chromium. All 8 tests pass locally against them. If CI's fonts render slightly differently, the baselines may need regenerating on the runner.

Generated by Claude Code

Narrow single column, Inter and JetBrains Mono, a quieter header and footer,
a compact post list on the home and blog pages, and code blocks that follow
the light/dark toggle. Posts, header images, URLs and the toggle are unchanged.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01DryVDiZcPz87KdNwvcAvjG
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01DryVDiZcPz87KdNwvcAvjG
@cloudflare-workers-and-pages

Copy link
Copy Markdown

Deploying dev-blog with  Cloudflare Pages  Cloudflare Pages

Latest commit: 3466735
Status: ✅  Deploy successful!
Preview URL: https://83c5312e.dev-blog-10f.pages.dev
Branch Preview URL: https://claude-project-thread-g9w1oj.dev-blog-10f.pages.dev

View logs

@AustinAbbott AustinAbbott self-assigned this Nov 23, 2026

Copy link
Copy Markdown
Owner Author

Visual snapshot tests are failing (7 of 8) because of how the baselines were made, not because of a layout bug.

I regenerated the baselines in a sandbox whose Chromium build is older than the one CI uses. Playwright 1.65.1 wants chromium_headless_shell-1255, but the sandbox only has build 1243 and can't download browsers. Text renders slightly differently between the two builds, so every page with text differs by about 2–3% of pixels, which is over the 1% threshold. The one test that passed is the page with the least text.

To fix it, the baselines need to be regenerated on the CI runner itself, the same way #222's were. That means temporarily adding a step to visual.yml that runs bun run test:visual:update and commits the PNGs back to this branch, then removing the step. I'm waiting on the go-ahead before I change the workflow.


Generated by Claude Code

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants