cryptgeon/packages/frontend/src/routes/+layout.svelte

42 lines
781 B
Svelte
Raw Normal View History

2021-05-02 03:08:30 +02:00
<script lang="ts">
import { SvelteToast } from '@zerodevx/svelte-toast'
import { onMount } from 'svelte'
import { waitLocale } from 'svelte-intl-precompile'
import '../app.css'
import { init as initStores, status } 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
onMount(() => {
2022-01-16 14:02:53 +01:00
initStores()
2021-12-22 13:10:08 +01:00
})
2021-05-02 03:08:30 +02:00
</script>
<svelte:head>
<title>{$status?.theme_page_title || 'cryptgeon'}</title>
<link rel="icon" href={$status?.theme_favicon || '/favicon.png'} />
2021-05-02 03:08:30 +02:00
</svelte:head>
2022-01-16 14:02:53 +01:00
{#await waitLocale() then _}
<main>
<Header />
<slot />
</main>
2021-05-02 03:08:30 +02:00
<SvelteToast />
2022-01-16 14:02:53 +01:00
<Footer />
{/await}
2021-05-02 03:08:30 +02:00
<style>
main {
padding: 1rem;
padding-bottom: 4rem;
width: 100%;
max-width: 35rem;
margin: 0 auto;
}
</style>