2023-06-19 20:38:45 +02:00
|
|
|
<script lang="ts">
|
|
|
|
import type { PageData } from './$types';
|
|
|
|
import '$lib/components/nordtheme.css';
|
|
|
|
import Recipes from '$lib/components/Recipes.svelte';
|
|
|
|
import MediaScroller from '$lib/components/MediaScroller.svelte';
|
|
|
|
import SeasonLayout from '$lib/components/SeasonLayout.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
|
2023-07-10 13:00:11 +02:00
|
|
|
import { rand_array } from '$lib/js/randomize';
|
2023-06-19 20:38:45 +02:00
|
|
|
</script>
|
|
|
|
|
2023-07-14 14:33:06 +02:00
|
|
|
<SeasonLayout active_index={current_month-1}>
|
2023-06-19 20:38:45 +02:00
|
|
|
<Recipes slot=recipes>
|
2023-07-10 13:00:11 +02:00
|
|
|
{#each rand_array(data.season) as recipe}
|
2023-06-19 20:38:45 +02:00
|
|
|
<Card {recipe} {current_month}></Card>
|
|
|
|
{/each}
|
|
|
|
</Recipes>
|
|
|
|
</SeasonLayout>
|