forked from elh/elh.gay
nav bar svelte
This commit is contained in:
parent
707aa66b35
commit
e769979948
7 changed files with 73 additions and 8 deletions
|
|
@ -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>
|
||||
7
src/components/footer.astro
Normal file
7
src/components/footer.astro
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
---
|
||||
---
|
||||
<footer>
|
||||
<div class="footer">
|
||||
<a href="https://git.lgbt/elh/elh.gay">Source Code</a>
|
||||
</div>
|
||||
</footer>
|
||||
19
src/components/navbutton.svelte
Normal file
19
src/components/navbutton.svelte
Normal 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>
|
||||
Loading…
Add table
Add a link
Reference in a new issue