From 1b6ac8df832ad6f4b469b2197c6b529f8d9d757f Mon Sep 17 00:00:00 2001 From: Adam Soltys Date: Fri, 15 Nov 2024 16:01:16 -0800 Subject: cleanup --- src/lib/nostr.ts | 4 +- src/routes/+page.svelte | 122 +++++++++++++++++++++--------------------------- 2 files changed, 53 insertions(+), 73 deletions(-) diff --git a/src/lib/nostr.ts b/src/lib/nostr.ts index 1bd26144..2e3ea142 100644 --- a/src/lib/nostr.ts +++ b/src/lib/nostr.ts @@ -103,9 +103,7 @@ export const getPrivateKey = async (user: User): Promise => { export const getMnemonic = async (user: User) => { const { cipher, salt } = user; - let entropy; - - entropy = new Uint8Array( + const entropy = new Uint8Array( await crypto.subtle.decrypt( { name: "AES-GCM", iv: new Uint8Array(16) }, await stretch(await getPassword(), Buffer.from(salt, "hex")), diff --git a/src/routes/+page.svelte b/src/routes/+page.svelte index 998673f9..9ba12800 100644 --- a/src/routes/+page.svelte +++ b/src/routes/+page.svelte @@ -1,6 +1,4 @@ -{#if loaded} - - -
- + + +
+ + + + + {$t("landing.info2.description1")} +

+ {$t("landing.info2.description2")} +

+ {@html $t("landing.info2.description3")} +
+ +
- - - {$t("landing.info2.description1")} -

- {$t("landing.info2.description2")} -

- {@html $t("landing.info2.description3")} -
- -
- -
-
+
+
+
+ +
+

+ {$t("howItWorks.header")} +

+
+ {#each howItWorksSteps as step} + + {/each}
+
+
-
-

- {$t("howItWorks.header")} +
+
+

+ {$t("faq.header")}

-
- {#each howItWorksSteps as step} - - {/each} -
-
-
- -
-
-

- {$t("faq.header")} -

- {#each faqs as f} - - {/each} -
-
+ {#each faqs as f} + + {/each}
+
+
- -

+ +
-