mirror of
https://github.com/thiloho/aurora.git
synced 2025-11-22 11:31:36 +01:00
Initial commit
This commit is contained in:
33
src/components/Nav.astro
Normal file
33
src/components/Nav.astro
Normal file
@@ -0,0 +1,33 @@
|
||||
---
|
||||
import ArticleSearchWrapper from "../components/ArticleSearchWrapper.astro";
|
||||
---
|
||||
|
||||
<nav>
|
||||
<div class="container">
|
||||
<a href="/">
|
||||
Logo
|
||||
</a>
|
||||
<slot />
|
||||
<ArticleSearchWrapper />
|
||||
</div>
|
||||
</nav>
|
||||
|
||||
<style>
|
||||
nav {
|
||||
position: sticky;
|
||||
inset-block-start: 0;
|
||||
background-color: var(--secondary-background-color);
|
||||
border-block-end: var(--standard-border);
|
||||
}
|
||||
|
||||
.container {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
block-size: var(--nav-height);
|
||||
position: relative;
|
||||
}
|
||||
|
||||
a {
|
||||
margin-inline-end: auto;
|
||||
}
|
||||
</style>
|
||||
Reference in New Issue
Block a user