footer styles
This commit is contained in:
parent
0c1549ac68
commit
6d307f457b
2 changed files with 51 additions and 11 deletions
|
@ -1,27 +1,65 @@
|
||||||
footer {
|
footer {
|
||||||
border-top: 1px dotted rgba(0,0,0,.15);
|
border-top: 1px dotted rgba(0,0,0,.15);
|
||||||
padding: 4rem 0;
|
padding: 4rem 0 5.5rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
#footerNav ul {
|
#footerNav ul {
|
||||||
margin: 0;
|
margin: 0;
|
||||||
padding: 0;
|
padding: 0;
|
||||||
display: flex;
|
display: flex;
|
||||||
gap: 1em;
|
gap: 1.3em;
|
||||||
}
|
}
|
||||||
|
|
||||||
#footerNav li {
|
#footerNav li {
|
||||||
display: inline;
|
display: inline;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#footerNav a {
|
||||||
|
color: var(--color-text);
|
||||||
|
text-decoration: none;
|
||||||
|
transition: color .3s ease-out;
|
||||||
|
}
|
||||||
|
|
||||||
|
#footerNav a:hover {
|
||||||
|
color: var(--color-primary);
|
||||||
|
}
|
||||||
|
|
||||||
.footer-container {
|
.footer-container {
|
||||||
display: grid;
|
display: grid;
|
||||||
grid-template-columns: auto auto;
|
grid-template-columns: auto auto;
|
||||||
|
grid-template-rows: auto auto;
|
||||||
grid-auto-flow: column;
|
grid-auto-flow: column;
|
||||||
grid-template-rows: 1fr 1fr;
|
|
||||||
gap: 1em;
|
gap: 1em;
|
||||||
}
|
}
|
||||||
|
|
||||||
.footer-container > :nth-last-child(-n + 2) {
|
.footer-container > :nth-last-child(-n + 2) {
|
||||||
text-align: end;
|
text-align: end;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.designCredit {
|
||||||
|
font-size: 1rem;
|
||||||
|
align-self: end;
|
||||||
|
}
|
||||||
|
|
||||||
|
.designCredit a {
|
||||||
|
color: var(--color-text);
|
||||||
|
font-size: 1rem;
|
||||||
|
font-weight: 500;
|
||||||
|
text-decoration: none;
|
||||||
|
border-bottom: 1px dotted var(--color-text);
|
||||||
|
}
|
||||||
|
|
||||||
|
.languageSwitch a {
|
||||||
|
display: inline-block;
|
||||||
|
background: #e2e8f0;
|
||||||
|
color: #000;
|
||||||
|
border-radius: .5rem;
|
||||||
|
padding: 0.7em 0.9em;
|
||||||
|
line-height: 1;
|
||||||
|
text-decoration: none;
|
||||||
|
transition: background-color .3s ease-out;
|
||||||
|
}
|
||||||
|
|
||||||
|
.languageSwitch a:hover {
|
||||||
|
background: #d5dbe4;
|
||||||
|
}
|
||||||
|
|
|
@ -1,17 +1,19 @@
|
||||||
<footer>
|
<footer>
|
||||||
<div class="footer-container content">
|
<div class="footer-container content">
|
||||||
{% set otherLang = page.url | locale_links | first %}
|
{% set otherLang = page.url | locale_links | first %}
|
||||||
<a href="{{otherLang.url}}" lang="{{otherLang.lang}}" hreflang="{{otherLang.lang}}">
|
<div class="languageSwitch">
|
||||||
{% if otherLang.lang == "de" %}
|
<a href="{{otherLang.url}}" lang="{{otherLang.lang}}" hreflang="{{otherLang.lang}}">
|
||||||
Deutsche Version 🇩🇪
|
{% if otherLang.lang == "de" %}
|
||||||
{% else %}
|
Deutsche Version 🇩🇪
|
||||||
English Version 🇬🇧/🇺🇸
|
{% else %}
|
||||||
{% endif %}
|
English Version 🇬🇧/🇺🇸
|
||||||
</a>
|
{% endif %}
|
||||||
|
</a>
|
||||||
|
</div>
|
||||||
<nav id="footerNav">
|
<nav id="footerNav">
|
||||||
{{ collections.footerNav | pageLang | eleventyNavigation | eleventyNavigationToHtml | safe }}
|
{{ collections.footerNav | pageLang | eleventyNavigation | eleventyNavigationToHtml | safe }}
|
||||||
</nav>
|
</nav>
|
||||||
<span>
|
<span class="designCredit">
|
||||||
Design:
|
Design:
|
||||||
<a href="https://designtoasty.de" target="_blank" rel="noreferrer">Designtoasty</a>
|
<a href="https://designtoasty.de" target="_blank" rel="noreferrer">Designtoasty</a>
|
||||||
</span>
|
</span>
|
||||||
|
|
Loading…
Reference in a new issue