diff options
| author | Adam Soltys <[email protected]> | 2022-11-06 11:24:36 -0800 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2022-11-06 11:24:36 -0800 |
| commit | 1bda2b36e3f7f6c7f7a85647b2bc4ca308012fbe (patch) | |
| tree | 29601126a68556d11e5968d15159b5fc066d2e64 /src/components/Invoice.svelte | |
| parent | 84e8da3e50ba1a35d254346d8fc92a3795d41670 (diff) | |
| download | coinos-ui-1bda2b36e3f7f6c7f7a85647b2bc4ca308012fbe.tar.gz coinos-ui-1bda2b36e3f7f6c7f7a85647b2bc4ca308012fbe.zip | |
invoice requests
Diffstat (limited to 'src/components/Invoice.svelte')
| -rw-r--r-- | src/components/Invoice.svelte | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/src/components/Invoice.svelte b/src/components/Invoice.svelte new file mode 100644 index 00000000..4b42f851 --- /dev/null +++ b/src/components/Invoice.svelte @@ -0,0 +1,34 @@ +<script> + import { fly } from 'svelte/transition'; + import { Avatar, Icon } from '$comp'; + import { invoice } from '$lib/store'; + + export let user; +</script> + +{#if $invoice} + <div + class="flex flex-wrap md:flex-nowrap fixed bottom-0 border-t w-full p-4 bg-white z-50" + in:fly + > + <div class="my-auto md:w-1/2"> + <div class="flex"> + <Avatar user={$invoice.user.username} size={12} /> + <h1 class="my-auto"><b>{$invoice.user.username}</b> sent an invoice</h1> + </div> + </div> + <div class="mx-auto my-auto"> + <a href={`/invoice/${$invoice.uuid}`}> + <button class="text-lg rounded-full border py-3 px-7 font-bold hover:opacity-80 w-full"> + Pay + </button> + </a> + </div> + <button + class="absolute right-4 top-4 ml-auto mb-auto rounded-full border font-bold hover:opacity-80 p-3" + on:click={() => ($invoice = undefined)} + > + <Icon icon="close" /> + </button> + </div> +{/if} |
