diff --git a/src/lib/components/Offline.svelte b/src/lib/components/Offline.svelte
deleted file mode 100644
index 0a8a00e..0000000
--- a/src/lib/components/Offline.svelte
+++ /dev/null
@@ -1,72 +0,0 @@
-
-
-
-
YOU ARE OFFLINE
-
-
Please check your internet connection.
-
- An internet connection is required to sync your wallet and make
- transactions.
-
-
-
-
diff --git a/src/lib/components/PasswordDialog.svelte b/src/lib/components/PasswordDialog.svelte
index 95694a3..c69e063 100644
--- a/src/lib/components/PasswordDialog.svelte
+++ b/src/lib/components/PasswordDialog.svelte
@@ -6,8 +6,7 @@
openWallet,
} from "$lib/wallet.svelte";
import { browser } from "$app/environment";
- import { onMount, tick } from "svelte";
- import { fly } from "svelte/transition";
+ import { onMount } from "svelte";
let { onunlock }: { onunlock: () => void } = $props();
@@ -15,11 +14,8 @@
let password = $state("");
let error = $state("");
let isValidating = $state(false);
- let show = $state(false);
- onMount(async () => {
- show = true;
- await tick();
+ onMount(() => {
dialogEl?.showModal();
});
@@ -45,50 +41,45 @@
}
-{#if show}
-
diff --git a/src/lib/components/ToggleSwitch.svelte b/src/lib/components/ToggleSwitch.svelte
deleted file mode 100644
index 9d3aa97..0000000
--- a/src/lib/components/ToggleSwitch.svelte
+++ /dev/null
@@ -1,88 +0,0 @@
-
-
-
-
-
diff --git a/src/lib/online.svelte.ts b/src/lib/online.svelte.ts
deleted file mode 100644
index cf71c57..0000000
--- a/src/lib/online.svelte.ts
+++ /dev/null
@@ -1,24 +0,0 @@
-import { writable } from "svelte/store";
-
-function createOnline() {
- const { subscribe, set } = writable(navigator.onLine);
-
- function handleOnline() {
- set(true);
- }
-
- function handleOffline() {
- set(false);
- }
-
- if (typeof window !== "undefined") {
- window.addEventListener("online", handleOnline);
- window.addEventListener("offline", handleOffline);
- }
-
- return {
- subscribe,
- };
-}
-
-export const online = createOnline();
diff --git a/src/lib/settings.svelte.ts b/src/lib/settings.svelte.ts
deleted file mode 100644
index 8b99cf0..0000000
--- a/src/lib/settings.svelte.ts
+++ /dev/null
@@ -1,28 +0,0 @@
-import { persistentDbWritable } from "$lib/index";
-import type { Writable } from "svelte/store";
-import Dexie, { type Table } from "dexie";
-
-interface MetaEntry {
- key: string;
- value: string;
-}
-
-class SettingsDB extends Dexie {
- meta!: Table;
-
- constructor() {
- super("settings");
- this.version(1).stores({
- meta: "&key"
- });
- }
-}
-
-const settingsDB = new SettingsDB();
-
-export const shaderEnabled: Writable = persistentDbWritable(
- "shaderEnabled",
- true,
-
- settingsDB
-);
diff --git a/src/lib/style.css b/src/lib/style.css
index 09531f2..77fa773 100644
--- a/src/lib/style.css
+++ b/src/lib/style.css
@@ -31,7 +31,8 @@ body {
letter-spacing: 0.5px;
line-height: 1.2;
text-shadow: 1px 1px 0 #000;
- overflow: hidden;
+ overflow-x: hidden;
+ overflow-y: auto;
}
.app-wrapper {
@@ -43,6 +44,14 @@ body {
padding: 2rem 1rem 4rem;
}
+.container {
+ width: 100%;
+ max-width: 28rem;
+ display: flex;
+ flex-direction: column;
+ align-items: stretch;
+}
+
.send-receive-buttons {
display: flex;
gap: 0.75rem;
@@ -59,9 +68,6 @@ body {
box-shadow:
0 0 0 4px #000,
0 0 0 8px var(--primary-color);
- .header {
- cursor: pointer;
- }
}
.retro-card::before {
diff --git a/src/routes/+layout.svelte b/src/routes/+layout.svelte
index 7b59dbe..74c55c3 100644
--- a/src/routes/+layout.svelte
+++ b/src/routes/+layout.svelte
@@ -10,9 +10,6 @@
import SplashScreen from "$lib/components/SplashScreen.svelte";
import ErrorDialog from "$lib/components/ErrorDialog.svelte";
import InstallPrompt from "$lib/components/InstallPrompt.svelte";
- import { online } from "$lib/online.svelte";
- import Offline from "$lib/components/Offline.svelte";
- import { shaderEnabled } from "$lib/settings.svelte";
type AppError = {
message: string;
@@ -21,7 +18,6 @@
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);
@@ -49,10 +45,7 @@
onMount(() => {
setTimeout(() => {
- closingSplash = true;
- setTimeout(() => {
- showSplash = false;
- }, 1000);
+ showSplash = false;
}, 3000);
window.addEventListener("error", (event: ErrorEvent) => {
@@ -96,82 +89,34 @@
Portal BTC
-
- {#if !$online}
-
- {:else if showInstallPrompt && deferredPrompt}
-
- {:else if showSplash}
-
- {:else if !$walletState.open && !isOnSetup}
-
startNwc()} />
- {:else}
-
- {#if showSettingsButton}
-
-
-
- Settings
-
-
- {/if}
+{#if showInstallPrompt && deferredPrompt}
+
+{:else if showSplash}
+
+{:else}
+
+ {#if showSettingsButton}
+
+
+
+ Settings
+
+
+ {/if}
+ {#if isOnSetup || $walletState.open}
{@render children()}
-
- {/if}
+ {/if}
+
- (currentError = null)} />
-
+ {#if !$walletState.open && !isOnSetup}
+ startNwc()} />
+ {/if}
+{/if}
+
+ (currentError = null)} />
-
-
-
-
-
-
-
diff --git a/static/logo-no-text.png b/static/logo-no-text.png
deleted file mode 100644
index e2a5d9e..0000000
Binary files a/static/logo-no-text.png and /dev/null differ