campfire/src/routes/+layout.svelte

32 lines
643 B
Svelte
Raw Normal View History

2024-06-29 17:27:46 +01:00
<script>
2024-06-29 19:52:52 +01:00
import '$lib/app.css';
2024-06-29 17:27:46 +01:00
import Navigation from '$lib/ui/Navigation.svelte';
import Widgets from '$lib/ui/Widgets.svelte';
import { Client } from '$lib/client/client.js';
import { get } from 'svelte/store';
let client = get(Client.get());
2024-06-29 17:27:46 +01:00
</script>
2024-06-30 17:37:19 +01:00
<div id="app">
2024-06-29 17:27:46 +01:00
<header>
<Navigation />
</header>
<main>
{#await client.verifyCredentials()}
<div class="loading throb">
<span>just a moment...</span>
</div>
{:then}
<slot></slot>
{/await}
2024-06-29 17:27:46 +01:00
</main>
<div id="widgets">
<Widgets />
</div>
</div>