|
|
@@ -1,10 +1,11 @@
|
|
|
<script>
|
|
|
import "$lib/global.css";
|
|
|
import logo from '$lib/assets/favicon.svg';
|
|
|
-
|
|
|
import {page} from "$app/state";
|
|
|
+ import {getNotifications} from "$lib/notifier.svelte.js";
|
|
|
|
|
|
let {data, children} = $props();
|
|
|
+ let notifications = getNotifications();
|
|
|
</script>
|
|
|
|
|
|
<svelte:head>
|
|
|
@@ -27,6 +28,12 @@
|
|
|
{#if page.url.pathname === "/register"}
|
|
|
<a href="/login" class="button">Log In</a>
|
|
|
{/if}
|
|
|
+
|
|
|
+ <div class="notifications">
|
|
|
+ {#each notifications as n}
|
|
|
+ <p class="{n.type}">{n.message}</p>
|
|
|
+ {/each}
|
|
|
+ </div>
|
|
|
</header>
|
|
|
|
|
|
{@render children()}
|