diff options
| author | Adam Soltys <[email protected]> | 2024-11-04 22:35:30 -0800 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2024-11-04 22:35:30 -0800 |
| commit | 0f097b189a8afdec09057d7babd6904e7497b534 (patch) | |
| tree | f99e8cb8be91dd8817c96140aa9bd0f2b082684a /src/components/InvoiceTypes.svelte | |
| parent | 520d5eb794bb0303b0d2b8b01f487d848a6567f4 (diff) | |
| download | coinos-ui-0f097b189a8afdec09057d7babd6904e7497b534.tar.gz coinos-ui-0f097b189a8afdec09057d7babd6904e7497b534.zip | |
dark styles
Diffstat (limited to 'src/components/InvoiceTypes.svelte')
| -rw-r--r-- | src/components/InvoiceTypes.svelte | 56 |
1 files changed, 56 insertions, 0 deletions
diff --git a/src/components/InvoiceTypes.svelte b/src/components/InvoiceTypes.svelte new file mode 100644 index 00000000..35f1bbf1 --- /dev/null +++ b/src/components/InvoiceTypes.svelte @@ -0,0 +1,56 @@ +<script> + export let aid, user, type, types, t, setType; +</script> + +{#if aid === user?.id} + <div class="grid grid-cols-2 gap-2 justify-around text-secondary"> + <button + class="btn" + class:bg-base-300={type === types.bitcoin} + class:text-secondary={type === types.bitcoin} + on:click={() => setType(types.bitcoin)} + > + <img src="/images/bitcoin.svg" class="w-8" alt="Bitcoin" /> + <div class="my-auto text-lg">Bitcoin</div> + </button> + + <button + class="btn" + class:bg-base-300={type === types.liquid} + class:text-secondary={type === types.liquid} + on:click={() => setType(types.liquid)} + > + <img src="/images/liquid.svg" class="w-8" alt="Liquid" /> + <div class="my-auto text-lg">Liquid</div> + </button> + + <button + class="btn" + class:bg-base-300={type === types.lightning} + class:text-secondary={type === types.lightning} + on:click={() => setType(types.lightning)} + > + <div class="bg-base-100 rounded-full w-8 h-8 text-center flex"> + <div class="m-auto">⚡️</div> + </div> + <div class="my-auto text-lg">Lightning</div> + </button> + + <a href={`/receive`} class="block contents"> + <button class="btn"> + <img src="/images/cash.png" class="w-8 my-auto" /> + <div class="my-auto text-lg">Ecash</div> + </button> + </a> + </div> + + {#if type === types.liquid} + <div class="flex justify-center"> + <div class="my-auto text-xl text-center text-secondary"> + {t("payments.onlyLbtc")} + <span class="text-teal-500 font-bold">L-BTC</span>, + {t("payments.dontDeposit")} + </div> + </div> + {/if} +{/if} |
