diff options
| author | Adam Soltys <[email protected]> | 2025-07-13 23:07:54 -0700 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2025-07-13 23:07:54 -0700 |
| commit | 1d202c7d73aa0d84fa7c2bbc1749b9111054e3b1 (patch) | |
| tree | 6817cf5f769c5f302d257e24b6f7ce22f57b26bf | |
| parent | c2d798b8825cc3c5011069f4bcdf2c7dd5234292 (diff) | |
| download | coinos-ui-1d202c7d73aa0d84fa7c2bbc1749b9111054e3b1.tar.gz coinos-ui-1d202c7d73aa0d84fa7c2bbc1749b9111054e3b1.zip | |
nfc toggle
| -rw-r--r-- | src/routes/(app)/[username]/accepted/[text]/+page.svelte | 31 |
1 files changed, 4 insertions, 27 deletions
diff --git a/src/routes/(app)/[username]/accepted/[text]/+page.svelte b/src/routes/(app)/[username]/accepted/[text]/+page.svelte index 1984cf81..9770c937 100644 --- a/src/routes/(app)/[username]/accepted/[text]/+page.svelte +++ b/src/routes/(app)/[username]/accepted/[text]/+page.svelte @@ -6,6 +6,9 @@ let { nfc, text } = $derived(data); let { username } = $derived(data.subject); let url = `https://coinos.io/p/${username.toLowerCase()}`; + + let icon; + if (nfc) icon = "nfc.png"; </script> <div class="px-2"> @@ -17,35 +20,9 @@ <!-- bitcoin --> <!-- </h3> --> </div> - <Qr {text} icon="nfc.png" /> + <Qr {text} {icon} /> <div class="text-center text-4xl font-bold break-all"> coinos.io/{username.toLowerCase()} </div> - {#if nfc} - <div class="flex w-full justify-center gap-4 mt-10 text-2xl"> - <div class="flex gap-1 items-center"> - <img - src="/images/tap.png" - class="mx-auto my-auto" - style="width: 120px" - /> - - <!-- <img src="/images/icon.png" class="mx-auto my-auto w-16" /> --> - </div> - <div class="flex ml-auto gap-1 items-center"> - <!-- <iconify-icon --> - <!-- noobserver --> - <!-- icon="ph:lightning-fill" --> - <!-- class="text-yellow-300" --> - <!-- width={48} --> - <!-- ></iconify-icon> --> - <img - src="/images/lntap.png" - class="ml-auto my-auto" - style="width: 120px" - /> - </div> - </div> - {/if} </div> </div> |
