added router to svelte

Signed-off-by: Stephan Richter <s.richter@srsoftware.de>
This commit is contained in:
2025-06-30 22:55:13 +02:00
parent b918d453cb
commit 56cdedcdb8
8 changed files with 55 additions and 30 deletions

View File

@@ -0,0 +1 @@
<h1>About</h1>

View File

@@ -0,0 +1,5 @@
<script>
import { t } from '../translations.svelte.js';
import { user } from '../user.svelte.js';
</script>
<h1>{t('home.Welcome',user.name)}</h1>

View File

@@ -0,0 +1,4 @@
<script>
let { id } = $props();
</script>
<h1>User {id}</h1>