From 09adf5dba4c1cbd267b99265c7ca5ce8ab2a237a Mon Sep 17 00:00:00 2001 From: E44 <129310925+programmer-44@users.noreply.github.com> Date: Fri, 9 Jan 2026 21:30:46 +0100 Subject: [PATCH] chore: improve splash screen with randomized animation of cursor-movement --- control/frontend/src/routes/+page.svelte | 6 +- shared/splash_screen.html | 651 +++++++++++++++-------- 2 files changed, 432 insertions(+), 225 deletions(-) diff --git a/control/frontend/src/routes/+page.svelte b/control/frontend/src/routes/+page.svelte index 078107f..65834e4 100644 --- a/control/frontend/src/routes/+page.svelte +++ b/control/frontend/src/routes/+page.svelte @@ -20,6 +20,8 @@ import { on_start } from '$lib/ts/main'; import { display_status_to_info } from '$lib/ts/utils'; import HighlightedText from '$lib/components/HighlightedText.svelte'; + import { dev } from '$app/environment'; + import SplashScreen from './../../../../shared/splash_screen.html?raw'; const ip_regex = /^(?:(?:10|127)\.(?:25[0-5]|2[0-4]\d|1?\d?\d)\.(?:25[0-5]|2[0-4]\d|1?\d?\d)\.(?:25[0-5]|2[0-4]\d|1?\d?\d)|192\.168\.(?:25[0-5]|2[0-4]\d|1?\d?\d)\.(?:25[0-5]|2[0-4]\d|1?\d?\d)|172\.(?:1[6-9]|2\d|3[0-1])\.(?:25[0-5]|2[0-4]\d|1?\d?\d)\.(?:25[0-5]|2[0-4]\d|1?\d?\d))$/; @@ -221,7 +223,9 @@ {/snippet}
- + {#if dev} + {@html SplashScreen} + {/if}
PLG MuDiCS diff --git a/shared/splash_screen.html b/shared/splash_screen.html index 53092b5..5caf70e 100644 --- a/shared/splash_screen.html +++ b/shared/splash_screen.html @@ -1,267 +1,470 @@
- - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + - - - - - + + + + + - - Mu - Di - C - S + + Mu + Di + C + S - - - - - + + + + + - - - - - - - - + + + + + + +
+
+ + + + + + + + + + +
+
\ No newline at end of file + 40% { + fill: var(--start-button-hover); + } + + 70% { + fill: var(--start-button-hover); + } + + 80% { + fill: var(--start-button-active); + } + + 90% { + fill: var(--start-button-active); + } + + 100% { + fill: var(--start-button-hover); + } + } + + @keyframes draw { + to { + stroke-dashoffset: 0; + } + } + + @keyframes activate-monitor { + to { + fill: var(--monitor-active); + } + } + + @keyframes splash-fade { + to { + opacity: 0; + visibility: hidden; + } + } + + rect { + vector-effect: non-scaling-stroke; + } + + /* verhindert, dass die Linien beim Skalieren dicker werden */ + .cursor * { + vector-effect: non-scaling-stroke; + } + + +