change register button text if registration is closed (#31)
This commit is contained in:
@@ -4,6 +4,7 @@
|
||||
import { Clock, User, WrenchScrewdriver } from 'svelte-heros-v2';
|
||||
import Crosshairs from '$lib/components/CustomIcons/Crosshairs.svelte';
|
||||
import Skull from '$lib/components/CustomIcons/Skull.svelte';
|
||||
import type { PageData } from '../../.svelte-kit/types/src/routes/register/$types';
|
||||
|
||||
let information = [
|
||||
{
|
||||
@@ -22,6 +23,8 @@
|
||||
'Jeder ist willkommen und kann mitspielen. Dazu benötigst Du nur einen Minecraft-Account und schon bist Du Teil unser Community :)'
|
||||
}
|
||||
];
|
||||
|
||||
export let data: PageData;
|
||||
</script>
|
||||
|
||||
<svelte:head>
|
||||
@@ -48,7 +51,8 @@
|
||||
<div class="flex justify-center">
|
||||
<a
|
||||
class="btn btn-outline btn-accent hover:bg-white"
|
||||
href="{env.PUBLIC_BASE_PATH}/register">Jetzt registrieren</a
|
||||
href="{env.PUBLIC_BASE_PATH}/register"
|
||||
>{data.register_enabled ? 'Jetzt registrieren' : 'Infos zur Anmeldung'}</a
|
||||
>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user