homepage/src/routes/rezepte/+page.svelte

41 lines
1000 B
Svelte
Raw Normal View History

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 '$lib/components/card.css';
import MediaScroller from '$lib/components/MediaScroller.svelte';
import Recipes from '$lib/components/Recipes.svelte';
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>
<style>
.accordion{
display:flex;
background-color: #111111;
flex-direction: row;
margin-inline: auto;
padding-inline: 1rem;
padding-block: 3rem;
margin-block: 3rem;
align-items:center;
justify-content: center;
gap: 1rem;
}
</style>
<h1>Rezepte</h1>
<h2>In Saison</h2>
<section>
2023-06-19 20:38:45 +02:00
<MediaScroller>
2023-06-19 00:32:51 +02:00
{#each data.season as recipe}
<Card {recipe} {current_month}></Card>
{/each}
2023-06-19 20:38:45 +02:00
</MediaScroller>
2023-06-19 00:32:51 +02:00
</section>
2023-06-19 20:38:45 +02:00
<!--<Search></Search>-->
2023-06-19 00:32:51 +02:00
<h2>Alle Rezepte</h2>
2023-06-19 20:38:45 +02:00
<Recipes>
{#each data.all_brief as recipe}
<Card {recipe} {current_month}></Card>
{/each}
</Recipes>