feat(web): account page with sign in / sign up tabs

- Add account.html: tabbed form for login and registration, signed-in
  state with sign-out, links to leaderboard and replays
- Wire /account route in build_router_inner
- Add Account card to landing page
- Link leaderboard login prompt to /account for new users

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
funman300
2026-05-13 17:09:57 -07:00
parent 8485b3d1e0
commit 5b3925a619
4 changed files with 286 additions and 1 deletions
+4
View File
@@ -213,6 +213,10 @@ fn build_router_inner(state: AppState, rate_limit: bool) -> Router {
"/play",
get(|| async { Html(include_str!("../web/game.html")) }),
)
.route(
"/account",
get(|| async { Html(include_str!("../web/account.html")) }),
)
.route(
"/leaderboard",
get(|| async { Html(include_str!("../web/leaderboard.html")) }),