feat(shell): add route groups, layout server load, redirect, and placeholder pages

- (app) group with AppShell layout, loads user/household from locals
- (public) group with full-viewport split layout, /login placeholder
- Root / redirects to /planner for authenticated users
- Placeholder stubs for planner, recipes, shopping, settings, members

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-04-02 13:22:34 +02:00
parent 7a17873046
commit 9626bde694
12 changed files with 44 additions and 1 deletions

View File

@@ -0,0 +1,8 @@
import type { LayoutServerLoad } from './$types';
export const load: LayoutServerLoad = async ({ locals }) => {
return {
benutzer: locals.benutzer!,
haushalt: locals.haushalt!
};
};

View File

@@ -0,0 +1,9 @@
<script lang="ts">
import AppShell from '$lib/nav/AppShell.svelte';
let { data, children } = $props();
</script>
<AppShell appName="Mealprep" householdName={data.haushalt.name}>
{@render children()}
</AppShell>

View File

@@ -0,0 +1 @@
<h1 class="text-2xl font-medium p-6">Mitglieder</h1>

View File

@@ -0,0 +1 @@
<h1 class="text-2xl font-medium p-6">Planer</h1>

View File

@@ -0,0 +1 @@
<h1 class="text-2xl font-medium p-6">Rezepte</h1>

View File

@@ -0,0 +1 @@
<h1 class="text-2xl font-medium p-6">Einstellungen</h1>

View File

@@ -0,0 +1 @@
<h1 class="text-2xl font-medium p-6">Einkaufsliste</h1>