45 lines
1.6 KiB
Svelte
45 lines
1.6 KiB
Svelte
<script lang="ts">
|
|
import type { PageData } from './$types';
|
|
import MediaScroller from '$lib/components/MediaScroller.svelte';
|
|
import AddButton from '$lib/components/AddButton.svelte';
|
|
import Card from '$lib/components/Card.svelte';
|
|
import Search from '$lib/components/Search.svelte';
|
|
export let data: PageData;
|
|
export let current_month = new Date().getMonth() + 1
|
|
const categories = ["Hauptspeise", "Nudel", "Brot", "Dessert", "Suppe", "Beilage", "Salat", "Kuchen", "Frühstück", "Sauce", "Zutat", "Getränk", "Aufstrich", "Guetzli", "Unterwegs"]
|
|
</script>
|
|
<style>
|
|
h1{
|
|
text-align: center;
|
|
margin-bottom: 0;
|
|
font-size: 4rem;
|
|
}
|
|
</style>
|
|
<svelte:head>
|
|
<title>Bocken Rezepte</title>
|
|
<meta name="description" content="Eine stetig wachsende Ansammlung an Rezepten aus der Bockenschen Küche." />
|
|
<meta property="og:image" content="https://bocken.org/static/rezepte/thumb/ragu_aus_rindsrippen.webp" />
|
|
<meta property="og:image:secure_url" content="https://bocken.org/static/rezepte/thumb/ragu_aus_rindsrippen.webp" />
|
|
<meta property="og:image:type" content="image/webp" />
|
|
<meta property="og:image:alt" content="Pasta al Ragu mit Linguine" />
|
|
</svelte:head>
|
|
|
|
<h1>Rezepte</h1>
|
|
|
|
<Search></Search>
|
|
|
|
<MediaScroller title="In Saison">
|
|
{#each data.season as recipe}
|
|
<Card {recipe} {current_month} do_margin_right={true}></Card>
|
|
{/each}
|
|
</MediaScroller>
|
|
|
|
{#each categories as category}
|
|
<MediaScroller title={category}>
|
|
{#each data.all_brief.filter(recipe => recipe.category == category) as recipe}
|
|
<Card {recipe} {current_month} do_margin_right={true}></Card>
|
|
{/each}
|
|
</MediaScroller>
|
|
{/each}
|
|
<AddButton></AddButton>
|