aboutsummaryrefslogtreecommitdiffstats
path: root/src/routes/(static)
diff options
context:
space:
mode:
authorAdam Soltys <[email protected]>2024-11-06 23:10:14 -0800
committerAdam Soltys <[email protected]>2024-11-06 23:10:14 -0800
commitfef8b840e14cfc935c59fea29957c78ff13d3312 (patch)
tree8404c55178528b39268615de182a9b879524d0e3 /src/routes/(static)
parent2543db7ab1874d4e773a03c26946ad179877d443 (diff)
downloadcoinos-ui-fef8b840e14cfc935c59fea29957c78ff13d3312.tar.gz
coinos-ui-fef8b840e14cfc935c59fea29957c78ff13d3312.zip
theme cookie
Diffstat (limited to 'src/routes/(static)')
-rw-r--r--src/routes/(static)/+layout.svelte6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/routes/(static)/+layout.svelte b/src/routes/(static)/+layout.svelte
index f09852fb..c9bdc091 100644
--- a/src/routes/(static)/+layout.svelte
+++ b/src/routes/(static)/+layout.svelte
@@ -1,18 +1,20 @@
<script>
import { SvelteToast } from "@zerodevx/svelte-toast";
import Footer from "$comp/Footer.svelte";
- import { theme } from "$lib/store";
import LandingHeader from "$comp/LandingHeader.svelte";
+ import { theme as themeStore } from "$lib/store";
export let data;
+ let { theme } = data;
$: ({ user } = data);
+ $: theme = $themeStore;
</script>
<SvelteToast options={{ reversed: true, intro: { y: 192 } }} />
<LandingHeader {user} />
<main
class="container flex px-4 md:px-40 mx-auto min-h-[600px]"
- data-theme={$theme}
+ data-theme={theme}
>
<slot />
</main>