diff --git a/README.md b/README.md
index 476cd85..426651d 100644
--- a/README.md
+++ b/README.md
@@ -16,6 +16,13 @@ hugo server --buildFuture --buildDrafts
Then open http://localhost:1313
+The header uses the logo dimensions in `hugo.yaml` in both languages, without
+shrinking the logo to fit the text. With JavaScript enabled, screens up to 666px
+wide use a flat, borderless full-width menu button at the bottom and a scrollable
+panel above it. The language link spans the panel's content width, includes the
+translation icon, and uses the same font size as the menu links.
+The page reserves space for the button so it does not cover content.
+
## Shortcode: Language badge
Use the `lang` shortcode to mark whether a tour is in German, English or bilingual. It renders a small superscript badge next to the text, with details when hovered over or parsed by a screenreader.
diff --git a/assets/css/_custom.css b/assets/css/_custom.css
index 04fd621..35730e8 100644
--- a/assets/css/_custom.css
+++ b/assets/css/_custom.css
@@ -1,6 +1,122 @@
@import './_schedule.css';
@import './_gallery.css';
+.header__logo {
+ flex-shrink: 0;
+}
+
+.header__intro {
+ min-width: 0;
+}
+
+@media (width <= 666px) {
+ .header {
+ flex-direction: column;
+ align-items: flex-start;
+ }
+}
+
+/* Reserve space for the mobile menu without changing the theme's colours or fonts. */
+:root {
+ --mobile-bar-h: 3.25rem;
+}
+
+.layout__page:has(> .mobile-nav:not([hidden])) {
+ padding-block-end: calc(var(--mobile-bar-h) + env(safe-area-inset-bottom, 0px));
+}
+
+:root:has(.mobile-nav:not([hidden])) {
+ scroll-padding-block-end: calc(var(--mobile-bar-h) + 1rem);
+}
+
+.mobile-nav {
+ position: fixed;
+ inset: 0;
+ width: auto;
+ height: auto;
+}
+
+.mobile-nav__cover {
+ inset: 0;
+ width: auto;
+ height: auto;
+}
+
+.mobile-nav__toggle.button {
+ position: fixed;
+ inset: auto 0 0;
+ justify-content: center;
+ gap: 0.6rem;
+ width: auto;
+ block-size: calc(var(--mobile-bar-h) + env(safe-area-inset-bottom, 0px));
+ padding: 0 var(--gutters) env(safe-area-inset-bottom, 0px);
+ border: 0;
+ border-radius: 0;
+ background: var(--color-button);
+
+ &:hover,
+ &:focus-visible,
+ &:active {
+ background: var(--color-button-hover);
+ box-shadow: none;
+ }
+
+ &:focus-visible {
+ outline-offset: -4px;
+ }
+}
+
+.mobile-nav__sheet {
+ position: absolute;
+ inset: auto 0 calc(var(--mobile-bar-h) + env(safe-area-inset-bottom, 0px));
+ width: auto;
+ height: auto;
+ max-height: calc(100% - var(--mobile-bar-h) - env(safe-area-inset-bottom, 0px) - var(--spacing-l));
+ overflow-y: auto;
+ padding: var(--spacing-m) var(--gutters);
+ transform: translateY(100%);
+
+ [data-navopen] & {
+ transform: translateY(0);
+ }
+}
+
+.mobile-nav__region .language-selector ul {
+ flex: 1;
+ flex-direction: column;
+}
+
+.language-selector a {
+ display: flex;
+ align-items: center;
+ gap: 0.45em;
+}
+
+.language-selector .language-icon {
+ inline-size: 1.1em;
+ block-size: 1.1em;
+ flex-shrink: 0;
+ margin: 0;
+ fill: currentcolor;
+}
+
+.mobile-nav__region .language-selector {
+ font-size: inherit;
+}
+
+.mobile-nav__region .language-selector a,
+.mobile-nav__navbar a {
+ padding-block: 0.5rem;
+}
+
+.mobile-nav__region .language-selector a {
+ justify-content: center;
+}
+
+.mobile-nav__navbar a {
+ display: block;
+}
+
.header__intro_headline {
margin: 0;
font: bold var(--fs-xxl) "Arial";
@@ -45,18 +161,19 @@ th, td {
--color-mobile-menu: #141414;
}
- nav ul li {
- flex-grow: 1;
- text-align: center;
- }
- .main-menu a:active {
- text-decoration: none;
- }
- /* Links in text keep their underline: the link colour alone is too close to the text colour. */
- nav a,
- .header a {
- text-decoration: none;
- }
+}
+
+nav ul li {
+ flex-grow: 1;
+ text-align: center;
+}
+.main-menu a:active {
+ text-decoration: none;
+}
+/* Links in text keep their underline: the link colour alone is too close to the text colour. */
+nav a,
+.header a {
+ text-decoration: none;
}
h2 a {
diff --git a/content/de/_index.md b/content/de/_index.md
index 6deb6c3..38d56e9 100644
--- a/content/de/_index.md
+++ b/content/de/_index.md
@@ -8,8 +8,6 @@ params:
headline: Willkommen bei Hamburg Hackertours!
intro: |
Für den Congress und für das Easterhegg organisiert der CCC Hamburg Touren zu interessanten Orten in und um Hamburg. Hier findet ihr Informationen zu aktuellen und vergangenen Veranstaltungen!
- logowidth: 500
- logoheight: 500
cascade:
params:
intro: Wir von Hamburg Hackertours zeigen euch die Stadt!
diff --git a/content/en/_index.md b/content/en/_index.md
index 4004062..85fadd3 100644
--- a/content/en/_index.md
+++ b/content/en/_index.md
@@ -8,8 +8,6 @@ params:
headline: Welcome to Hackertours!
intro: |
For Congress and for Easterhegg CCC Hamburg is organizing tours to interesting places in and around Hamburg. Here you will find information about current and past events!
- logowidth: 500
- logoheight: 500
cascade:
params:
intro: We at Hamburg Hackertours show you around the city!
diff --git a/layouts/_partials/language-selector.html b/layouts/_partials/language-selector.html
new file mode 100644
index 0000000..a577641
--- /dev/null
+++ b/layouts/_partials/language-selector.html
@@ -0,0 +1,21 @@
+{{- /* Keep the translation icon inside the link so the entire language row is clickable.
+Compare with the theme's language-selector.html after updating Zen. */ -}}
+{{- $icon := `` -}}
+