diff options
| author | Adam Soltys <[email protected]> | 2024-09-14 10:53:04 -0700 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2024-09-17 09:19:27 -0700 |
| commit | 8e990dae9fb39af9deb05a544fad688dcda8e2e8 (patch) | |
| tree | 65d1b6d0d10ebef3f9f0966b8dee433b5b30a1a1 | |
| parent | 6890311faca2bed1b8d22dbd88b8925f382eedd2 (diff) | |
| download | coinos-ui-8e990dae9fb39af9deb05a544fad688dcda8e2e8.tar.gz coinos-ui-8e990dae9fb39af9deb05a544fad688dcda8e2e8.zip | |
cash accounts
| -rw-r--r-- | src/routes/(app)/account/cash/+page.svelte | 29 | ||||
| -rw-r--r-- | src/routes/(app)/account/self/+page.svelte | 59 | ||||
| -rw-r--r-- | src/routes/(app)/account/setup/+page.svelte | 69 | ||||
| -rw-r--r-- | static/images/cash.png | bin | 0 -> 64896 bytes | |||
| -rw-r--r-- | static/images/keys.png | bin | 0 -> 100051 bytes | |||
| -rw-r--r-- | static/images/minibits.png | bin | 0 -> 7605 bytes |
6 files changed, 106 insertions, 51 deletions
diff --git a/src/routes/(app)/account/cash/+page.svelte b/src/routes/(app)/account/cash/+page.svelte new file mode 100644 index 00000000..de0092a4 --- /dev/null +++ b/src/routes/(app)/account/cash/+page.svelte @@ -0,0 +1,29 @@ +<script> + import { t } from "$lib/translations"; +</script> + +<div class="space-y-5"> + <h1 class="text-center text-3xl font-semibold">Choose your custodian</h1> + + <div class="container w-full mx-auto text-lg px-4 max-w-xl space-y-5"> + <a href="/account/cash"> + <div class="shadow p-8 rounded-xl flex gap-4"> + <img src="/icons/logo-symbol.svg" class="w-20" /> + <div> + <div class="text-xl">Coinos</div> + <div class="text-secondary"> + https://mint.coinos.io + </div> + </div> + </div> + <div class="shadow p-8 rounded-xl flex gap-4"> + <img src="/images/minibits.png" class="w-20" /> + <div> + <div class="text-xl">Minibits</div> + <div class="text-secondary"> + https://mint.minibits.cash/bitcoin + </div> + </div> + </div> + </div> +</div> diff --git a/src/routes/(app)/account/self/+page.svelte b/src/routes/(app)/account/self/+page.svelte new file mode 100644 index 00000000..833def87 --- /dev/null +++ b/src/routes/(app)/account/self/+page.svelte @@ -0,0 +1,59 @@ +<script> + import { copy } from "$lib/utils"; + import { t } from "$lib/translations"; + import Icon from "$comp/Icon.svelte"; + import { mnemonic } from "$lib/store"; + import { generateMnemonic } from "@scure/bip39"; + import { wordlist } from "@scure/bip39/wordlists/english"; + + export let data; + let { user } = data; + + let reveal; + + let toggleSeed = async () => { + try { + $mnemonic = await generateMnemonic(wordlist); + reveal = !reveal; + } catch (e) { + console.log(e); + } + }; +</script> + +<div class="space-y-5"> + <h1 class="text-center text-3xl font-semibold">Account setup</h1> + <h2 class="text-center text-2xl text-secondary">Step 1</h2> + + <div class="container w-full mx-auto text-lg px-4 max-w-xl space-y-5"> + <p class="text-secondary mb-1"> + Whoever knows these words in the correct order can withdraw funds from the account. We can't + recover them if you lose them. + </p> + + {#if reveal} + <div class="text-2xl border p-4 text-center rounded-2xl"> + {$mnemonic} + </div> + + <div> + <a href={`/account/setup/step2`} class="contents"> + <button + type="button" + class="bg-black text-white w-full px-5 py-6 text-xl rounded-2xl font-bold" + on:click={toggleSeed} + > + I've written down my seed phrase + </button> + </a> + </div> + {:else} + <div class="flex justify-center"> + <button type="button" class="primary" on:click={toggleSeed}> + <Icon icon="warning" style="mr-2 w-6 my-auto" /> + {$t("user.settings.revealSeed")} + </button> + </div> + {/if} + </div> +</div> diff --git a/src/routes/(app)/account/setup/+page.svelte b/src/routes/(app)/account/setup/+page.svelte index 5a15316a..f19c4c96 100644 --- a/src/routes/(app)/account/setup/+page.svelte +++ b/src/routes/(app)/account/setup/+page.svelte @@ -1,64 +1,31 @@ <script> - import { copy } from "$lib/utils"; import { t } from "$lib/translations"; - import Icon from "$comp/Icon.svelte"; - import { mnemonic } from "$lib/store"; - import { generateMnemonic } from "@scure/bip39"; - import { wordlist } from "@scure/bip39/wordlists/english"; - - export let data; - let { user } = data; - - let reveal; - - let toggleSeed = async () => { - try { - $mnemonic = await generateMnemonic(wordlist); - reveal = !reveal; - } catch (e) { - console.log(e); - } - }; </script> <div class="space-y-5"> - <h1 class="text-center text-3xl font-semibold">Account setup</h1> - <h2 class="text-center text-2xl text-secondary">Step 1</h2> + <h1 class="text-center text-3xl font-semibold">Choose account type</h1> <div class="container w-full mx-auto text-lg px-4 max-w-xl space-y-5"> - <p class="text-secondary mb-1"> - The keys to your savings account are derived from a seed phrase. When - you're ready, write it down and keep it safe. - </p> - - <p class="text-secondary mb-1"> - Whoever knows these words in the correct order can withdraw funds from the account. We can't - recover them if you lose them. - </p> - - {#if reveal} - <div class="text-2xl border p-4 text-center rounded-2xl"> - {$mnemonic} + <a href="/account/cash"> + <div class="shadow p-8 rounded-xl flex gap-4"> + <img src="/images/cash.png" class="w-20" /> + <div> + <div class="text-xl">Cash</div> + <div class="text-secondary"> + Your balance is held with a custodian. Payments are faster and + cheaper. </div> - + </div> + </div> + <div class="shadow p-8 rounded-xl flex gap-4"> + <img src="/images/keys.png" class="w-20" /> <div> - <a href={`/account/setup/step2`} class="contents"> - <button - type="button" - class="bg-black text-white w-full px-5 py-6 text-xl rounded-2xl font-bold" - on:click={toggleSeed} - > - I've written down my seed phrase - </button> - </a> + <div class="text-xl">Savings</div> + <div class="text-secondary"> + You hold the keys to the account and are responsible for safeguarding + them. </div> - {:else} - <div class="flex justify-center"> - <button type="button" class="primary" on:click={toggleSeed}> - <Icon icon="warning" style="mr-2 w-6 my-auto" /> - {$t("user.settings.revealSeed")} - </button> </div> - {/if} + </div> </div> </div> diff --git a/static/images/cash.png b/static/images/cash.png Binary files differnew file mode 100644 index 00000000..2f1063dd --- /dev/null +++ b/static/images/cash.png diff --git a/static/images/keys.png b/static/images/keys.png Binary files differnew file mode 100644 index 00000000..aef443d2 --- /dev/null +++ b/static/images/keys.png diff --git a/static/images/minibits.png b/static/images/minibits.png Binary files differnew file mode 100644 index 00000000..307ed7c8 --- /dev/null +++ b/static/images/minibits.png |
