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

16 lines
370 B
Svelte
Raw Normal View History

2023-03-19 10:33:34 +01:00
<script>
import {globalstore} from "$lib/stores.js";
2023-08-16 20:42:54 +02:00
let globalvars;
globalstore.subscribe(value => {
2023-08-16 20:42:54 +02:00
globalvars = value;
});
</script>
{#if typeof globalvars.user !== 'undefined'}
<h1>Welcome {globalvars.user.name}</h1>
{:else}
<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}