feat(ui): add layout with profile bar, home, search, recipe pages

- Homepage with search and recent recipes
- Search page listing local hits (FTS5)
- Recipe page with ratings, favorites, cooking log, comments
- Wake-Lock on recipe view for mobile kitchen use

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
2026-04-17 15:28:22 +02:00
parent 8df09b1134
commit 4d5e0aa963
5 changed files with 722 additions and 26 deletions

View File

@@ -1 +1,59 @@
<slot />
<script lang="ts">
import { onMount } from 'svelte';
import { profileStore } from '$lib/client/profile.svelte';
import ProfileSwitcher from '$lib/components/ProfileSwitcher.svelte';
let { children } = $props();
onMount(() => {
profileStore.load();
});
</script>
<header class="bar">
<a href="/" class="brand">Kochwas</a>
<ProfileSwitcher />
</header>
<main>
{@render children()}
</main>
<style>
:global(html, body) {
margin: 0;
padding: 0;
background: #f8faf8;
color: #1a1a1a;
font-family: system-ui, -apple-system, 'Segoe UI', sans-serif;
-webkit-font-smoothing: antialiased;
}
:global(a) {
color: #2b6a3d;
}
:global(*) {
box-sizing: border-box;
}
.bar {
position: sticky;
top: 0;
z-index: 10;
display: flex;
justify-content: space-between;
align-items: center;
padding: 0.75rem 1rem;
background: white;
border-bottom: 1px solid #e4eae7;
}
.brand {
font-size: 1.15rem;
font-weight: 700;
text-decoration: none;
color: #2b6a3d;
}
main {
padding: 0 1rem 4rem;
max-width: 760px;
margin: 0 auto;
}
</style>