2022-01-16 14:02:53 +01:00
|
|
|
<script lang="ts" context="module">
|
|
|
|
import { init, waitLocale, getLocaleFromNavigator } from 'svelte-intl-precompile'
|
|
|
|
// @ts-ignore
|
|
|
|
import { registerAll } from '$locales'
|
|
|
|
registerAll()
|
2022-03-01 02:00:01 +01:00
|
|
|
init({ initialLocale: getLocaleFromNavigator() ?? undefined, fallbackLocale: 'en' })
|
2022-01-16 14:02:53 +01:00
|
|
|
</script>
|
|
|
|
|
2021-05-02 03:08:30 +02:00
|
|
|
<script lang="ts">
|
2022-01-16 14:02:53 +01:00
|
|
|
import { init as initStores } 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(() => {
|
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>cryptgeon</title>
|
|
|
|
</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
|
|
|
|
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>
|