basic header styles
This commit is contained in:
parent
e173a4aa6d
commit
0b7680f38f
2 changed files with 39 additions and 4 deletions
|
@ -1,6 +1,33 @@
|
||||||
<header>
|
<header>
|
||||||
<a href="{{ "/" | locale_url }}" title="home">ESE Logo</a>
|
<div class="header-container">
|
||||||
<nav>
|
<a href="{{ "/" | locale_url }}" title="home">ESE Logo</a>
|
||||||
{{ collections.mainNav | pageLang | eleventyNavigation | eleventyNavigationToHtml | safe }}
|
<nav id="mainNav">
|
||||||
</nav>
|
{{ collections.mainNav | pageLang | eleventyNavigation | eleventyNavigationToHtml | safe }}
|
||||||
|
</nav>
|
||||||
|
</div>
|
||||||
</header>
|
</header>
|
||||||
|
|
||||||
|
{% css %}
|
||||||
|
header {
|
||||||
|
position: sticky;
|
||||||
|
backdrop-filter: blur(5px);
|
||||||
|
background-color: #ffffffcc;
|
||||||
|
top: 0;
|
||||||
|
padding: 2rem 0;
|
||||||
|
}
|
||||||
|
.header-container {
|
||||||
|
max-width: 75rem;
|
||||||
|
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;
|
||||||
|
}
|
||||||
|
{% endcss %}
|
||||||
|
|
|
@ -9,6 +9,7 @@ eleventyComputed:
|
||||||
<meta charset="utf-8">
|
<meta charset="utf-8">
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||||
<title>{% if title %}{{ title }} | {% endif %}ESE {{ year }}</title>
|
<title>{% if title %}{{ title }} | {% endif %}ESE {{ year }}</title>
|
||||||
|
<link rel="stylesheet" href="{% getBundleFileUrl "css" %}">
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
{% include 'header.njk' %}
|
{% include 'header.njk' %}
|
||||||
|
@ -20,3 +21,10 @@ eleventyComputed:
|
||||||
{% include 'footer.njk' %}
|
{% include 'footer.njk' %}
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|
||||||
|
{% css %}
|
||||||
|
body {
|
||||||
|
font-family: sans-serif;
|
||||||
|
margin: 0;
|
||||||
|
}
|
||||||
|
{% endcss %}
|
||||||
|
|
Loading…
Reference in a new issue