From 4370d1cd9a93712e9f16d9b886069b79b3ec4c9c Mon Sep 17 00:00:00 2001 From: JulienAuvo Date: Fri, 28 Mar 2025 15:30:23 +0300 Subject: [PATCH 1/3] feat: add animation to splashScreen --- infrastructure/eid-wallet/src/app.html | 1 + .../SplashScreen/SplashScreen.svelte | 21 +++++++++++++++++++ .../src/lib/ui/Drawer/Drawer.svelte | 2 +- .../eid-wallet/src/routes/+layout.svelte | 17 ++++++--------- 4 files changed, 29 insertions(+), 12 deletions(-) create mode 100644 infrastructure/eid-wallet/src/lib/fragments/SplashScreen/SplashScreen.svelte diff --git a/infrastructure/eid-wallet/src/app.html b/infrastructure/eid-wallet/src/app.html index 92e7e333..33600a68 100644 --- a/infrastructure/eid-wallet/src/app.html +++ b/infrastructure/eid-wallet/src/app.html @@ -4,6 +4,7 @@ + Tauri + SvelteKit + Typescript App %sveltekit.head% diff --git a/infrastructure/eid-wallet/src/lib/fragments/SplashScreen/SplashScreen.svelte b/infrastructure/eid-wallet/src/lib/fragments/SplashScreen/SplashScreen.svelte new file mode 100644 index 00000000..1b75bb6f --- /dev/null +++ b/infrastructure/eid-wallet/src/lib/fragments/SplashScreen/SplashScreen.svelte @@ -0,0 +1,21 @@ + + +
+
+ + illustration + illustration +
+

eAgency

+

Your self-sovereign digital entity

+
+ logo +
+
+ + \ No newline at end of file diff --git a/infrastructure/eid-wallet/src/lib/ui/Drawer/Drawer.svelte b/infrastructure/eid-wallet/src/lib/ui/Drawer/Drawer.svelte index e804ff30..0af52cf9 100644 --- a/infrastructure/eid-wallet/src/lib/ui/Drawer/Drawer.svelte +++ b/infrastructure/eid-wallet/src/lib/ui/Drawer/Drawer.svelte @@ -1,7 +1,7 @@ {#if showSplashScreen} -
- illustration - illustration -
-

eAgency

-

Your self-sovereign digital entity

-
- logo -
+ {:else} {@render children?.()} {/if} \ No newline at end of file From 272dc96d0525b8971a0fbcbc7af5ff82cbeae418 Mon Sep 17 00:00:00 2001 From: JulienAuvo Date: Fri, 28 Mar 2025 16:02:10 +0300 Subject: [PATCH 2/3] feat: implement data loading logic with splash screen delay --- .../eid-wallet/src/routes/+layout.svelte | 28 +++++++++++++------ 1 file changed, 20 insertions(+), 8 deletions(-) diff --git a/infrastructure/eid-wallet/src/routes/+layout.svelte b/infrastructure/eid-wallet/src/routes/+layout.svelte index 3d8785f7..e6de48be 100644 --- a/infrastructure/eid-wallet/src/routes/+layout.svelte +++ b/infrastructure/eid-wallet/src/routes/+layout.svelte @@ -1,21 +1,33 @@ - + {#if showSplashScreen} {:else} {@render children?.()} -{/if} \ No newline at end of file +{/if} + \ No newline at end of file From 21796c8fecdb222e9de8139c092fb82a36afec73 Mon Sep 17 00:00:00 2001 From: JulienAuvo Date: Fri, 28 Mar 2025 16:06:55 +0300 Subject: [PATCH 3/3] chore: sort import --- .../src/lib/fragments/SplashScreen/SplashScreen.svelte | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/infrastructure/eid-wallet/src/lib/fragments/SplashScreen/SplashScreen.svelte b/infrastructure/eid-wallet/src/lib/fragments/SplashScreen/SplashScreen.svelte index 1b75bb6f..d344a848 100644 --- a/infrastructure/eid-wallet/src/lib/fragments/SplashScreen/SplashScreen.svelte +++ b/infrastructure/eid-wallet/src/lib/fragments/SplashScreen/SplashScreen.svelte @@ -1,6 +1,6 @@