diff --git a/src/lib/components/Navbar.svelte b/src/lib/components/Navbar.svelte index cd18995..4343618 100644 --- a/src/lib/components/Navbar.svelte +++ b/src/lib/components/Navbar.svelte @@ -4,6 +4,7 @@ import { goto } from "$app/navigation"; import type { DatabaseUser } from "$lib/server/auth"; export let user: any; + import UserAvatar from "./UserAvatar.svelte"; async function goHome() { goto("/"); } @@ -16,6 +17,9 @@ async function toToLogin() { goto("/login"); } + async function toToSignup() { + goto("/signup"); + } let count = 0; visitCount.subscribe((value) => { @@ -54,8 +58,10 @@
Adventures: {count}
{#if !user} + {/if} {#if user} +