first working prototype
This commit is contained in:
42
src/lib/components/SeasonLayout.svelte
Normal file
42
src/lib/components/SeasonLayout.svelte
Normal file
@@ -0,0 +1,42 @@
|
||||
<script lang="ts">
|
||||
import '$lib/components/nordtheme.css';
|
||||
import Recipes from '$lib/components/Recipes.svelte';
|
||||
let months = ["Januar", "Februar", "März", "April", "Mai", "Juni", "Juli", "August", "September", "Oktober", "November", "Dezember"]
|
||||
let month : number;
|
||||
</script>
|
||||
<style>
|
||||
a.month{
|
||||
text-decoration: unset;
|
||||
border-radius: 1000px;
|
||||
background-color: var(--blue);
|
||||
color: var(--nord5);
|
||||
padding: 0.5em;
|
||||
transition: 100ms;
|
||||
min-width: 4em;
|
||||
text-align: center;
|
||||
}
|
||||
a.month:hover{
|
||||
transform: scale(1.1,1.1);
|
||||
background-color: var(--red);
|
||||
}
|
||||
.months{
|
||||
display:flex;
|
||||
flex-wrap:wrap;
|
||||
justify-content: center;
|
||||
gap: 1rem;
|
||||
margin-inline: auto;
|
||||
margin-block: 2rem;
|
||||
}
|
||||
</style>
|
||||
|
||||
<slot name="test"></slot>
|
||||
|
||||
<div class=months>
|
||||
{#each months as month, i}
|
||||
<a class=month href="/rezepte/season/{i+1}">{month}</a>
|
||||
{/each}
|
||||
</div>
|
||||
|
||||
<section>
|
||||
<slot name=recipes></slot>
|
||||
</section>
|
Reference in New Issue
Block a user