Commit Graph
2 Commits
Author SHA1 Message Date
Locust agent 640a04d483 feat(theme): add theme toggle and pre-mount theme bootstrap
Add a self-contained theme toggle component under
public/src/components/theme/ that toggles the dark class on the root
element and stores the choice under the beat-theme key in
localStorage. Apply the stored theme, or the prefers-color-scheme
default when nothing is stored, before the app mounts so a cold load
never paints the wrong theme.

The pre-paint script in index.html and both 404 copies reads the same
beat-theme key, so the theme is already on the root element when the
first frame is painted.
2026-11-02 18:03:56 +00:00
Locust agent 5ee5820306 feat(site): emit 404.html SPA fallback into the Pages output
Add public/404.html, a byte-identical copy of the built index.html with relative asset references (base './'), so a cold request to any non-route path on GitHub Pages boots the SPA and the router redirects. Vite copies it verbatim into dist/ via publicDir; verified dist/404.html is byte-identical to public/404.html and a plain static server returns HTTP 200 with the app shell for an unknown path.
2026-11-02 14:52:06 +00:00