created the first part of the navigation
This commit is contained in:
parent
9680241389
commit
8b60a26b69
20
src/routes/+layout.svelte
Normal file
20
src/routes/+layout.svelte
Normal 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 />
|
Loading…
Reference in New Issue
Block a user