preparing svelte login, mastered translations

This commit is contained in:
2025-06-28 00:23:37 +02:00
parent f81fa50f27
commit 71cf6ec96d
17 changed files with 151 additions and 38 deletions

View File

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