Keeps logo size across languages and resolves mobile menu overlap (#68)
All checks were successful
/ build (push) Successful in 1m14s
/ accessibility (push) Successful in 2m2s

## Header

![image](/attachments/dd741d30-ffbe-49ad-b717-cd3e7bd46bcb)

## Mobile menu
| | |
| --- | --- |
| ![localhost_8888_en_ (1)](/attachments/ce78aa3d-b229-457a-add5-0d5e3ddc71ec) | ![localhost_8888_en_](/attachments/ae1832d5-605d-4bd5-b41a-b7fe9d6e14e5) |

Reviewed-on: #68
This commit is contained in:
Vincent Mahnke 2026-11-07 21:28:53 +01:00 • committed by stb
commit 75a8d446e4
44 changed files with 483 additions and 102 deletions

1
.gitignore vendored
View file

@ -1,2 +1,3 @@
public
resources/_gen
.DS_Store

3
.gitmodules vendored
View file

@ -1,3 +1,4 @@
[submodule "themes/zen"]
path = themes/zen
url = https://github.com/frjo/hugo-theme-zen.git
url = https://git.hamburg.ccc.de/CCCHH/hackertours-theme.git
branch = hackertours-mobile-nav

View file

@ -16,6 +16,26 @@ 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.
## Brand spelling check
Hugo builds check content source lines for the name `Hackertours` in any other
casing and report the file and line as build errors for pages included in the
build. URLs, email addresses, social handles, Matrix room addresses and
Markdown link destinations are excluded. Commented-out content is checked too,
so it is ready to publish.
For an intentional exception, add `<!-- hackertours-lint-ignore -->` at the
end of a Markdown line, or `# hackertours-lint-ignore` at the end of a YAML
front matter line. This ignores that entire source line, so keep unrelated
occurrences on other lines.
## 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.

View file

@ -1,14 +1,144 @@
@import './_schedule.css';
@import './_gallery.css';
.header__intro_headline {
.intro-text {
white-space: pre-line;
}
.header__logo {
flex-shrink: 0;
}
/* Header h1 styling - responsive sizing that grows with viewport */
.header__site-name {
font-size: var(--fs-xxl);
margin-block-start: 0;
margin-block-end: 0;
flex-shrink: 1;
min-width: 0;
}
/* Smaller on mobile only */
@media (width <= 666px) {
.header__site-name {
font-size: var(--fs-l);
}
}
/* Logo scaling - smaller on mobile */
.header__logo-image {
width: 50px;
height: 50px;
}
@media (width >= 667px) {
.header__logo-image {
width: 100px;
height: 100px;
}
}
/* 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;
font: bold var(--fs-xxl) "Arial";
padding-bottom: 10px;
fill: currentcolor;
}
.header__intro_text {
font-family: var(--ff-body)
.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;
}
table, th, td {
border: 1px solid;
}
@ -17,9 +147,9 @@ th, td {
font-variant-numeric: tabular-nums;
}
.title-post-date {
font-size: .7em;
margin-left: 2em;
.title-post-date { margin-left: 0em;
display: block;
font-size: 0.5em;
}
/* Zen v7 paints body with --color-body-bg and .page with --color-page-bg. */
@ -45,27 +175,24 @@ 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 {
margin-right: 2em;
}
.title-post-date {
margin-left: 0em;
}
/* Visible when focused with the keyboard; the visually-hidden class hides it otherwise. */
.skip-link:focus {
position: absolute;

View file

@ -1,5 +1,5 @@
---
title: Hamburg Hackertours (de)
title: Willkommen bei Hamburg Hackertours!
menus:
main:
name: Home
@ -7,9 +7,8 @@ weight: 1
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
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!
cascade:
params:
intro: Wir von Hamburg Hackertours zeigen euch die Stadt!
@ -20,9 +19,9 @@ Wir bereiten Touren für den [40C3](https://events.ccc.de/category/40c3/) vor. I
<!--
Für den [39C3](https://events.ccc.de/category/39c3/) haben wir interessante Orte in und um Hamburg gefunden, an denen ihr für ein paar Stunden in andere Welten eintauchen und spannende Dinge erleben könnt. [Wie das funktioniert, erklären wir euch hier in unseren FAQ]({{< relref "faq/_index" >}})!
HackerTours ist auch auf **[Mastodon](https://chaos.social/@hackertours)**!
Hackertours ist auch auf **[Mastodon](https://chaos.social/@hackertours)**!
**[Alle Touren zum 39C3]({{< relref "39c3" >}})** – **[Direkt zum HackerTours Ticket-Shop](https://tickets.hamburg.ccc.de/hackertours/39c3ht/)**
**[Alle Touren zum 39C3]({{< relref "39c3" >}})** – **[Direkt zum Hackertours Ticket-Shop](https://tickets.hamburg.ccc.de/hackertours/39c3ht/)**
Hackertours-Desk: DECT 8687 "TOUR", +49 40 573 0830 8687

View file

@ -9,7 +9,7 @@ cascade:
showPostDate: false
---
**[Direkt zum HackerTours Ticket-Shop](https://tickets.hamburg.ccc.de/hackertours/eh22ht/)**
**[Direkt zum Hackertours Ticket-Shop](https://tickets.hamburg.ccc.de/hackertours/eh22ht/)**
Diese Touren bieten wir zum [Easterhegg 2025](https://eh22.easterhegg.eu/start) an:

View file

@ -8,6 +8,6 @@ tags:
Schon gewusst? Die Tour [Alter Elbtunnel](../38c3/alter-elbtunnel/) gibt's auch in Englisch!
- Datum: Tag 2 (28.12.)
- Treffen am HackerTours-Desk: 14:15 Uhr
- Treffen am Hackertours-Desk: 14:15 Uhr
[Tickets](https://tickets.hamburg.ccc.de/hackertours/38c3/)

View file

@ -1,11 +1,11 @@
---
title: '38c3: Letzte Chance für ein 38c3 HackerTours Gängeviertel Ticket!'
title: '38c3: Letzte Chance für ein 38c3 Hackertours Gängeviertel Ticket!'
date: 2024-12-17T10:00:00+01:00
tags:
- 38c3
---
Update: Letzte Chance auf ein 38c3 HackerTours Gängeviertel Ticket!
Update: Letzte Chance auf ein 38c3 Hackertours Gängeviertel Ticket!
Einmal Gängeviertel knackig, frisch und bunt! 11,00 EUR für große Portionen; halbe Portionen zahlen 6,00 EUR.

View file

@ -1,11 +1,11 @@
---
title: '38c3: Letzte Chance für ein 38c3 HackerTours Alter Elbtunnel Ticket!'
title: '38c3: Letzte Chance für ein 38c3 Hackertours Alter Elbtunnel Ticket!'
date: 2024-12-17T10:00:00+01:00
tags:
- 38c3
---
Update: Letzte Chance auf ein 38c3 HackerTours Alter Elbtunnel Ticket!
Update: Letzte Chance auf ein 38c3 Hackertours Alter Elbtunnel Ticket!
Alter Elbtunnel, extra lange unter der Elbe gereift und aromatisch im Geschmack! 19 Goldtaler und du bist mit dabei!

View file

@ -1,11 +1,11 @@
---
title: '38c3: Letzte Chance für ein 38c3 HackerTours MS Stubnitz Ticket!'
title: '38c3: Letzte Chance für ein 38c3 Hackertours MS Stubnitz Ticket!'
date: 2024-12-17T10:00:00+01:00
tags:
- 38c3
---
Update: Letzte Chance für ein 38c3 HackerTours MS Stubnitz Ticket!
Update: Letzte Chance für ein 38c3 Hackertours MS Stubnitz Ticket!
Einmal Stubnitz heiß und fettich, frisch aus der Ostsee! Nur 19,00 Euronen das Kilo!

View file

@ -5,10 +5,10 @@ tags:
- 38c3
---
Leider ist der 38c3 schon wieder vorbei. Vielen Dank, dass ihr dabei wart! Wir hoffen, dass euch der 38c3 und die HackerTours-Touren gefallen haben.
Leider ist der 38c3 schon wieder vorbei. Vielen Dank, dass ihr dabei wart! Wir hoffen, dass euch der 38c3 und die Hackertours-Touren gefallen haben.
Auch 2025 werden wir wieder HackerTours-Touren für euch vermitteln. Alle Infos dazu folgen zu gegebener Zeit auf unserer Webseite und in unserem Mastodon-Kanal.
Auch 2025 werden wir wieder Hackertours-Touren für euch vermitteln. Alle Infos dazu folgen zu gegebener Zeit auf unserer Webseite und in unserem Mastodon-Kanal.
Für das Neue Jahr wünschen wir euch alles Gute!
Euer HackerTours-Team
Euer Hackertours-Team

View file

@ -7,4 +7,4 @@ tags:
Wir haben die Vorbereitungen für das [EasterHegg 22](https://eh22.easterhegg.eu/start) fast abgeschlossen. Freut euch auf interessante Touren durch die schönste Stadt der Welt!
Euer HackerTours-Team
Euer Hackertours-Team

View file

@ -16,4 +16,4 @@ und zwar hier im [Ticket-Shop](https://tickets.hamburg.ccc.de/hackertours/eh22ht
Wir freuen uns auf Euch!
Euer HackerTours Team
Euer Hackertours Team

View file

@ -10,4 +10,4 @@ Das war ein schöner Congress, und wir hoffen, euch hat es ebensoviel Spaß gema
Für das Neue Jahr wünschen wir euch alles Gute!
Euer HackerTours-Team
Euer Hackertours-Team

View file

@ -10,4 +10,4 @@ Noch sind wir dabei, die letzten Sachen zu organisieren und alles klar zu machen
Wir haben vor, den Ticketshop am Sonntag, den 22.11. zu öffnen. Wenn ihr schnell zuschlagen wollt, notiert euch also gerne schon mal den Termin.
Euer HackerTours-Team
Euer Hackertours-Team

View file

@ -1,5 +1,5 @@
---
title: Hamburg Hackertours (en)
title: Welcome to Hamburg Hackertours!
menus:
main:
name: Home
@ -7,9 +7,8 @@ weight: 1
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
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!
cascade:
params:
intro: We at Hamburg Hackertours show you around the city!
@ -20,9 +19,9 @@ We are preparing tours for [40C3](https://events.ccc.de/category/40c3/). Stay tu
<!--
For [39C3](https://events.ccc.de/category/39c3/) we have found interesting places in and around Hamburg where you can delve into other worlds and experience fascinating things for a few hours. [We are going to explain how this works here in our FAQ article]({{< relref "faq/_index" >}})!
HackerTours is also on **[Mastodon](https://chaos.social/@hackertours)**!
Hackertours is also on **[Mastodon](https://chaos.social/@hackertours)**!
**[All 39C3 Tours]({{< relref "39c3" >}})** - **[Directly to the HackerTours Ticket Shop](https://tickets.hamburg.ccc.de/hackertours/39c3ht)**
**[All 39C3 Tours]({{< relref "39c3" >}})** - **[Directly to the Hackertours Ticket Shop](https://tickets.hamburg.ccc.de/hackertours/39c3ht)**
Hackertours Desk: DECT 8687 "TOUR", +49 40 573 0830 8687

View file

@ -9,7 +9,7 @@ cascade:
showPostDate: false
---
**[Directly to the HackerTours ticket shop](https://tickets.hamburg.ccc.de/hackertours/eh22ht/)**
**[Directly to the Hackertours ticket shop](https://tickets.hamburg.ccc.de/hackertours/eh22ht/)**
We are offering these tours for [Easterhegg 2025](https://eh22.easterhegg.eu/start):

View file

@ -2,14 +2,14 @@
title: '37c3: Cash payment and last-minute seats'
date: 2023-12-25T09:00:00+01:00
summary: |
tl;dr: please pay your tickets at the hackertours desk. Any left over seats will be assigned at the beginning of each tour.
tl;dr: please pay your tickets at the Hackertours desk. Any left over seats will be assigned at the beginning of each tour.
---
**tl;dr:** please pay your tickets at the hackertours desk. Any left over places will be assigned at the beginning of each tour.
**tl;dr:** please pay your tickets at the Hackertours desk. Any left over places will be assigned at the beginning of each tour.
## Cash payment: before the tour starts at the latest
If you have chosen **cash payment**, please come to the hackertours desk **no later than the start time of your tour** and pay for your tickets. **Otherwise, we will reassign them**.
If you have chosen **cash payment**, please come to the Hackertours desk **no later than the start time of your tour** and pay for your tickets. **Otherwise, we will reassign them**.
If oyu have paid already by bank transfer, just come to the desk at the published start time.

View file

@ -8,6 +8,6 @@ tags:
Did you know that...? The tour [Old Elbe Tunnel](../38c3/alter-elbtunnel/) is also available in English!
- date: Day 2 (28 December)
- Meeting time at the HackerTours Desk: 14:15
- Meeting time at the Hackertours Desk: 14:15
[Tickets](https://tickets.hamburg.ccc.de/hackertours/38c3/)

View file

@ -1,11 +1,11 @@
---
title: '38c3: Last chance for a 38c3 HackerTours Gängeviertel ticket!'
title: '38c3: Last chance for a 38c3 Hackertours Gängeviertel ticket!'
date: 2024-12-17T10:00:00+01:00
tags:
- 38c3
---
Update: Last chance for a 38c3 HackerTours Gängeviertel ticket!
Update: Last chance for a 38c3 Hackertours Gängeviertel ticket!
Gängeviertel (German for: “alleyway district”) crispy, fresh and colorful! 11,00 EUR for large portions; half portions pay 6,00 EUR.

Some files were not shown because too many files have changed in this diff Show more