feat: migrate the site to React and add a Nix flake #2
Loading…
Reference in a new issue
No description provided.
Delete branch "t3/migrate-site-react-nix-flake"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
Rewrites the static landing page as a client-only React app (Vite, Tailwind 4, Radix, TanStack Router) and adds a Nix flake with a devShell, a package and a NixOS module.
Each tab is now a route. The URL decides which tab is selected, and Radix Tabs handles the keyboard and ARIA behaviour that
app.jsused to do by hand:Evidence
index.html+style.css+app.js, one URL, no tests.After: pixel-identical at 1100px and 375px (compared with screenshots of
main), and/linksand/contactcan be linked to directly.npm test: 4 passed. Covers the default tab, moving through tabs with the arrow keys (URL and focus follow), loading a tab from its URL, and the 404 page.nix flake check: all checks passed. The NixOS VM test boots nginx with the module and checks that:/linksand/contactreturnindex.htmlindex.htmlis sent withCache-Control: no-cache, no ETag, and a CSP/assets/*.jsisimmutableand served gzip-compressedindex.htmlnix buildoutput is 497 KiB and depends on nothing else.Merge Danger
Door: two-way
Nothing is deployed until a NixOS host enables
services.marti-web. Reverting the merge restores the old static files.Blast Radius: small
index.html, or/linksand/contactreturn 404 on reload.default-src 'self'. Adding a third-party script, font or embed later means loosening it innix/module.nix.🤖 Generated with Claude Code