setup site and nav

This commit is contained in:
Benjamin Palko 2025-04-26 23:18:23 -04:00
parent b7ca9ce497
commit afe035a40c
4 changed files with 45 additions and 3 deletions

View file

@ -1,9 +1,23 @@
<script lang="ts">
import { page } from '$app/state';
import Navbar from '$lib/components/Navbar.svelte';
import '../app.css';
let { children } = $props();
const pages = [
{ slug: '/about', name: 'About Me' },
{ slug: '/portfolio', name: 'Portfolio' },
{ slug: '/blog', name: 'Blog' },
{ slug: '/projects', name: 'Projects' },
{ slug: '/experience', name: 'Experience' },
{ slug: '/contact', name: 'Contact' }
];
</script>
<div class="h-screen w-screen">
<nav></nav>
{@render children()}
<div class="h-screen w-screen p-12">
<div class="bg-base-200 flex min-h-full flex-col gap-8 rounded-4xl p-8">
<Navbar {pages} route={page.route} />
<div class="px-8">{@render children()}</div>
</div>
</div>

View file

View file