Skip to content

Commit 65bc21b

Browse files
committed
Stop account registrations
1 parent 10a632c commit 65bc21b

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

src/routes/(anonymous)/signup/+page.svelte

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
<script lang="ts">
22
import { goto } from '$app/navigation';
33
import { accountV2Api } from '$lib/api';
4+
import AbsolutelySureButton from '$lib/components/AbsolutelySureButton.svelte';
45
import Container from '$lib/components/Container.svelte';
56
import Turnstile from '$lib/components/Turnstile.svelte';
67
import EmailInput from '$lib/components/input/EmailInput.svelte';
@@ -72,6 +73,8 @@
7273
turnstileResponse = null;
7374
}
7475
}
76+
77+
let ack = $state(false);
7578
</script>
7679

7780
<Dialog.Root bind:open={() => accountCreated, onOpenChange}>
@@ -88,6 +91,10 @@
8891
</Dialog.Root>
8992

9093
<Container class="items-center">
94+
{#if !ack}
95+
<div class="text-5xl font-semibold text-nowrap text-red-500">Do not use this frontend to register a new account, this is a WIP, please go to https://openshock.app</div>
96+
<AbsolutelySureButton text="I acknowledge that I have read this message and that this frontend is not functional yet." onconfirm={() => (ack = true)} />
97+
{:else}
9198
<form class="flex flex-col gap-2" onsubmit={handleSubmission}>
9299
<div class="text-3xl font-semibold text-nowrap">Sign Up</div>
93100
<UsernameInput
@@ -118,4 +125,5 @@
118125

119126
<Button type="submit" disabled={!canSubmit}>Sign Up</Button>
120127
</form>
128+
{/if}
121129
</Container>

0 commit comments

Comments
 (0)