mirror of
https://github.com/bartvdbraak/hellob.art.git
synced 2025-06-29 07:49:10 +00:00
feat: added layout and component for navigation
This commit is contained in:
parent
01db60b009
commit
a00b7d66d9
2 changed files with 61 additions and 0 deletions
17
src/routes/+layout.svelte
Normal file
17
src/routes/+layout.svelte
Normal file
|
@ -0,0 +1,17 @@
|
|||
<!-- __layout.svelte -->
|
||||
<script>
|
||||
import Nav from '../components/Nav.svelte';
|
||||
|
||||
export let routes = [
|
||||
{ url: "/", label: "Home" },
|
||||
{ url: "/projects", label: "Projects" },
|
||||
{ url: "/about", label: "About" },
|
||||
// { url: "/blog", label: "Blog" },
|
||||
{ url: "/contact", label: "Contact" }
|
||||
]
|
||||
</script>
|
||||
|
||||
<main>
|
||||
<Nav {routes} />
|
||||
<slot />
|
||||
</main>
|
Loading…
Add table
Add a link
Reference in a new issue