Commit db415fb
Add a Login button to the header for logged-out users
The header only rendered the user menu once signed in, so there was no
login affordance anywhere in the nav — the only "Login with Discord"
buttons lived on /account, /admin and /submit, reachable only by typing
the path manually.
Add a Discord-styled Login button (desktop header + mobile drawer) shown
only when user === null, linking to the OAuth flow with a return path of
the current page (or /account from the landing page).
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>1 parent a56661a commit db415fb
1 file changed
Lines changed: 41 additions & 0 deletions
File tree
- src/web/components
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
112 | 112 | | |
113 | 113 | | |
114 | 114 | | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
115 | 121 | | |
116 | 122 | | |
117 | 123 | | |
| |||
414 | 420 | | |
415 | 421 | | |
416 | 422 | | |
| 423 | + | |
| 424 | + | |
| 425 | + | |
| 426 | + | |
| 427 | + | |
| 428 | + | |
| 429 | + | |
| 430 | + | |
| 431 | + | |
| 432 | + | |
| 433 | + | |
| 434 | + | |
| 435 | + | |
| 436 | + | |
| 437 | + | |
| 438 | + | |
417 | 439 | | |
418 | 440 | | |
419 | 441 | | |
| |||
571 | 593 | | |
572 | 594 | | |
573 | 595 | | |
| 596 | + | |
| 597 | + | |
| 598 | + | |
| 599 | + | |
| 600 | + | |
| 601 | + | |
| 602 | + | |
| 603 | + | |
| 604 | + | |
| 605 | + | |
| 606 | + | |
| 607 | + | |
| 608 | + | |
| 609 | + | |
| 610 | + | |
| 611 | + | |
| 612 | + | |
| 613 | + | |
| 614 | + | |
574 | 615 | | |
575 | 616 | | |
576 | 617 | | |
| |||
0 commit comments