2023-03-19 10:33:34 +01:00
|
|
|
<script>
|
2023-08-28 10:15:24 +02:00
|
|
|
import {globalstore} from "$lib/stores.js";
|
2023-08-16 20:42:54 +02:00
|
|
|
|
|
|
|
let globalvars;
|
|
|
|
|
2023-08-28 10:15:24 +02:00
|
|
|
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>
|
2023-08-17 17:31:20 +02:00
|
|
|
{: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}
|