Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 22 additions & 1 deletion assets/sass/footer.scss
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
.o-footer {
margin-top: 2rem;
margin-bottom: 2rem;
display: flex;
flex-direction: column;
gap: 0.8rem;
}

.o-footer__links {
Expand All @@ -26,8 +29,26 @@
}
}

.o-footer__firstline {
.o-footer__line {
display: flex;
justify-content: space-between;
align-items: center;
flex-wrap: wrap;
gap: 1rem;
}

.o-language-switcher__select {
border: 1px solid var(--color-body);
background-color: var(--bg-neutral);
color: var(--color-body);
font-weight: 500;
padding: 1rem;
border-radius: var(--border-radius-m);
cursor: pointer;
font-size: 1.4rem;

&:hover,
&:focus {
border-color: var(--link-hovered);
}
}
2 changes: 2 additions & 0 deletions i18n/de.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,8 @@ interactiveMap:
title: Interaktive Länderkarte
zoomIn: Hineinzoomen
zoomOut: Herauszoomen
language-switcher:
aria-label: Sprache wechseln
menu-close: Schließen
menu-open: Menü
navigate-to-country: Gehe zu Land
Expand Down
2 changes: 2 additions & 0 deletions i18n/en.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,8 @@ interactiveMap:
title: Interactive Country Map
zoomIn: Zoom In
zoomOut: Zoom Out
language-switcher:
aria-label: Switch language
menu-close: Close
menu-open: Menu
navigate-to-country: Navigate to country
Expand Down
2 changes: 2 additions & 0 deletions i18n/fr.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,8 @@ interactiveMap:
title: Carte interactive des pays
zoomIn: Zoom avant
zoomOut: Zoom arrière
language-switcher:
aria-label: Changer de langue
menu-close: Fermer
menu-open: Menu
navigate-to-country: Aller au pays
Expand Down
15 changes: 12 additions & 3 deletions layouts/partials/footer.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<div class="o-footer__firstline">
<div class="o-footer__line">
<div aria-label='{{ T "footer-love.aria-label"}}'>
{{ T "footer-love.text"}}
</div>
Expand All @@ -17,6 +17,15 @@
{{ end }}
</div>
</div>
<div>
{{ T "information-disclaimer-short"}}
<div class="o-footer__line">
<div>{{ T "information-disclaimer-short"}}</div>
<div class="o-language-switcher">
<select class="o-language-switcher__select" title='{{ T "language-switcher.aria-label" }}' aria-label='{{ T "language-switcher.aria-label" }}' onchange="window.location.href=this.value">
{{ range .AllTranslations }}
<option value="{{ .Permalink }}"{{ if eq $.Site.Language .Language }} selected{{ end }}>
{{ .Language.LanguageName }}
</option>
{{ end }}
</select>
</div>
</div>
2 changes: 1 addition & 1 deletion layouts/partials/menu.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
{{ $logo := resources.Get "images/logo.svg" }}
<div class="o-container o-header__wrapper">
<a id="skip-link" class="o-header__skip-link" href="#content">{{ T "skipToContent" }}</a>
<a href="/" aria-label="{{ T "home-page-text" }}" class="o-header__logo">
<a href="{{ .Site.BaseURL | relLangURL }}" aria-label="{{ T "home-page-text" }}" class="o-header__logo">
<img aria-hidden="true" src="{{ $logo.RelPermalink }}" alt="">
</a>
<div class="o-header__curtain"></div>
Expand Down
Loading