From a3bf2616825f1a11ee059a971e93d87f0a03f186 Mon Sep 17 00:00:00 2001 From: valerio Date: Mon, 23 Mar 2026 19:57:20 +0100 Subject: [PATCH] FEAT: Splash Screen todo: loading status and percent --- src/lib/components/Splash.svelte | 34 ++++++++++++++ src/routes/+page.svelte | 79 +++++++++++++++++++------------- 2 files changed, 82 insertions(+), 31 deletions(-) create mode 100644 src/lib/components/Splash.svelte diff --git a/src/lib/components/Splash.svelte b/src/lib/components/Splash.svelte new file mode 100644 index 0000000..f4ec25b --- /dev/null +++ b/src/lib/components/Splash.svelte @@ -0,0 +1,34 @@ + + +
+ {#if loadingState == 'loading'} +
+
+  ▄▄▄▄▄
+ ██▀▀▀▀█▄                      █▄ █▄
+ ▀██▄  ▄▀ ▄                   ▄██▄██    ▀▀
+   ▀██▄▄  ███▄███▄ ▄███▄ ▄███▄ ██ ████▄ ██ ▄█▀█▄
+ ▄   ▀██▄ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██▄█▀
+ ▀██████▀▄██ ██ ▀█▄▀███▀▄▀███▀▄██▄██ ██▄██▄▀█▄▄▄
+			
+
+ {/if} +
+ + diff --git a/src/routes/+page.svelte b/src/routes/+page.svelte index ce0f22f..330a509 100644 --- a/src/routes/+page.svelte +++ b/src/routes/+page.svelte @@ -1,28 +1,38 @@ @@ -69,7 +66,7 @@
- {#if initialized} + {#if loadingState == 'initialized'}
+
v{version}
{:else} - LOADING... +
+ +
{/if}
@@ -207,4 +207,21 @@ width: 100%; height: 100%; } + .version { + position: fixed; + bottom: 2rem; + right: 2rem; + z-index: 2; + text-align: right; + color: var(--light-accent); + } + .splash-wrapper { + position: fixed; + top: 0; + left: 0; + width: 100%; + height: 100%; + background-color: var(--white); + z-index: 1; + }