-
Notifications
You must be signed in to change notification settings - Fork 40
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
70 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
<script lang="ts"> | ||
import H1 from "$lib/components/typography/H1.svelte" | ||
import Button from "$lib/components/Button.svelte" | ||
import Text from "$lib/components/typography/Text.svelte" | ||
import { callJoinQueue } from "$lib/supabase" | ||
let code = $state("") | ||
async function handleCode() { | ||
//Maybe check format etc | ||
const codeValid = await callJoinQueue(code) | ||
if (codeValid) { | ||
console.log("valid") | ||
} | ||
} | ||
async function handleWaitlist() {} | ||
</script> | ||
|
||
<!--Todo handle invite code and update contributor--> | ||
<!--if no code, add to waitlist and update contributor--> | ||
|
||
<div> | ||
<H1>Join the ceremony</H1> | ||
|
||
<form class="flex flex-col gap-2 min-w-[355px]"> | ||
<input | ||
type="text" | ||
autocorrect="off" | ||
autocomplete="off" | ||
spellcheck="false" | ||
autocapitalize="none" | ||
bind:value={code} | ||
placeholder="Secret code" | ||
class="text-md font-supermolot h-9 px-2 outline-none border-2" | ||
/> | ||
<Button | ||
type="button" | ||
onclick={handleCode} | ||
disabled={code.length === 0} | ||
> | ||
ENTER | ||
</Button> | ||
</form> | ||
|
||
</div> | ||
|
||
<Text>Or</Text> | ||
|
||
<Button>Join the waitlist</Button> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters