feat: add user admin status and profile management

- Updated user schema to include isAdmin field.
- Enhanced authentication hooks to fetch and set user admin status.
- Created ProfileButton component for user profile actions.
- Implemented profile and password update functionality.
- Added session management for user accounts.
- Developed login and signup pages with form handling.
- Introduced layout server for user session data.
- Updated daily page to reflect character changes.
This commit is contained in:
2026-03-01 19:52:54 +01:00
parent 031db29d62
commit b45909f86e
14 changed files with 1913 additions and 22 deletions

View File

@@ -154,7 +154,7 @@
}).catch(err => console.error('Failed to record win:', err));
// Check if it's gecko_moria for special animation
if (dailyCharacter.id === 'gecko_moria') {
if (dailyCharacter.id === 'gecko_moria_gecko_moria') {
isGeckoMoriaWin = true;
}
}
@@ -297,17 +297,8 @@
>
<div class="absolute inset-0 bg-gradient-to-br from-slate-950/85 via-slate-900/60 to-slate-950/80"></div>
<div class="absolute inset-0 mix-blend-screen opacity-20 bg-[radial-gradient(circle_at_top,rgba(255,215,84,0.35),transparent_55%)]"></div>
<div class="relative mx-auto flex min-h-screen w-full max-w-6xl flex-col px-6 py-16 sm:py-20">
<nav class="absolute left-6 top-6 sm:left-8 sm:top-8">
<a
href="/"
class="text-xl font-black uppercase tracking-[0.25em] text-amber-50 transition hover:text-amber-100"
>
OnePieceDle
</a>
</nav>
<div class="relative mx-auto flex min-h-screen w-full max-w-6xl flex-col px-6 py-8 sm:py-10">
<header class="flex flex-col items-start gap-6 w-full">
<div class="flex w-full items-center justify-between gap-4">
<h1 class="text-3xl font-black uppercase tracking-[0.25em] text-amber-50 sm:text-5xl">