From d1e34e28faac28388032845c6229a3530a133c98 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20=C5=98epa?= Date: Thu, 19 Dec 2024 14:09:21 +0100 Subject: [PATCH] add christmas easter egg --- dashboard/client/src/App.svelte | 30 ++++++++ dashboard/client/src/Snowfall.svelte | 108 +++++++++++++++++++++++++++ 2 files changed, 138 insertions(+) create mode 100644 dashboard/client/src/Snowfall.svelte diff --git a/dashboard/client/src/App.svelte b/dashboard/client/src/App.svelte index 036e9ea..09b71b0 100644 --- a/dashboard/client/src/App.svelte +++ b/dashboard/client/src/App.svelte @@ -5,6 +5,7 @@ import SSH from './Ssh.svelte'; import { onMount } from 'svelte'; import ClassDoc from './ClassDoc.svelte'; + import Snowfall from "./Snowfall.svelte"; let showSSH = false; let sshInitialised = false; @@ -76,14 +77,38 @@ widthVertical1st = newWidth; } } + + let isSnowfallEnabled = true; + + function toggleSnowfall() { + isSnowfallEnabled = !isSnowfallEnabled; + } + + +{#if isSnowfallEnabled} + +{/if}
+
+ +
diff --git a/dashboard/client/src/Snowfall.svelte b/dashboard/client/src/Snowfall.svelte new file mode 100644 index 0000000..d3fc98d --- /dev/null +++ b/dashboard/client/src/Snowfall.svelte @@ -0,0 +1,108 @@ + + + + +
+ {#each snowflakes as { id, x, y, size }} +
+ ❄ +
+ + + + + + {/each} +