diff --git a/src/lib/components/SplashScreen.svelte b/src/lib/components/SplashScreen.svelte index 353a8d1..07b4401 100644 --- a/src/lib/components/SplashScreen.svelte +++ b/src/lib/components/SplashScreen.svelte @@ -1,158 +1,247 @@ -
{ - mouseX = 0; - mouseY = 0; - }} -> -
-
+
+
+
+ +
+ +
+

+ PORTALBTC +

+

Your portal to everything Bitcoin

+
+ +
+
+
+
+
Initializing wallet...
+
-
- +
+ Powered by +
-
diff --git a/src/routes/+layout.svelte b/src/routes/+layout.svelte index 74c55c3..5d09bcb 100644 --- a/src/routes/+layout.svelte +++ b/src/routes/+layout.svelte @@ -18,6 +18,7 @@ let { children } = $props(); let showSplash = $state(true); + let closingSplash = $state(false); let currentError = $state(null); let showInstallPrompt = $state(false); let deferredPrompt: Event | undefined = $state(undefined); @@ -45,7 +46,10 @@ onMount(() => { setTimeout(() => { - showSplash = false; + closingSplash = true; + setTimeout(() => { + showSplash = false; + }, 1000); }, 3000); window.addEventListener("error", (event: ErrorEvent) => { @@ -89,34 +93,141 @@ Portal BTC -{#if showInstallPrompt && deferredPrompt} - -{:else if showSplash} - -{:else} -
- {#if showSettingsButton} -
- -
- {/if} - - {#if isOnSetup || $walletState.open} - {@render children()} - {/if} -
- - {#if !$walletState.open && !isOnSetup} +
+ {#if showInstallPrompt && deferredPrompt} + + {:else if showSplash} + + {:else if !$walletState.open && !isOnSetup} startNwc()} /> - {/if} -{/if} + {:else} +
+ {#if showSettingsButton} +
+ +
+ {/if} - (currentError = null)} /> + {@render children()} +
+ {/if} + + (currentError = null)} /> +
+ + + + + + + diff --git a/static/logo-no-text.png b/static/logo-no-text.png new file mode 100644 index 0000000..e2a5d9e Binary files /dev/null and b/static/logo-no-text.png differ