- 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>
60 lines
1.1 KiB
Svelte
60 lines
1.1 KiB
Svelte
<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>
|