Compare commits

..
Author SHA1 Message Date
16e5653e00
fix: Aligns titles
All checks were successful
/ build (pull_request) Successful in 1m25s
/ accessibility (pull_request) Successful in 2m10s
2026-11-08 11:56:10 +01:00
454d7fbd7e
fix: Restores header layout and uses 40C3 page colours for light theme
- Light scheme: background #ebedf0 and text #001300, the colours the 40C3 info
  pages (events.ccc.de/congress/2026/infos) use. Their black link boxes and
  per-level heading colours are not copied; links, headings and chips follow the
  styleguide as before. The theme-color metas, the web manifest and the footer
  logo use the same colours.
- Menu: the four entries are full-width buttons in a row below the header again
  (outlined like the styleguide's quiet chips; the current page, hover and
  focus are filled green).
- Language link: back on the right of the header instead of in the menu bar.
  layouts/baseof.html, layouts/_partials/menu.html and layouts/home-baseof.html
  are main's again, so the theme only adds files under layouts/.
- README: the language switch is in the header, not in the menu.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-11-08 11:49:58 +01:00
6cbf724fce
feat: Applies 40c3 style to website
Rebased onto main after the bottom navigation bar (#68). Main's markup and behaviour win; this commit only contributes the 40c3 look.

- Jersey 10 and Hack fonts, the 40c3 palette and light/dark schemes, theme-color metas, web manifest and the 40c3 logo/footer.
- Header: site name as green chip; nav row with the language switch as amber chip. The tagline stays out of the header, as in main.
- Mobile (up to 666px): main's bottom navigation bar is kept and restyled (2px borders and dividers, current page green, language switch amber, visible keyboard focus). The old button-and-sheet styling is dropped.
- Start pages: 40C3 heading; stale commented-out 39C3 block removed.
- layouts/home-baseof.html removed; it was identical to baseof.html.
- Removed the leftover 'h2 a' margin that made the news list 2px wider than a 390px viewport.
- README: describe the bottom navigation bar.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-11-08 11:26:46 +01:00
75a8d446e4 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
2026-11-07 21:28:53 +01:00
49 changed files with 474 additions and 225 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,27 @@ 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 swap the main menu and the language link in the header for a bottom
navigation bar (`layouts/_partials/mobilemenu.html`): one box per menu entry plus
one for the language switch. The current page is filled green and the language
switch amber, as in the header. The page reserves space for the bar 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

@ -5,7 +5,9 @@
* 40C3 "MODEL_CITIZENS" design, after the 40C3 styleguide.
* Key colours: green (0), paper (A) and ink (B); the other colours are accents.
* Dark: ink background, paper text, green accents.
* Light: #e2eed6 background and #010801 text (picked for this site, not from the styleguide).
* Light: paper background and ink text, as on the 40C3 info pages
* (events.ccc.de/congress/2026/infos). Those pages also put black boxes behind links and give
* each heading level its own colour; this site doesn't, it sticks to the styleguide's chips.
* WCAG AA contrast: on ink every palette colour works as text, but on the light background
* only the foreground does. So in the light scheme green is only ever a fill or a line,
* with foreground-coloured text on it.
@ -22,8 +24,8 @@
--c40-paper: #ebedf0;
--c40-ink: #001300;
--c40-light-bg: #e2eed6;
--c40-light-fg: #010801;
--c40-light-bg: var(--c40-paper);
--c40-light-fg: var(--c40-ink);
/* Text on green and amber fills. */
--c40-on-fill: light-dark(var(--c40-light-fg), var(--c40-ink));
@ -76,10 +78,6 @@
--color-border-dark: var(--color-border);
--color-mobile-menu: var(--color-body-bg);
--color-mobile-menu-cover: rgb(0 19 0 / 0.6);
/* Height of the mobile menu bar at the bottom of the screen. */
--mobile-bar-h: 3.25rem;
--color-accent: var(--c40-green);
--color-highlight: var(--c40-amber);
@ -131,16 +129,14 @@ mark {
/* Headings: Jersey 10 for the big ones. h1 is the "loud header" (filled chip), h3 and below
are Hack Bold, h3 underlined like the styleguide's subheads. */
h1,
h2,
.header__intro_headline {
h2 {
font-family: var(--ff-display);
font-weight: 400;
letter-spacing: 0;
line-height: 1;
}
h1,
.header__intro_headline {
h1 {
width: fit-content;
max-width: 100%;
padding: 0.12em 0.3em 0.2em;
@ -161,11 +157,8 @@ h3 {
text-underline-offset: 0.25em;
}
h2 a {
margin-right: 2em;
}
.title-post-date {
display: block;
margin-left: 0;
color: var(--color-text-meta);
font-family: var(--ff-body);
@ -173,29 +166,70 @@ h2 a {
letter-spacing: 0;
}
/* Shared branding; inner pages keep their own main h1. */
/* The line breaks in the home page's intro text are meant. */
.intro-text {
white-space: pre-line;
}
/* Branding: the logo, and the site name as a loud header chip like the page's own h1. */
.header {
color: var(--color-text);
}
.header__intro_headline {
margin: 0 0 0.5rem;
.header__logo {
flex-shrink: 0;
}
.header__logo-image {
width: 50px;
height: 50px;
}
@media (width >= 667px) {
.header__logo-image {
width: 100px;
height: 100px;
}
}
.header__site-name {
flex-shrink: 1;
min-width: 0;
margin-block: 0;
}
@media (width <= 666px) {
.header__site-name {
font-size: calc(var(--fs-l) * var(--display-scale));
}
}
.header__site-link {
color: inherit;
&:hover,
&:focus-visible {
text-decoration: underline;
}
}
.header__intro_text {
font-family: var(--ff-body);
/* Links in text keep their underline: the link colour alone is too close to the text colour. */
nav a,
.header a {
text-decoration: none;
}
/* Main menu: quiet (outlined) chips, the current page and hover are filled green. */
.main-menu a,
.mobile-nav__navbar a {
padding: 0.15rem 0.75rem;
/* Main menu: a row of full-width buttons (the items grow to fill the theme's flex row). Quiet,
outlined boxes; the current page, hover and focus are filled green like a loud header. */
.main-menu li {
flex-grow: 1;
text-align: center;
}
.main-menu a {
padding: 0.3rem 0.75rem;
background: transparent;
box-shadow: inset 0 0 0 1px currentcolor;
box-shadow: inset 0 0 0 2px var(--color-border);
color: var(--color-text);
text-decoration: none;
@ -209,24 +243,8 @@ h2 a {
}
}
/* Nav row (layouts/_partials/menu.html): menu chips, and the language switch on the right. */
.nav-bar__row {
display: flex;
flex-wrap: wrap;
align-items: center;
gap: 0.5rem;
}
.nav-bar .header__region {
margin-inline-start: auto;
}
/* On small screens mobilemenu.js hides both parts; drop the then empty row too. */
.nav-bar:has(.main-menu[hidden]) {
display: none;
}
/* Language switch: a periwinkle chip with the icon, so it doesn't read as a menu entry. */
/* Language switch, on the right of the header: an amber chip with the icon, so it doesn't read
as a menu entry. */
.language-selector {
font-size: inherit;
@ -234,7 +252,7 @@ h2 a {
display: flex;
align-items: center;
gap: 0.45em;
padding: 0.15rem 0.75rem;
padding: 0.3rem 0.75rem;
background: var(--c40-amber);
color: var(--c40-on-fill);
text-decoration: none;
@ -250,119 +268,57 @@ h2 a {
.language-icon {
inline-size: 1.1em;
block-size: 1.1em;
flex-shrink: 0;
margin: 0;
fill: currentcolor;
}
/*
* Mobile menu (below 667px, switched on by the theme's mobilemenu.js): the toggle is a green
* bar fixed to the bottom of the screen. It opens a panel that slides up out of the bar, sized
* to its content so the language switch and the menu chips sit right above the bar.
* Mobile bottom bar (layouts/_partials/mobilemenu.html, below 667px). The theme lays it out; this
* dresses it like the main menu: the current page and hover/focus are filled green, the language
* switch is the amber one, and 2px dividers make the row of boxes.
*/
.layout__page:has(> .mobile-nav:not([hidden])) {
padding-block-end: calc(var(--mobile-bar-h) + env(safe-area-inset-bottom, 0px));
}
/* Keep focused and scrolled-to elements clear of the bar. */
:root:has(.mobile-nav:not([hidden])) {
scroll-padding-block-end: calc(var(--mobile-bar-h) + 1rem);
}
.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;
.mobile-bottom-nav {
border-block-start: 2px solid var(--color-border);
background: var(--c40-green);
color: var(--c40-on-fill);
font-family: var(--ff-display);
font-size: calc(var(--fs-l) * var(--display-scale));
line-height: 1;
}
/* Touch screens keep :hover after a tap, so only the open state changes the colour. */
&:hover,
&:focus-visible,
&:active {
border-color: var(--color-border);
.mobile-bottom-nav__item + .mobile-bottom-nav__item {
border-inline-start: 2px solid var(--color-border);
}
.mobile-bottom-nav__link {
color: var(--color-text);
&[aria-current='page'] {
background: var(--c40-green);
box-shadow: none;
color: var(--c40-on-fill);
}
&[hreflang] {
background: var(--c40-amber);
color: var(--c40-on-fill);
}
&:focus-visible {
background: var(--c40-green);
color: var(--c40-on-fill);
outline-color: var(--c40-on-fill);
outline-offset: -6px;
}
&[aria-expanded='true'] {
background: var(--c40-amber);
}
/* Touch screens keep :hover after a tap. */
@media (hover: hover) {
&:hover {
background: var(--c40-amber);
background: var(--c40-green);
color: var(--c40-on-fill);
}
}
}
.mobile-nav__hamburger {
fill: currentcolor;
}
/* The theme sizes the overlay with 100vw/100dvh, which don't match the screen when a mobile
browser zooms the page out. Size it from the screen edges instead, and anchor the panel to
the bar. */
.mobile-nav {
position: fixed;
inset: 0;
width: auto;
height: auto;
}
.mobile-nav__cover {
inset: 0;
width: auto;
height: auto;
}
.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);
border-block-start: 2px solid var(--color-border);
/* Closed, it sits behind the bar. */
transform: translateY(100%);
[data-navopen] & {
box-shadow: none;
transform: translateY(0);
}
}
.mobile-nav__region:not(:empty) {
margin-block-end: var(--spacing-m);
}
.mobile-nav__region .language-selector ul {
flex: 1;
flex-direction: column;
}
.mobile-nav__navbar {
gap: 0.5rem;
a {
display: block;
padding: 0.5rem 0.75rem;
/* Keep focused and scrolled-to elements clear of the bar. */
@media (width <= 666px) {
:root {
scroll-padding-block-end: 6rem;
}
}

View file

@ -3,7 +3,7 @@
<defs>
<style>
.cls-1 {
fill: #010801;
fill: #001300;
}
</style>
</defs>

Before

Width:  |  Height:  |  Size: 4.7 KiB

After

Width:  |  Height:  |  Size: 4.7 KiB

Before After
Before After

View file

@ -1,11 +1,17 @@
---
title: Hamburg Hackertours (de)
title: Willkommen bei Hamburg Hackertours!
menus:
main:
name: Home
weight: 1
params:
intro: Wir von Hamburg Hackertours zeigen euch die Stadt!
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!
cascade:
params:
intro: Wir von Hamburg Hackertours zeigen euch die Stadt!
---
# 40C3

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

@ -1,5 +1,5 @@
---
title: 'Die Hackertours für den 39C3 – FAQ'
title: '39C3 FAQ'
date: 2023-12-07T18:46:19+01:00
menus:
main:

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,11 +1,17 @@
---
title: Hamburg Hackertours (en)
title: Welcome to Hamburg Hackertours!
menus:
main:
name: Home
weight: 1
params:
intro: We at Hamburg Hackertours show you around the city!
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!
cascade:
params:
intro: We at Hamburg Hackertours show you around the city!
---
# 40C3

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

@ -1,5 +1,5 @@
---
title: Hackertours for 39C3 – FAQ
title: 39C3 FAQ
date: 2023-12-07T18:46:19+01:00
menus:
main:

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