Should be mostly working, doing some additional QOL

This commit is contained in:
gamer147
2025-11-30 23:00:40 -05:00
parent 8d6f0d6cfd
commit b2f4548807
24 changed files with 839 additions and 73 deletions

View File

@@ -0,0 +1,21 @@
<script lang="ts">
import { user, isLoading } from '$lib/auth/authStore';
const greeting = $derived.by(() => {
if ($isLoading) return 'Welcome to FictionArchive';
if ($user) {
const name = $user.profile?.name || $user.profile?.preferred_username;
return name ? `Welcome back, ${name}` : 'Welcome back';
}
return 'Welcome to FictionArchive';
});
</script>
<section class="py-8 text-center sm:py-12">
<h1 class="text-3xl font-bold tracking-tight sm:text-4xl">
{greeting}
</h1>
<p class="mt-2 text-lg text-muted-foreground">
Your personal fiction library
</p>
</section>