Skip to content

feat: add a site-wide footer - #208

Merged
magnus-madsen merged 1 commit into
masterfrom
site-footer
Aug 8, 2026
Merged

magnus-madsen merged 1 commit into
masterfrom
site-footer

Conversation

@magnus-madsen

Copy link
Copy Markdown
Member

Why

Nothing on the site linked to the playground, the book, the API, or Zulip from more than one page each, and the licence was stated once, in a sentence on /contribute/. The footer collects those and travels with every page — which matters most on a phone, where the nav is behind the hamburger.

What

Four columns — the brand, Learn, Project, Community — over a bar carrying the licence, a per-page Edit this page link into this repo, and the JProfiler / IntelliJ thanks, which move here from the bottom of the home page.

  • The columns wrap 2×2 rather than 2+1: the brand cell is last in the source and order-md-first, so nothing is left ragged on a narrow screen.
  • The footer's internal entries derive from navLinks, so a renamed route is changed in one place; the lookup throws at build time if a label goes missing rather than shipping undefined hrefs on every page. Blog is the deliberate exception — it points at blog.flix.dev directly, like the rest of its column.
  • The Flix mark, previously inline in the navbar and needed again in the footer, becomes src/components/FlixMark.astro.
  • .page becomes a flex column with .page > main { flex: 1 }, so the footer sits on the bottom edge of the card on short pages such as /404/ instead of floating mid-card.

Testing

npm run build passes and all 10 routes were checked in the built HTML: every link resolves, the Edit this page URL maps to the right file per route, and the footer's text nodes keep their spacing (the compiler strips whitespace between adjacent elements, so the one separator carries its own padding). Rendering was reviewed in the browser at desktop and narrow widths.

Notes

  • The bottom bar switches to a column at sm while the link columns switch at md, so between 576–768px you get a single-row bar under a 2×2 grid. Left as-is; happy to align them.
  • The link columns are not wrapped in <nav>, and the three column headings add h2s to each page's outline.

🤖 Generated with Claude Code

Nothing on the site linked to the playground, the book, the API, or Zulip
from more than one page, and the licence was stated once, in a sentence on
/contribute/. The footer collects those and travels with every page, which
matters most on a phone, where the nav is behind the hamburger.

Four columns - the brand, Learn, Project, and Community - over a bar with the
licence, a per-page "Edit this page" link into this repo, and the JProfiler and
IntelliJ thanks, which move here from the bottom of the home page. The columns
wrap 2x2 rather than 2+1: the brand is last in the source and ordered first
from md up, so nothing is left ragged on a narrow screen.

The footer's internal entries derive from navLinks so a renamed route is
changed once, and the build fails if a label goes missing rather than shipping
undefined hrefs. The mark, previously inline in the navbar and needed again in
the footer, becomes a shared component. .page becomes a flex column so the
footer sits on the bottom edge of the card on short pages such as /404/.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
@magnus-madsen
magnus-madsen merged commit d3f198d into master Aug 8, 2026
2 checks passed
@magnus-madsen
magnus-madsen deleted the site-footer branch August 8, 2026 18:15
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.

1 participant