mirror of
https://github.com/thiloho/archtika.git
synced 2025-11-22 10:51:36 +01:00
Rename Postgres tables for better recognition and add additional routes in web app
This commit is contained in:
28
web-app/src/routes/+layout.svelte
Normal file
28
web-app/src/routes/+layout.svelte
Normal file
@@ -0,0 +1,28 @@
|
||||
<script lang="ts">
|
||||
import { page } from "$app/stores";
|
||||
const { data, children } = $props();
|
||||
</script>
|
||||
|
||||
<nav>
|
||||
<a href="/">archtika</a>
|
||||
{#if data.user}
|
||||
<a href="/account">Account</a>
|
||||
{:else}
|
||||
<a href="/register">Register</a>
|
||||
<a href="/login">Login</a>
|
||||
{/if}
|
||||
</nav>
|
||||
|
||||
<header>
|
||||
<h1>{$page.url.pathname}</h1>
|
||||
</header>
|
||||
|
||||
<main>
|
||||
{@render children()}
|
||||
</main>
|
||||
|
||||
<footer>
|
||||
<p>
|
||||
<small>archtika</small>
|
||||
</p>
|
||||
</footer>
|
||||
Reference in New Issue
Block a user