homepage/src/routes/+layout.svelte

85 lines
1.3 KiB
Svelte
Raw Normal View History

2023-06-19 20:38:45 +02:00
<script>
import "$lib/components/nordtheme.css"
</script>
<style>
:global(*){
2023-06-19 20:38:45 +02:00
box-sizing: border-box;
font-family: sans-serif;
2023-06-19 20:38:45 +02:00
}
:global(body){
margin:0;
padding:0;
background-color: #fbf9f3;
}
2023-06-19 20:38:45 +02:00
li{
list-style-type:none;
transition: 100ms;
color: white;
}
li>a{
text-decoration: none;
font-family: sans-serif;
font-size: 1.2rem;
2023-06-19 20:38:45 +02:00
color: inherit
}
li:hover,
li:focus-within
{
2023-06-19 20:38:45 +02:00
cursor: pointer;
color: var(--red);
transform: scale(1.1,1.1);
}
ul {
padding-block: 2rem;
display: flex;
flex-direction: row;
gap: 1rem;
justify-content: space-evenly;
max-width: 1000px;
margin: 0;
2023-06-19 20:38:45 +02:00
margin-inline: auto;
}
@media screen and (max-width: 500px) {
ul{
flex-direction: column;
}
li:hover,
li:focus-within{
transform: unset;
}
}
2023-06-19 20:38:45 +02:00
nav{
background-color: var(--nord0);
}
.wrapper{
display:flex;
flex-direction: column;
min-height: 100svh;
2023-06-19 20:38:45 +02:00
}
footer{
padding-block: 1rem;
text-align: center;
2023-06-25 10:17:12 +02:00
margin-top: auto;
2023-06-19 20:38:45 +02:00
}
</style>
2023-06-25 10:17:12 +02:00
<div class=wrapper>
2023-06-19 20:38:45 +02:00
<div>
<nav>
<ul>
<li><a href="/">Home</a></li>
<li><a href="/rezepte">Alle Rezepte</a></li>
<li><a href="/rezepte/season">In Saison</a></li>
<li><a href="/rezepte/category">Nach Kategorie</a></li>
<li><a href="/rezepte/tag">Stichwörter</a></li>
</ul>
</nav>
<slot></slot>
</div>
<footer>
Ad maiorem Dei gloriam
</footer>
</div>