initial commit
This commit is contained in:
commit
2807918e2c
27 changed files with 9772 additions and 0 deletions
64
components/Navbar.vue
Normal file
64
components/Navbar.vue
Normal file
|
|
@ -0,0 +1,64 @@
|
|||
<template>
|
||||
<nav>
|
||||
<div class="content">
|
||||
<NuxtLink class="header" to="/">| brynblack |</NuxtLink>
|
||||
<div class="links">
|
||||
<NuxtLink to="/">Home</NuxtLink>
|
||||
<NuxtLink to="/blog">Blog</NuxtLink>
|
||||
</div>
|
||||
</div>
|
||||
</nav>
|
||||
</template>
|
||||
|
||||
<style scoped>
|
||||
nav {
|
||||
|
||||
backdrop-filter: blur(16px);
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
position: fixed;
|
||||
width: 100dvw;
|
||||
|
||||
.content {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
max-width: calc(var(--max-width) + 4rem);
|
||||
padding: 2rem;
|
||||
width: 100%;
|
||||
|
||||
a {
|
||||
text-decoration: none;
|
||||
color: inherit;
|
||||
|
||||
&:hover {
|
||||
color: var(--accent);
|
||||
}
|
||||
}
|
||||
|
||||
.router-link-exact-active {
|
||||
color: var(--accent);
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
.header {
|
||||
color: var(--fg);
|
||||
font-weight: normal;
|
||||
|
||||
&:hover {
|
||||
color: var(--accent);
|
||||
}
|
||||
}
|
||||
|
||||
@media (prefers-color-scheme: light) {
|
||||
.header {
|
||||
color: var(--bg);
|
||||
}
|
||||
}
|
||||
|
||||
.links {
|
||||
display: flex;
|
||||
gap: 2rem;
|
||||
}
|
||||
}
|
||||
}
|
||||
</style>
|
||||
Loading…
Add table
Add a link
Reference in a new issue