diff options
| author | ivarlovlie <git@ivarlovlie.no> | 2022-12-11 20:46:58 +0100 |
|---|---|---|
| committer | ivarlovlie <git@ivarlovlie.no> | 2022-12-11 20:47:06 +0100 |
| commit | 6561771c435f9d9bed1589b5ed13d17aee0b7873 (patch) | |
| tree | 2c47e60fa4aaaa5bf1e151838ac197a61f4377cc /code/app/src/routes/(main)/+layout.svelte | |
| parent | 8da37c77cae0c7f712a775e3996afd9d84b0f9af (diff) | |
| download | greatoffice-6561771c435f9d9bed1589b5ed13d17aee0b7873.tar.xz greatoffice-6561771c435f9d9bed1589b5ed13d17aee0b7873.zip | |
feat: Add frontpage
Diffstat (limited to 'code/app/src/routes/(main)/+layout.svelte')
| -rw-r--r-- | code/app/src/routes/(main)/+layout.svelte | 16 |
1 files changed, 10 insertions, 6 deletions
diff --git a/code/app/src/routes/(main)/+layout.svelte b/code/app/src/routes/(main)/+layout.svelte index 2b96527..7662d6a 100644 --- a/code/app/src/routes/(main)/+layout.svelte +++ b/code/app/src/routes/(main)/+layout.svelte @@ -1,21 +1,25 @@ <script lang="ts"> import "../../app.pcss"; - import {setLocale} from "$i18n/i18n-svelte"; - import {ExclamationTriangleIcon} from "$components/icons"; - import type {LayoutData} from "./$types"; + import { setLocale } from "$i18n/i18n-svelte"; + import { ExclamationTriangleIcon } from "$components/icons"; + import { page } from "$app/stores"; + import type { LayoutData } from "./$types"; let online = true; export let data: LayoutData; setLocale(data.locale); </script> -<svelte:window bind:online/> +<svelte:window bind:online /> +<svelte:head> + <title>{$page.data.title ? $page.data.title + " - Greatoffice" : "Greatoffice"}</title> +</svelte:head> {#if !online} <div class="bg-yellow-50 relative z-50 p-4"> <div class="flex"> <div class="flex-shrink-0"> - <ExclamationTriangleIcon class="bg-yellow-50 text-yellow-500"/> + <ExclamationTriangleIcon class="bg-yellow-50 text-yellow-500" /> </div> <div class="ml-3"> <p class="text-sm text-yellow-700">You seem to be offline, please check your internet connection.</p> @@ -24,4 +28,4 @@ </div> {/if} -<slot/> +<slot /> |
