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:
@@ -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}!`,
|
||||
|
||||
Reference in New Issue
Block a user