init
This commit is contained in:
12
src/routes/+layout.svelte
Normal file
12
src/routes/+layout.svelte
Normal file
@@ -0,0 +1,12 @@
|
||||
<script lang="ts">
|
||||
import '../app.css';
|
||||
import favicon from '$lib/assets/favicon.svg';
|
||||
|
||||
let { children } = $props();
|
||||
</script>
|
||||
|
||||
<svelte:head>
|
||||
<link rel="icon" href={favicon} />
|
||||
</svelte:head>
|
||||
|
||||
{@render children?.()}
|
||||
7
src/routes/+page.svelte
Normal file
7
src/routes/+page.svelte
Normal file
@@ -0,0 +1,7 @@
|
||||
<nav>
|
||||
<a href="/">home</a>
|
||||
<a href="/about">about</a>
|
||||
</nav>
|
||||
|
||||
<h1>home</h1>
|
||||
<p>this is the home page.</p>
|
||||
7
src/routes/about/+page.svelte
Normal file
7
src/routes/about/+page.svelte
Normal file
@@ -0,0 +1,7 @@
|
||||
<nav>
|
||||
<a href="/">home</a>
|
||||
<a href="/about">about</a>
|
||||
</nav>
|
||||
|
||||
<h1>about</h1>
|
||||
<p>This is the about section</p>
|
||||
Reference in New Issue
Block a user