Update build process

This commit is contained in:
2023-06-25 10:17:12 +02:00
parent 9392ff6ada
commit ebd1fe00db
13 changed files with 279 additions and 94 deletions

View File

@ -8,18 +8,31 @@
export let data: PageData;
export let current_month = new Date().getMonth() + 1
</script>
<style>
h1,
h2{
max-width: 1000px;
margin-left: 5rem;
margin-bottom: 0;
}
h1{
font-size: 4rem;
}
h2{
font-size: 3rem;
margin-bottom: 1rem;
}
</style>
<h1>Rezepte</h1>
<h2>In Saison</h2>
<section>
<MediaScroller>
<MediaScroller title="In Saison:">
{#each data.season as recipe}
<Card {recipe} {current_month} search=""></Card>
{/each}
</MediaScroller>
</section>
<Search></Search>
<h2>Alle Rezepte</h2>
<Recipes>
<Recipes title="Alle Rezepte:">
{#each data.all_brief as recipe}
<Card {recipe} {current_month}></Card>
{/each}

View File

@ -8,7 +8,9 @@
import EditButton from '$lib/components/EditButton.svelte';
import InstructionsPage from '$lib/components/InstructionsPage.svelte';
import IngredientsPage from '$lib/components/IngredientsPage.svelte';
export let data: PageData;
let hero_img_src = "/images/" + data.images[0].mediapath
export let months = ["Januar", "Februar", "März", "April", "Mai", "Juni", "Juli", "August", "September", "Oktober", "November", "Dezember"]
function season_intervals() {