2023-11-25 21:56:02 +00:00
|
|
|
<script>
|
2024-07-31 09:24:01 +01:00
|
|
|
import { page } from '$app/stores';
|
2024-08-25 21:35:59 +01:00
|
|
|
import { MetaTags } from 'svelte-meta-tags';
|
2024-03-28 04:21:02 +01:00
|
|
|
import Navigation from '$lib/Navigation/Navigation.svelte';
|
|
|
|
|
import Footer from '$lib/Footer/Footer.svelte';
|
2024-02-02 08:18:26 +01:00
|
|
|
import PageTransition from './transition.svelte';
|
2024-07-31 09:24:01 +01:00
|
|
|
import NotFound from '$lib/NotFound/NotFound.svelte';
|
2024-08-25 21:35:59 +01:00
|
|
|
import extend from 'just-extend';
|
2024-03-28 04:21:02 +01:00
|
|
|
|
2023-11-25 21:56:02 +00:00
|
|
|
import '../app.css';
|
2024-02-02 08:18:26 +01:00
|
|
|
|
|
|
|
|
export let data;
|
2024-08-25 21:35:59 +01:00
|
|
|
|
|
|
|
|
$: metaTags = extend(true, {}, data.baseMetaTags, $page.data.pageMetaTags);
|
2023-11-25 21:56:02 +00:00
|
|
|
</script>
|
|
|
|
|
|
2024-08-25 21:35:59 +01:00
|
|
|
<MetaTags {...metaTags} />
|
|
|
|
|
|
2023-11-25 21:56:02 +00:00
|
|
|
<div class="overflow-hidden">
|
|
|
|
|
<Navigation />
|
2024-02-02 08:18:26 +01:00
|
|
|
|
|
|
|
|
<PageTransition url={data.url}>
|
2024-07-31 09:24:01 +01:00
|
|
|
{#if $page.status === 404}
|
|
|
|
|
<NotFound className="mt-5" />
|
|
|
|
|
{:else}
|
|
|
|
|
<slot />
|
|
|
|
|
{/if}
|
2024-02-02 08:18:26 +01:00
|
|
|
</PageTransition>
|
2023-11-25 21:56:02 +00:00
|
|
|
|
|
|
|
|
<Footer />
|
|
|
|
|
</div>
|