added basic navbar
This commit is contained in:
parent
2436036d92
commit
98afc28773
11
frontend/src/lib/components/Navbar.svelte
Normal file
11
frontend/src/lib/components/Navbar.svelte
Normal file
@ -0,0 +1,11 @@
|
||||
<nav>
|
||||
<h1>Formies</h1>
|
||||
<button>logout</button>
|
||||
</nav>
|
||||
|
||||
<style>
|
||||
nav {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
}
|
||||
</style>
|
7
frontend/src/routes/(auth)/+layout.svelte
Normal file
7
frontend/src/routes/(auth)/+layout.svelte
Normal file
@ -0,0 +1,7 @@
|
||||
<script lang="ts">
|
||||
import Navbar from '$lib/components/Navbar.svelte';
|
||||
let { children } = $props();
|
||||
</script>
|
||||
|
||||
<Navbar></Navbar>
|
||||
{@render children()}
|
@ -11,7 +11,6 @@
|
||||
</script>
|
||||
|
||||
<div class="container">
|
||||
<h1>Formies</h1>
|
||||
<a href="/create" class="button">Create a New Form</a>
|
||||
<ul class="forms-list">
|
||||
{#each forms as form}
|
||||
|
Loading…
Reference in New Issue
Block a user