aboutsummaryrefslogtreecommitdiffstats
path: root/src/routes/(app)/qr
diff options
context:
space:
mode:
authorAdam Soltys <[email protected]>2024-08-18 13:09:41 -0700
committerAdam Soltys <[email protected]>2024-08-18 22:15:05 -0700
commit250c7f9e9621d9eae1a3b364dd7d0716e7c49e31 (patch)
tree5cf0250363d11fb33414d8cae4f583e186247123 /src/routes/(app)/qr
parente1cdf7d3c4c7b737d779efdf4236fb55fc0e4229 (diff)
downloadcoinos-ui-250c7f9e9621d9eae1a3b364dd7d0716e7c49e31.tar.gz
coinos-ui-250c7f9e9621d9eae1a3b364dd7d0716e7c49e31.zip
ecash
Diffstat (limited to 'src/routes/(app)/qr')
-rw-r--r--src/routes/(app)/qr/[text]/+page.svelte14
1 files changed, 10 insertions, 4 deletions
diff --git a/src/routes/(app)/qr/[text]/+page.svelte b/src/routes/(app)/qr/[text]/+page.svelte
index da164b50..c9562582 100644
--- a/src/routes/(app)/qr/[text]/+page.svelte
+++ b/src/routes/(app)/qr/[text]/+page.svelte
@@ -1,7 +1,7 @@
<script>
import Icon from "$comp/Icon.svelte";
import Qr from "$comp/Qr.svelte";
- import { back } from "$lib/utils";
+ import { back, copy } from "$lib/utils";
export let data;
let { src, text } = data;
</script>
@@ -17,9 +17,15 @@
>
<Qr {src} />
- <div class="text-center w-full text-lg break-all">
- {text}
- </div>
+ <button
+ type="button"
+ class="flex gap-2 text-center break-all rounded-2xl hover:opacity-80 py-5 px-6 w-full mx-auto justify-center border text-xl hover:bg-slate-100"
+ on:click={() => copy(text)}
+ >
+ <div class="my-auto">
+ {text}
+ </div>
+ </button>
</div>
</div>
</div>