ese-website/_includes/header.njk

63 lines
1.2 KiB
Plaintext
Raw Normal View History

2024-09-13 17:18:41 +02:00
<header>
2024-09-15 14:58:59 +02:00
<div class="header-container">
<a href="{{ "/" | locale_url }}" title="home">ESE Logo</a>
<nav id="mainNav">
{{ collections.mainNav | pageLang | eleventyNavigation | eleventyNavigationToHtml | safe }}
</nav>
</div>
2024-09-13 17:18:41 +02:00
</header>
2024-09-15 14:58:59 +02:00
{% css %}
header {
2024-09-20 15:38:16 +02:00
display: flex;
2024-09-15 14:58:59 +02:00
position: sticky;
top: 0;
2024-09-20 15:38:16 +02:00
min-height: 6.4rem;
2024-09-15 14:58:59 +02:00
padding: 2rem 0;
2024-09-20 15:38:16 +02:00
backdrop-filter: blur(5px);
background-color: rgba(255,255,255,.92);
box-shadow: 0 3px 15px hsla(0,0%,39.2%,.12);
2024-09-15 14:58:59 +02:00
}
.header-container {
2024-09-20 15:38:16 +02:00
width: 100%;
2024-09-15 16:11:29 +02:00
max-width: var(--page-width);
2024-09-15 14:58:59 +02:00
margin-left: auto;
margin-right: auto;
display: flex;
justify-content: space-between;
align-items: center;
}
#mainNav ul {
margin: 0;
padding: 0;
}
#mainNav li {
display: inline;
2024-09-20 15:38:16 +02:00
margin-left: 1rem;
}
#mainNav a {
position: relative;
font-size: 16px;
font-family: Aileron;
font-weight: 500;
line-height: 2;
text-transform: uppercase;
color: var(--color-text);
text-decoration: none;
}
#mainNav a::after {
content: "";
position: absolute;
background: var(--color-primary);
opacity: 0;
bottom: -4px;
left: 0;
right: 0;
height: 2px;
transition: opacity .3s ease-out;
}
#mainNav a:hover::after {
opacity: 1;
2024-09-15 14:58:59 +02:00
}
{% endcss %}