refactor: route pages with shared formatting and layout updates

Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-openagent)

Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai>
This commit is contained in:
2026-05-29 16:10:29 +01:00
co-authored by Sisyphus
parent 5705ef71b8
commit ec097af0f6
9 changed files with 432 additions and 311 deletions
+8
View File
@@ -1,9 +1,17 @@
<script lang="ts">
import { goto } from '$app/navigation';
import { Button } from '$lib/components/ui/button';
import PortfolioCarousel from '$lib/components/layout/PortfolioCarousel.svelte';
import { authStore } from '$lib/stores/auth.svelte';
import { Skeleton } from '$lib/components/ui/skeleton';
// Redirect admins to /today (their homepage)
$effect(() => {
if (!authStore.isLoading && authStore.currentUser?.role === 'admin') {
goto('/today', { replaceState: true });
}
});
const returningGreetings = [
(name: string) => `Welcome back, ${name}!`,
(name: string) => `Great to see you again, ${name}!`,