diff options
| author | Adam Soltys <[email protected]> | 2023-12-20 15:06:00 -0800 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2023-12-20 15:06:00 -0800 |
| commit | b419ccffd45add72259f4abe548ad29b61309488 (patch) | |
| tree | 42b99083b5c70ca14727a16010fd9caa7562e3bc /src/routes/(app)/launch/purchase | |
| parent | 4cb3b467486456b53c956da95cdc0d17c3e6ff24 (diff) | |
| download | coinos-ui-b419ccffd45add72259f4abe548ad29b61309488.tar.gz coinos-ui-b419ccffd45add72259f4abe548ad29b61309488.zip | |
prettier
Diffstat (limited to 'src/routes/(app)/launch/purchase')
| -rw-r--r-- | src/routes/(app)/launch/purchase/+page.svelte | 17 | ||||
| -rw-r--r-- | src/routes/(app)/launch/purchase/card/+page.server.js | 3 | ||||
| -rw-r--r-- | src/routes/(app)/launch/purchase/card/+page.svelte | 8 |
3 files changed, 17 insertions, 11 deletions
diff --git a/src/routes/(app)/launch/purchase/+page.svelte b/src/routes/(app)/launch/purchase/+page.svelte index 3af3b186..49a51973 100644 --- a/src/routes/(app)/launch/purchase/+page.svelte +++ b/src/routes/(app)/launch/purchase/+page.svelte @@ -21,7 +21,9 @@ <div class="font-normal text-gray-800 mx-auto mb-8 space-y-8"> <h1 class="mb-4 text-4xl font-bold leading-none tracking-tight text-gray-800 text-center" - >Purchase Ticket</h1> + > + Purchase Ticket + </h1> <img src={`/tickets/${(ticket + 1).toString().padStart(2, "0")}.png`} @@ -35,7 +37,8 @@ <div class="w-full flex"> <button - class="bg-black text-white border rounded-full px-8 py-4 font-bold hover:opacity-80 mx-auto text-2xl"> + class="bg-black text-white border rounded-full px-8 py-4 font-bold hover:opacity-80 mx-auto text-2xl" + > Count me in </button> </div> @@ -43,21 +46,25 @@ {:else} <h1 class="mb-4 text-xl font-bold leading-none tracking-tight text-gray-800 text-center" - >Payment Options</h1> + > + Payment Options + </h1> <div class="flex justify-center gap-4"> <form action="?/lightning" method="POST"> <input type="hidden" name="currency" value={currency} /> <input type="hidden" name="username" value={username} /> <button - class="border rounded-full px-8 py-4 font-bold hover:opacity-80 mx-auto text-2xl"> + class="border rounded-full px-8 py-4 font-bold hover:opacity-80 mx-auto text-2xl" + > Lightning </button> </form> <a href={`purchase/card`}> <button - class="border rounded-full px-8 py-4 font-bold hover:opacity-80 mx-auto text-2xl"> + class="border rounded-full px-8 py-4 font-bold hover:opacity-80 mx-auto text-2xl" + > Credit Card </button> </a> diff --git a/src/routes/(app)/launch/purchase/card/+page.server.js b/src/routes/(app)/launch/purchase/card/+page.server.js index 416a66e4..9fb36b71 100644 --- a/src/routes/(app)/launch/purchase/card/+page.server.js +++ b/src/routes/(app)/launch/purchase/card/+page.server.js @@ -43,8 +43,7 @@ export const actions = { method, }).then((r) => r.json()); - if (status !== "succeeded") - error(500, { message: "Card payment failed" }); + if (status !== "succeeded") error(500, { message: "Card payment failed" }); let asset = await createTicket(cookies, form.get("username")); redirect(307, `/launch/thanks/${asset}`); diff --git a/src/routes/(app)/launch/purchase/card/+page.svelte b/src/routes/(app)/launch/purchase/card/+page.svelte index d7ef830d..6d33c87f 100644 --- a/src/routes/(app)/launch/purchase/card/+page.svelte +++ b/src/routes/(app)/launch/purchase/card/+page.svelte @@ -48,9 +48,8 @@ CVC/CVV <span class="relative group"> <span - class="hidden group-hover:flex justify-center items-center px-2 py-1 text-xs absolute -right-2 transform translate-x-full -translate-y-1/2 w-max top-1/2 bg-black text-white"> - - + class="hidden group-hover:flex justify-center items-center px-2 py-1 text-xs absolute -right-2 transform translate-x-full -translate-y-1/2 w-max top-1/2 bg-black text-white" + > 3-digit number on the back of your card</span > </span> @@ -68,7 +67,8 @@ <button class="bg-black text-white border rounded-full px-8 py-4 font-bold hover:opacity-80 mx-auto text-xl" type="submit" - disabled={loading}> + disabled={loading} + > {#if loading} <Spinner /> {:else} |
