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 | |
| parent | 4cb3b467486456b53c956da95cdc0d17c3e6ff24 (diff) | |
| download | coinos-ui-b419ccffd45add72259f4abe548ad29b61309488.tar.gz coinos-ui-b419ccffd45add72259f4abe548ad29b61309488.zip | |
prettier
Diffstat (limited to 'src/routes/(app)/launch')
| -rw-r--r-- | src/routes/(app)/launch/+page.svelte | 7 | ||||
| -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 | ||||
| -rw-r--r-- | src/routes/(app)/launch/thanks/[asset]/+page.svelte | 7 | ||||
| -rw-r--r-- | src/routes/(app)/launch/ticket/+page.svelte | 7 |
6 files changed, 32 insertions, 17 deletions
diff --git a/src/routes/(app)/launch/+page.svelte b/src/routes/(app)/launch/+page.svelte index cb43e63e..ef02ae0f 100644 --- a/src/routes/(app)/launch/+page.svelte +++ b/src/routes/(app)/launch/+page.svelte @@ -58,7 +58,9 @@ <div class="p-4 font-normal text-gray-800 md:w-3/4 space-y-5"> <h1 class="mb-4 text-4xl font-bold leading-none tracking-tight text-gray-800" - >Launch Party!</h1> + > + Launch Party! + </h1> <p class="leading-normal mb-2"> Come join us at our launch party celebrating our new design and 10 @@ -104,7 +106,8 @@ <div class="flex w-full my-8"> <a href={link} class="mx-auto"> <button - class="bg-white text-black border rounded-full px-8 py-4 font-bold hover:opacity-80 text-2xl"> + class="bg-white text-black border rounded-full px-8 py-4 font-bold hover:opacity-80 text-2xl" + > {text} </button> </a> 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} diff --git a/src/routes/(app)/launch/thanks/[asset]/+page.svelte b/src/routes/(app)/launch/thanks/[asset]/+page.svelte index 3d8fb844..9b37002b 100644 --- a/src/routes/(app)/launch/thanks/[asset]/+page.svelte +++ b/src/routes/(app)/launch/thanks/[asset]/+page.svelte @@ -12,7 +12,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" - >Thanks!</h1> + > + Thanks! + </h1> <p>We look forward to seeing you!</p> </div> @@ -20,7 +22,8 @@ <div class="w-full flex"> <a href="/launch/ticket" class="mx-auto"> <button - class="bg-black text-white border rounded-full px-8 py-4 font-bold hover:opacity-80 text-2xl"> + class="bg-black text-white border rounded-full px-8 py-4 font-bold hover:opacity-80 text-2xl" + > Done </button> </a> diff --git a/src/routes/(app)/launch/ticket/+page.svelte b/src/routes/(app)/launch/ticket/+page.svelte index a4888727..6b16e804 100644 --- a/src/routes/(app)/launch/ticket/+page.svelte +++ b/src/routes/(app)/launch/ticket/+page.svelte @@ -7,7 +7,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" - >Your Ticket</h1> + > + Your Ticket + </h1> <p> We've minted your ticket as an <a @@ -25,7 +27,8 @@ <div class="w-full flex"> <a href="/" class="mx-auto"> <button - class="bg-black text-white border rounded-full px-8 py-4 font-bold hover:opacity-80 text-2xl"> + class="bg-black text-white border rounded-full px-8 py-4 font-bold hover:opacity-80 text-2xl" + > Done </button> </a> |
