cryptgeon/frontend/src/routes/__layout.svelte

33 lines
481 B
Svelte
Raw Normal View History

2021-05-02 03:08:30 +02:00
<script lang="ts">
2021-12-22 13:10:08 +01:00
import { init } from '$lib/stores/status'
2021-05-05 10:42:37 +02:00
import Footer from '$lib/views/Footer.svelte'
2021-05-03 11:10:53 +02:00
import Header from '$lib/views/Header.svelte'
2021-12-22 13:10:08 +01:00
import { onMount } from 'svelte'
2021-05-02 03:08:30 +02:00
import '../app.css'
2021-12-22 13:10:08 +01:00
onMount(() => {
init()
})
2021-05-02 03:08:30 +02:00
</script>
<svelte:head>
<title>cryptgeon</title>
</svelte:head>
<main>
<Header />
<slot />
</main>
2021-05-05 10:42:37 +02:00
<Footer />
2021-05-02 03:08:30 +02:00
<style>
main {
padding: 1rem;
padding-bottom: 4rem;
width: 100%;
max-width: 35rem;
margin: 0 auto;
}
</style>