New and improved in sveltekit

This commit is contained in:
2023-05-22 22:29:43 +02:00
parent 4c5ede45a1
commit 23d4b727e6
78 changed files with 6148 additions and 648 deletions

29
src/routes/+layout.svelte Normal file
View File

@@ -0,0 +1,29 @@
<script lang="ts">
import HeaderComponent from '$lib/components/Header.svelte';
// import Darkmode from '$lib/components/Darkmode.svelte'
</script>
<HeaderComponent />
<!-- <Darkmode/> -->
<div class="page-content">
<slot></slot>
</div>
<style lang="scss">
@import '../styles/media-queries.scss';
.page-content {
display: flex;
flex-direction: column;
width: 100%;
min-height: 100vh;
margin: 0 auto;
padding: 2.5em;
margin-top: var(--header-height);
@include mobile {
padding: 1em;
}
}
</style>