61 lines
1.2 KiB
Text
61 lines
1.2 KiB
Text
---
|
|
import { t, l } from "astro-i18n";
|
|
|
|
import Navigation from "../components/Navigation.astro";
|
|
---
|
|
|
|
<header role="banner">
|
|
<a href="#skip-content" class="skip-link"> {t("header.skipLink")}</a>
|
|
<div class="container">
|
|
<a href={l("/")} class="logo clean-link" aria-label={t("header.homeLink")}
|
|
>nardu.in</a
|
|
>
|
|
<Navigation />
|
|
</div>
|
|
</header>
|
|
|
|
<style>
|
|
header {
|
|
container-name: header;
|
|
container-type: inline-size;
|
|
}
|
|
.container {
|
|
padding: var(--space-xs-s) 0;
|
|
display: flex;
|
|
flex-flow: row wrap;
|
|
gap: var(--space-xs-s);
|
|
justify-content: center;
|
|
align-items: baseline;
|
|
inline-size: 100%;
|
|
}
|
|
@container header (min-width: 31rem) {
|
|
.container {
|
|
justify-content: space-between;
|
|
}
|
|
}
|
|
.skip-link {
|
|
position: absolute;
|
|
top: 20px;
|
|
left: 20px;
|
|
block-size: 1px;
|
|
inline-size: 1px;
|
|
-webkit-clip: rect(0 0 0 0);
|
|
clip: rect(0 0 0 0);
|
|
overflow: hidden;
|
|
z-index: 99999;
|
|
background-color: #fff;
|
|
}
|
|
.skip-link:focus {
|
|
padding: 6px;
|
|
-webkit-clip: auto;
|
|
clip: auto;
|
|
overflow: visible;
|
|
inline-size: auto;
|
|
block-size: auto;
|
|
}
|
|
.logo {
|
|
font-size: var(--size-1);
|
|
font-weight: bold;
|
|
color: var(--color-dark-blue);
|
|
}
|
|
</style>
|