created the first part of the navigation

This commit is contained in:
ChrQR 2024-04-03 23:04:00 +02:00
parent 9680241389
commit 8b60a26b69

20
src/routes/+layout.svelte Normal file
View File

@ -0,0 +1,20 @@
<script>
const nav = {
whoami: ["about", "resume", "homelab"],
portfolio: ["project a", "project, b", "project c"],
contact: ["get in touch", "socials"],
login: []
};
</script>
<nav>
<ul>
{#each Object.entries(nav) as [main, context]}
<li><a href={main}>{main}</a></li>
{/each}
<hr />
</ul>
</nav>
<slot />