add frontend and swap whole stack to sveltekit/nodejs
This commit is contained in:
32
src/routes/register/RegistrationComplete.svelte
Normal file
32
src/routes/register/RegistrationComplete.svelte
Normal file
@ -0,0 +1,32 @@
|
||||
<script lang="ts">
|
||||
import { IconSolid } from 'svelte-heros-v2';
|
||||
import { createEventDispatcher } from 'svelte';
|
||||
import { PUBLIC_START_DATE } from '$env/static/public';
|
||||
|
||||
const dispatch = createEventDispatcher();
|
||||
|
||||
let startDayOptions: Intl.DateTimeFormatOptions = {
|
||||
day: '2-digit',
|
||||
month: 'long',
|
||||
year: 'numeric'
|
||||
};
|
||||
let startTimeOptions: Intl.DateTimeFormatOptions = {
|
||||
hour: '2-digit',
|
||||
minute: '2-digit'
|
||||
};
|
||||
</script>
|
||||
|
||||
<div class="flex items-center h-12 mb-2">
|
||||
<button class="sm:absolute btn btn-sm btn-square" on:click={() => dispatch('close')}>
|
||||
<IconSolid name="chevron-left-solid" />
|
||||
</button>
|
||||
<h1 class="text-center text-xl sm:text-3xl m-auto">Registrierung erfolgreich</h1>
|
||||
</div>
|
||||
<p>
|
||||
<b>Du hast dich erfolgreich für Craftattack 6 registriert</b>. Spielstart ist am {new Date(
|
||||
PUBLIC_START_DATE
|
||||
).toLocaleString('de-DE', startDayOptions)} um {new Date(PUBLIC_START_DATE).toLocaleString(
|
||||
'de-DE',
|
||||
startTimeOptions
|
||||
)} Uhr.
|
||||
</p>
|
Reference in New Issue
Block a user