1
0
Fork 0
forked from elh/elh.gay

nav bar svelte

This commit is contained in:
elh 2024-06-17 16:28:26 -04:00
parent 707aa66b35
commit e769979948
7 changed files with 73 additions and 8 deletions

View file

@ -1,8 +1,19 @@
---
import Button from "../components/navbutton.svelte"
const pageTitle= Astro.props
---
<a active=
<div class="nav-links">
<Button class="navbutton">
<a href="/">Home</a>
<a href="/about-me">About Me</a>
</Button>
<Button class="navbutton">
<a href="/about">About Me</a>
</Button>
<Button class="navbutton">
<a href="/blog">Blog</a>
</Button>
<Button class="navbutton">
<a href="https://youtube.com/watch?v=brwS_ZmVaRc">Caramelldansen</a>
</Button>
</div>

View file

@ -0,0 +1,7 @@
---
---
<footer>
<div class="footer">
<a href="https://git.lgbt/elh/elh.gay">Source Code</a>
</div>
</footer>

View file

@ -0,0 +1,19 @@
<script>
let buttonProps = {
class:[$$restProps.class]
}
</script>
<button on:click
on:mouseover
on:mouseenter
on:mouseleave
{...buttonProps}>
<slot/>
</button>
<style>
.navbutton {
}
</style>