diff options
| author | Adam Soltys <[email protected]> | 2024-09-24 15:57:04 -0700 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2024-09-24 15:57:04 -0700 |
| commit | 4373f870ad528811a9e0bb1a6749b01d5a7ec051 (patch) | |
| tree | fcc25342e1992d45e9ac5018fd2257c263376278 /src/components/Account.svelte | |
| parent | 8aeb0d6d818b823afec1ee7e5749971468842c9c (diff) | |
| download | coinos-ui-4373f870ad528811a9e0bb1a6749b01d5a7ec051.tar.gz coinos-ui-4373f870ad528811a9e0bb1a6749b01d5a7ec051.zip | |
stylin
Diffstat (limited to 'src/components/Account.svelte')
| -rw-r--r-- | src/components/Account.svelte | 40 |
1 files changed, 25 insertions, 15 deletions
diff --git a/src/components/Account.svelte b/src/components/Account.svelte index 8f72119e..d4a89556 100644 --- a/src/components/Account.svelte +++ b/src/components/Account.svelte @@ -10,42 +10,52 @@ $: refresh(account); let refresh = (a) => ({ seed, balance, id } = a); - let setAccount = () => - (document.cookie = `aid=${id}; path=/; max-age=86400`); + let setAccount = () => (document.cookie = `aid=${id}; path=/; max-age=86400`); </script> <a href={`/payments`} class="block" on:click={setAccount}> - <div class="border rounded-xl shadow p-4 space-y-5"> + <div class="p-8 space-y-5 bg-primary rounded-2xl border"> <div class="flex"> <Balance {balance} {user} {rate} /> + {#if seed} <a href={`/account/${id}`} class="contents"> - <button class="ml-auto flex gap-1 mb-auto pb-2 pl-2"> - <div class="my-auto text-secondary">{name}</div> + <button class="ml-auto flex gap-1 mb-auto pb-4 pl-4"> <Icon icon="settings" style="w-8 my-auto" /> </button> </a> + {/if} </div> - <div class="flex flex-wrap gap-3 justify-center w-full text-xl"> - <a href={`/send`} class="contents grow" on:click={setAccount}> + <div class="flex flex-wrap gap-1 justify-center w-full text-xl"> + <a href={`/invoice`} class="contents" on:click={setAccount}> <button - type="button" - class="rounded-2xl border py-5 px-6 font-bold hover:opacity-80 flex bg-primary grow" + class="rounded-2xl border py-5 px-6 hover:opacity-80 flex grow bg-white" > <div class="mx-auto flex gap-2"> - <Icon icon="send" style="w-8" /> - <div class="my-auto">{$t("user.dashboard.send")}</div> + <Icon icon="receive" style="w-8" /> + <div class="my-auto">{$t("user.dashboard.receive")}</div> </div> </button> </a> - <a href={`/invoice`} class="contents" on:click={setAccount}> + <a href={`/scan`} class="contents" on:click={setAccount}> <button - class="rounded-2xl border py-5 px-6 font-bold hover:opacity-80 flex bg-primary grow" + class="rounded-2xl border py-5 px-6 hover:opacity-80 flex shrink bg-white" > <div class="mx-auto flex gap-2"> - <Icon icon="receive" style="w-8" /> - <div class="my-auto">{$t("user.dashboard.receive")}</div> + <Icon icon="camera" style="w-8" /> + </div> + </button> + </a> + + <a href={`/send`} class="contents grow" on:click={setAccount}> + <button + type="button" + class="rounded-2xl border py-5 px-6 hover:opacity-80 flex bg-white grow" + > + <div class="mx-auto flex gap-1"> + <Icon icon="send" style="w-8" /> + <div class="my-auto">{$t("user.dashboard.send")}</div> </div> </button> </a> |
