diff --git a/src/lib/components/effects/ParticlesBackground.svelte b/src/lib/components/effects/ParticlesBackground.svelte new file mode 100644 index 0000000..119838c --- /dev/null +++ b/src/lib/components/effects/ParticlesBackground.svelte @@ -0,0 +1,176 @@ + + +{#if browser && isDesktop} + +{/if} diff --git a/src/routes/+layout.svelte b/src/routes/+layout.svelte index 969665a..3ea5976 100644 --- a/src/routes/+layout.svelte +++ b/src/routes/+layout.svelte @@ -2,6 +2,7 @@ import { onMount } from 'svelte'; import { goto } from '$app/navigation'; import { page } from '$app/stores'; + import { browser } from '$app/environment'; import { Toaster } from 'svelte-sonner'; import './app.css'; import favicon from '$lib/assets/favicon.svg'; @@ -11,6 +12,7 @@ import { Switch } from '$lib/components/ui/switch/index.js'; import LogOutIcon from '@lucide/svelte/icons/log-out'; import MoonIcon from '@lucide/svelte/icons/moon'; + import ParticlesBackground from '$lib/components/effects/ParticlesBackground.svelte'; let { data, children } = $props(); let cleanupRealtime: (() => void) | undefined; @@ -78,8 +80,13 @@ }} /> -{#if showHeader} -
+{#if browser && showHeader} + +{/if} + +
+ {#if showHeader} +
-{/if} + {/if} -{@render children()} + {@render children()} +