We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9154213 commit 438f91aCopy full SHA for 438f91a
2 files changed
src/routes/+layout.server.ts
src/routes/+layout.svelte
@@ -26,8 +26,9 @@
26
import { m } from "$lib/paraglide/messages.js";
27
import { log } from "$lib/util/logger.js";
28
29
- let { children, data } = $props();
+ let { children } = $props();
30
let enablePlausible = $state(false);
31
+ let isAprilFools = $state(false);
32
33
let scrollPositions = new Map<string, number>();
34
@@ -67,6 +68,9 @@
67
68
};
69
70
onMount(() => {
71
+ const now = new Date();
72
+ isAprilFools = now.getDate() === 1 && now.getMonth() === 3;
73
+
74
initAnimStores();
75
76
const handleResize = () => {
@@ -166,7 +170,7 @@
166
170
src="{PUB_PLAUSIBLE_URL}/js/script.js"
167
171
></script>
168
172
{/if}
169
- {#if data.isAprilFools}
173
+ {#if isAprilFools}
174
<style>
175
* {
176
font-family: "Comic Sans MS", "Comic Sans", cursive !important;
0 commit comments