From 1bfdb5e77f7ac9db1c43056eaa42e0621904bcb7 Mon Sep 17 00:00:00 2001 From: August Cayzer Date: Wed, 21 Oct 2026 01:18:14 +0100 Subject: [PATCH] feat(site): fit phones, add the Docs pill, contact and a gentle reveal --- AGENTS.md | 4 +- src/components/Footer.astro | 19 ++++---- src/components/Header.astro | 78 ++++++++++++++++++++++++++++++++ src/components/Question.astro | 38 +++++++++++++--- src/layouts/Base.astro | 8 ++-- src/pages/404.astro | 2 +- src/pages/about.astro | 11 +++-- src/pages/index.astro | 3 +- src/styles/global.css | 83 ++++++++++++++++++++++++++++++----- 9 files changed, 204 insertions(+), 42 deletions(-) create mode 100644 src/components/Header.astro diff --git a/AGENTS.md b/AGENTS.md index 419f441..4c37a66 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -15,8 +15,8 @@ The source of the public site at `withmarfa.com`: Astro, built to static files a ## Layout - `src/pages/`: one file per page. `404.astro` is what Cloudflare serves for a missing path. -- `src/layouts/Base.astro`: the document head, the column and the footer, used by every page. -- `src/components/`: the footer and the question that opens. +- `src/layouts/Base.astro`: the document head, the header, the column and the footer, used by every page. +- `src/components/`: the header (the Docs pill, and the way home on every other page), the footer (About, Contact and GitHub), and the question that opens. - `src/styles/global.css`: the color tokens, shared with the docs site's canvas and text colors. Light and dark follow the system; there is no toggle. - `src/lib/analytics.ts`: PostHog, loaded after the page. - `public/`: copied as is. `_headers` sets the security headers and the Content Security Policy. diff --git a/src/components/Footer.astro b/src/components/Footer.astro index 3ffe030..737965c 100644 --- a/src/components/Footer.astro +++ b/src/components/Footer.astro @@ -1,17 +1,13 @@ --- -interface Props { - link: { href: string; label: string }; -} - -const { link } = Astro.props; +const path = Astro.url.pathname.replace(/(\/index)?\.html$/, '') || '/'; ---