aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorAdam Soltys <[email protected]>2022-10-13 22:03:43 -0700
committerAdam Soltys <[email protected]>2022-10-13 22:03:43 -0700
commit775cfb5859d676af0c0cae8e144b6dfb06ba1caf (patch)
tree8c533e58fbf150046d3c8789a0dc8d47bd168b01 /src
parentffa0710e3f6895c6f7bea0e58e18c89047c7c4f7 (diff)
downloadcoinos-ui-775cfb5859d676af0c0cae8e144b6dfb06ba1caf.tar.gz
coinos-ui-775cfb5859d676af0c0cae8e144b6dfb06ba1caf.zip
ticket page
Diffstat (limited to 'src')
-rw-r--r--src/routes/launch/+page.svelte11
-rw-r--r--src/routes/launch/purchase/+page.server.js6
-rw-r--r--src/routes/launch/purchase/+page.svelte11
3 files changed, 17 insertions, 11 deletions
diff --git a/src/routes/launch/+page.svelte b/src/routes/launch/+page.svelte
index a2e14738..6bd7067e 100644
--- a/src/routes/launch/+page.svelte
+++ b/src/routes/launch/+page.svelte
@@ -42,13 +42,16 @@
</div>
<p>
- We'll be introducing our newly designed payments interface and afterwards we'll network
- and enjoy tasty food and drinks from <a href="https://loftondenman.com/" class="underline"
- >The Loft</a
+ We'll introduce our new interface for merchants to take bitcoin payments and afterwards
+ we'll network and enjoy tasty food and drinks from <a
+ href="https://loftondenman.com/"
+ class="underline">The Loft</a
>!
</p>
- <p>We're charging a $6 entry fee to help us know how much space to reserve. There will be complimentary appies and prize giveaways!</p>
+ <p>
+ We're charging a nominal $6 entry fee so we can get an idea of how much space to reserve.
+ </p>
<div class="flex w-full my-8">
<a href={link} class="mx-auto">
diff --git a/src/routes/launch/purchase/+page.server.js b/src/routes/launch/purchase/+page.server.js
index 48c5c7d3..1525034c 100644
--- a/src/routes/launch/purchase/+page.server.js
+++ b/src/routes/launch/purchase/+page.server.js
@@ -1,5 +1,5 @@
import { auth, get, post } from '$lib/utils';
-import tickets from "$lib/tickets";
+import tickets from '$lib/tickets';
export const load = () => get('/ticket');
@@ -10,13 +10,13 @@ export const actions = {
let r = await post(
'/assets',
{
- name: 'Launch Party Ticket',
+ name: `Launch Party Ticket ${ticket}`,
ticker: 'LPT',
precision: 0,
asset_amount: '1',
token_amount: 0,
domain: 'coinos.io',
- filename: tickets[ticket],
+ filename: tickets[ticket]
},
auth(cookies)
);
diff --git a/src/routes/launch/purchase/+page.svelte b/src/routes/launch/purchase/+page.svelte
index b00b6baf..ecec51df 100644
--- a/src/routes/launch/purchase/+page.svelte
+++ b/src/routes/launch/purchase/+page.svelte
@@ -33,17 +33,20 @@
// if (balance < amount) throw redirect(307, `/${username}/fund/${amount - balance}`);
</script>
-<div class="mx-auto h-screen flex items-center justify-center px-8">
- <div class="p-4 font-normal text-gray-800 mx-auto mb-8 space-y-5">
+<div class="mx-auto h-screen flex items-center justify-center px-4">
+ <div class="font-normal text-gray-800 mx-auto mb-8 space-y-8">
{#if balance > amount}
<h1 class="mb-4 text-4xl font-bold leading-none tracking-tight text-gray-800 text-center">
Confirm Purchase
</h1>
- <img src={`/tickets/${(ticket + 1).toString().padStart(2, '0')}.png`} class="my-8" />
+ <img
+ src={`/tickets/${(ticket + 1).toString().padStart(2, '0')}.png`}
+ class="w-full max-w-[800px]"
+ />
<form method="POST" use:enhance>
- <input type="hidden" name="ticket" value={ticket} />
+ <input type="hidden" name="ticket" value={ticket} />
<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"