2023-05-18 17:31:16 +02:00
|
|
|
---
|
|
|
|
|
import ArticleSearchWrapper from "../components/ArticleSearchWrapper.astro";
|
2023-05-18 20:20:43 +02:00
|
|
|
import ThemeToggle from "../components/ThemeToggle.svelte";
|
2023-05-18 17:31:16 +02:00
|
|
|
---
|
|
|
|
|
|
|
|
|
|
<nav>
|
|
|
|
|
<div class="container">
|
2023-05-18 23:09:41 +02:00
|
|
|
<a href="/">
|
|
|
|
|
<img src="/favicon.svg" width="32" height="32" alt="Logo" />
|
|
|
|
|
</a>
|
2023-05-18 17:31:16 +02:00
|
|
|
<slot />
|
|
|
|
|
<ArticleSearchWrapper />
|
2023-05-18 20:20:43 +02:00
|
|
|
<ThemeToggle client:only="svelte" />
|
2023-05-18 17:31:16 +02:00
|
|
|
</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;
|
|
|
|
|
}
|
|
|
|
|
|
2023-05-18 22:17:46 +02:00
|
|
|
.container > *:first-child {
|
2023-05-18 17:31:16 +02:00
|
|
|
margin-inline-end: auto;
|
|
|
|
|
}
|
|
|
|
|
</style>
|