blackbirdchess-client-web/src/routes/+page.svelte

14 lines
332 B
Svelte
Raw Permalink Normal View History

2023-03-19 10:33:34 +01:00
<script>
2023-08-30 17:23:31 +02:00
import {sessionstore} from "$lib/stores.js";
2023-08-16 20:42:54 +02:00
2023-08-30 17:23:31 +02:00
let sessionvars;
2023-08-16 20:42:54 +02:00
2023-08-30 17:23:31 +02:00
sessionstore.subscribe(value => {
sessionvars = value;
2023-08-16 20:42:54 +02:00
});
</script>
2023-08-30 17:23:31 +02:00
{#if typeof sessionvars.authorization === 'undefined'}
<h1 class="h1">Blackbird Chess</h1>
<a href="/account/login" class="anchor">Go to login page</a>
2023-08-16 20:42:54 +02:00
{/if}