16 lines
370 B
Svelte
16 lines
370 B
Svelte
<script>
|
|
import {globalstore} from "$lib/stores.js";
|
|
|
|
let globalvars;
|
|
|
|
globalstore.subscribe(value => {
|
|
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>
|
|
{/if} |