2025-01-31 18:38:44 +02:00
|
|
|
<script lang="ts">
|
|
|
|
import { baseURL, stuffSite } from '$lib/config.js';
|
|
|
|
|
2025-02-11 14:46:14 +02:00
|
|
|
import { Toaster } from '$lib/components/ui/sonner/index.js';
|
|
|
|
|
2025-01-31 18:38:44 +02:00
|
|
|
let { children, data } = $props();
|
|
|
|
|
|
|
|
const title = data?.name ? `${data.name} | ${stuffSite.name}` : stuffSite.name;
|
|
|
|
const description = data?.description || stuffSite.description;
|
|
|
|
const ogImage = data?.image || stuffSite.image;
|
|
|
|
</script>
|
|
|
|
|
|
|
|
<svelte:head>
|
|
|
|
<title>{title}</title>
|
|
|
|
<meta property="og:title" content={title} />
|
|
|
|
|
|
|
|
<meta name="description" content={description} />
|
|
|
|
<meta property="og:description" content={description} />
|
|
|
|
|
|
|
|
<meta property="og:image" content={baseURL + ogImage} />
|
|
|
|
</svelte:head>
|
|
|
|
|
2025-02-11 14:46:14 +02:00
|
|
|
<Toaster />
|
|
|
|
|
2025-01-31 18:38:44 +02:00
|
|
|
{@render children()}
|
2025-02-06 01:37:09 +02:00
|
|
|
|
|
|
|
{#if data?.name === 'Vau kui vali'}
|
|
|
|
<style global>
|
|
|
|
html {
|
|
|
|
--scrollbar-color-thumb: transparent;
|
|
|
|
--scrollbar-color-track: transparent;
|
|
|
|
--scrollbar-width: none;
|
|
|
|
--scrollbar-width-legacy: 0px;
|
|
|
|
|
|
|
|
-ms-overflow-style: none; /* Internet Explorer 10+ */
|
|
|
|
}
|
|
|
|
</style>
|
|
|
|
{/if}
|