implemented user login.

next: find a solution for routing
This commit is contained in:
2025-06-30 21:11:42 +02:00
parent 71cf6ec96d
commit b918d453cb
33 changed files with 1232 additions and 32 deletions

View File

@@ -3,11 +3,13 @@
import { user } from '../user.svelte.js';
function logout(){
user.username = null;
user.name = null;
}
</script>
<nav>
<a href="/">{t('nav.Home')}</a>
<a href="https://svelte.dev/tutorial/svelte/state" target="_blank">{t('nav.Tutorial')}</a>
{#if user.name }
<a href="#" on:click={logout}>Logout</a>
{/if}
</nav>