basic footer styles

This commit is contained in:
Lyn Fugmann 2024-09-15 15:36:23 +02:00
parent 0b7680f38f
commit c91caf72e0

View file

@ -1,5 +1,5 @@
<footer> <footer>
<div> <div class="footer-container">
{% set otherLang = page.url | locale_links | first %} {% set otherLang = page.url | locale_links | first %}
<a href="{{otherLang.url}}" lang="{{otherLang.lang}}" hreflang="{{otherLang.lang}}"> <a href="{{otherLang.url}}" lang="{{otherLang.lang}}" hreflang="{{otherLang.lang}}">
{% if otherLang.lang == "de" %} {% if otherLang.lang == "de" %}
@ -8,15 +8,42 @@
English Version 🇬🇧/🇺🇸 English Version 🇬🇧/🇺🇸
{% endif %} {% endif %}
</a> </a>
<nav> <nav id="footerNav">
{{ collections.footerNav | pageLang | eleventyNavigation | eleventyNavigationToHtml | safe }} {{ collections.footerNav | pageLang | eleventyNavigation | eleventyNavigationToHtml | safe }}
</nav> </nav>
</div> <span>
<div>
<p>
Design: Design:
<a href="https://designtoasty.de" target="_blank" rel="noreferrer">Designtoasty</a> <a href="https://designtoasty.de" target="_blank" rel="noreferrer">Designtoasty</a>
</p> </span>
<p>Made with 🧉 and 🌈 in Dresden</p> <span>Made with 🧉 and 🌈 in Dresden</span>
</div> </div>
</footer> </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: 75rem;
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 %}