Files
classquiz-ai/frontend/src/routes/docs/__layout.svelte
T
2022-07-02 17:20:55 +02:00

30 lines
664 B
Svelte

<!--
- This Source Code Form is subject to the terms of the Mozilla Public
- License, v. 2.0. If a copy of the MPL was not distributed with this
- file, You can obtain one at https://mozilla.org/MPL/2.0/.
-->
<script lang="ts" context="module">
import { signedIn } from '$lib/stores';
export async function load({ session }) {
if (session.authenticated) {
signedIn.set(true);
}
return {};
}
</script>
<script lang="ts">
import Footer from '$lib/footer.svelte';
import { navbarVisible } from '$lib/stores';
navbarVisible.set(true);
</script>
<div class="min-h-screen flex flex-col">
<slot />
</div>
<div class="pt-4">
<Footer />
</div>