2023-06-19 00:32:51 +02:00
|
|
|
<script lang="ts">
|
|
|
|
import type { PageData } from './$types';
|
2023-06-19 20:38:45 +02:00
|
|
|
import MediaScroller from '$lib/components/MediaScroller.svelte';
|
|
|
|
import Recipes from '$lib/components/Recipes.svelte';
|
2023-06-21 19:50:27 +02:00
|
|
|
import AddButton from '$lib/components/AddButton.svelte';
|
2023-06-19 20:38:45 +02:00
|
|
|
import Card from '$lib/components/Card.svelte';
|
|
|
|
import Search from '$lib/components/Search.svelte';
|
2023-06-19 00:32:51 +02:00
|
|
|
export let data: PageData;
|
|
|
|
export let current_month = new Date().getMonth() + 1
|
|
|
|
</script>
|
2023-06-25 10:17:12 +02:00
|
|
|
<style>
|
2023-06-25 14:42:37 +02:00
|
|
|
h1{
|
|
|
|
box-sizing: border-box;
|
2023-06-25 10:17:12 +02:00
|
|
|
max-width: 1000px;
|
2023-06-25 14:42:37 +02:00
|
|
|
padding-left: 5rem;
|
2023-06-25 10:17:12 +02:00
|
|
|
margin-bottom: 0;
|
2023-06-25 14:42:37 +02:00
|
|
|
font-size: 4rem;
|
2023-06-25 10:17:12 +02:00
|
|
|
}
|
|
|
|
</style>
|
2023-06-19 00:32:51 +02:00
|
|
|
<h1>Rezepte</h1>
|
|
|
|
<section>
|
2023-06-25 10:17:12 +02:00
|
|
|
<MediaScroller title="In Saison:">
|
2023-06-19 00:32:51 +02:00
|
|
|
{#each data.season as recipe}
|
2023-06-23 17:23:14 +02:00
|
|
|
<Card {recipe} {current_month} search=""></Card>
|
2023-06-19 00:32:51 +02:00
|
|
|
{/each}
|
2023-06-19 20:38:45 +02:00
|
|
|
</MediaScroller>
|
2023-06-19 00:32:51 +02:00
|
|
|
</section>
|
2023-06-23 17:23:14 +02:00
|
|
|
<Search></Search>
|
2023-06-25 10:17:12 +02:00
|
|
|
<Recipes title="Alle Rezepte:">
|
2023-06-19 20:38:45 +02:00
|
|
|
{#each data.all_brief as recipe}
|
|
|
|
<Card {recipe} {current_month}></Card>
|
|
|
|
{/each}
|
|
|
|
</Recipes>
|
2023-06-21 19:50:27 +02:00
|
|
|
<AddButton></AddButton>
|