Commit graph

3 commits

Author SHA1 Message Date
ZTatman
a7a0d1aabb refactor(web): single-ink brand mark system + header and 404 polish
Full-color brand art (cream + red) is hero/dark-ground only; on light
ground the mark is a single-ink stamp that takes its context's text color.
This is the one treatment that survives a future ash-and-ember dark mode
with zero new assets — currentColor follows --color-foreground on flip.

- Add partials/_brand.html: one currentColor Firebreak mark, colored by a
  text-* utility at each call site.
- Header: mark + real-text wordmark in text-foreground (replaces the cold
  #17191C logo that clashed with the warm page); also fold the inline
  border style into border-b border-border.
- Complete the account-dropdown Alpine migration (same file): wire the
  panel id/aria-controls, drive the open-state highlight and focus-return
  through Alpine, drop the <details> cruft, add a transition.
- Setup: replace the invisible cream-on-light logo (and its compensating
  drop-shadow) with the ink mark.
- 404: "Outside the break" copy, token-driven watermark at 25%, and a
  guard so the duplicate detail line no longer renders.
- Delete 3 now-unused logo SVGs (black, red, brand).

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-07-04 14:17:52 -04:00
ZTatman
1883381f3f feat(web): apply firebreak theme doctrine across pages
Make the metaphor structural: a thing gets visual heat only if it
increases exposure; contained things stay silent.

- Badge diet: private repos render unmarked (an unmarked row is the
  "contained" statement); only Public/Archived/Empty earn a badge. Public
  wears the ember "live ember" badge (a public repo is a fire starter);
  fork/mirror demote to muted mono provenance beside the name.
- Containment status grammar in empty/warning states
  (STATUS · CONTAINED — 0 EXPOSED); firebreak-rule dividers under page
  headings; remove the settings sidebar (one section doesn't earn a rail)
  in favor of a single column; reuse .notice-rail for the success notice.
- Sweep the ad-hoc text-foreground/NN gray ladder to
  text-muted-foreground, fixing sub-AA helper text.

Includes the landing hero (index.html) legibility pass so hero copy stays
cream after the foreground token flipped to charcoal.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-07-04 14:17:52 -04:00
ZTatman
a0617c6be4 refactor(web): decompose main.py into a composition root
Move page routes to routers/dashboard.py, the content-negotiated error
handler to errors.py (register_error_handlers), and the dev css-mtime
endpoint to routers/dev.py (included only when debug). main.py shrinks to
lifespan + wiring + the / landing route.

Dashboard repos now load lazily via an htmx fragment so a slow/unreachable
Forgejo instance never blocks first paint; Forgejo html_url is sanitized
against non-http(s) schemes before rendering into href.
2026-06-10 17:03:10 -04:00