ese-website/_includes/footer.njk
2024-09-15 16:11:29 +02:00

50 lines
1.1 KiB
Plaintext

<footer>
<div class="footer-container">
{% set otherLang = page.url | locale_links | first %}
<a href="{{otherLang.url}}" lang="{{otherLang.lang}}" hreflang="{{otherLang.lang}}">
{% if otherLang.lang == "de" %}
Deutsche Version 🇩🇪
{% else %}
English Version 🇬🇧/🇺🇸
{% endif %}
</a>
<nav id="footerNav">
{{ collections.footerNav | pageLang | eleventyNavigation | eleventyNavigationToHtml | safe }}
</nav>
<span>
Design:
<a href="https://designtoasty.de" target="_blank" rel="noreferrer">Designtoasty</a>
</span>
<span>Made with 🧉 and 🌈 in Dresden</span>
</div>
</footer>
{% css %}
footer {
border-top: 1px dotted rgba(0,0,0,.15);
padding: 4rem 0;
}
#footerNav ul {
margin: 0;
padding: 0;
display: flex;
gap: 1em;
}
#footerNav li {
display: inline;
}
.footer-container {
max-width: var(--page-width);
margin-left: auto;
margin-right: auto;
display: grid;
grid-template-columns: auto auto;
grid-auto-flow: column;
grid-template-rows: 1fr 1fr;
gap: 1em;
}
.footer-container > :nth-last-child(-n + 2) {
text-align: end;
}
{% endcss %}