Commit graph hackertours/assets
Author SHA1 Message Date
bbaff0ee91
feat: Shows events as cards on the home page
Replaces the line of links to previous events with cards after the 40C3
start page: each card has the event's logo (designs.events.ccc.de) in its
heading bar, the motto, full name, dates and venue. 40C3 is greyed out as
in progress; the other cards link to their tours.

The events shortcode reads data/events.yaml; the README documents it.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-11-13 16:41:23 +01:00
97cb34b576
fix: Avoids layout jitter while fonts load
The headings jumped when Jersey 10 arrived after the first paint: the monospace fallback is much wider, so the heading chips changed their width, and the page transition made it visible on every language switch. Reproduced with revalidated or slow fonts (hugo server sends no cache headers, so it revalidates them on every navigation) in Chromium, WebKit and, on cold loads, Firefox. In Safari the body text shifted as well, because its ui-monospace is the wider SF Mono.

- Embeds the Latin subset of Jersey 10 in the fonts stylesheet.
- Preloads Hack Regular and Bold.
- Generates the @font-face rules and the preload links from one fingerprinted template (assets/css/fonts.css.tmpl, head/fonts.html), so their URLs match and also work below a sub path like the PR previews.
- Drops ui-monospace and SF Mono from the body font stack: Menlo has the same width as Hack.

Frames with shifted elements while switching language on the tours page, with revalidated or slow fonts: 9 to 92 before, none after (Chromium and WebKit, desktop and mobile). Firefox cold loads: up to 48 before, none painted after. Rendering after loading is unchanged.

Trade-off: the first paint of a cold load on a slow connection (Slow 4G) is about 0.26 s later; later navigations are not affected.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-11-13 16:41:10 +01:00
cf242b3e4c
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-13 16:41:09 +01:00
a7664c9168
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-13 16:41:08 +01:00
32762bc22f
Merge branch 'main' into 40c3
All checks were successful
/ build (pull_request) Successful in 1m39s
/ accessibility (pull_request) Successful in 3m26s
Resolves conflicts in content/{de,en}/_index.md: keeps the 40C3 launch
text from 40c3 over main's "coming soon" teaser, and takes main's
"Hackertours" spelling and front matter (#68).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-09 22:31:26 +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
f1b8c42ab6 Fix pa11y issues with the map 2026-10-17 10:50:38 +02:00
821290616a 40C3: tours, schedule data, tour map and calendar entries
Some checks failed
/ build (pull_request) Successful in 1m16s
/ accessibility (pull_request) Failing after 2m25s
- tour-map shortcode: Leaflet map of the tour locations with routes from the
  Congress, from the map/tours sections of data/schedule/<event>.yaml; Leaflet
  and the OSMIC, Maki and Temaki icon sets vendored; 39C3 uMap data converted.
- calendar shortcode: per tour date, a pill with an .ics download (iCalendar)
  and a Google Calendar link; Font Awesome Free vendored, fa-icon partial.
- README sections for the calendar and tour map shortcodes and the map data.
2026-10-17 10:30:03 +02:00
124bfaed67 Add an image gallery shortcode 2026-10-17 10:16:37 +02:00
71098eb6d7 Add accessilbilty check and fixes
Some checks failed
/ build (push) Successful in 15s
/ accessibility (push) Failing after 23s
2026-10-17 10:03:54 +02:00
c4ee65b9af Schedule: optional title per tour and sold-out status 2026-10-17 10:00:24 +02:00
c0dfc9131d Attempt a shortcode for the schedule overview
All checks were successful
/ build (pull_request) Successful in 25s
2026-10-16 18:53:55 +02:00
5c1b60fa3a Upgrade to Hugo 0.16x and zen theme v7.1.0
All checks were successful
/ build (pull_request) Successful in 32s
/ cleanup-staging (pull_request) Successful in 3s
- Bump themes/zen from v5.7.0 to v7.1.0 (vanilla CSS, no libsass).
- Move layouts to Hugo's new template structure (_default -> root,
  index.html -> home.html, shortcodes -> _shortcodes).
- Replace deprecated language API in templates (Locale, Direction, Name)
  and sync base templates and mobile menu with theme v7.
- Config: languageName/languageCode -> label/locale; move copyright to
  the top-level key the v7 footer reads.
- Port _custom.scss to assets/css/_custom.css and map page/body
  backgrounds to v7's --color-body-bg/--color-page-bg.
- CI: build with hugomods/hugo:0.165.0.
2026-10-16 15:07:25 +02:00
ad801a8ee3
fix: Prevents misaligned post dates on mobile
All checks were successful
/ build (pull_request) Successful in 29s
/ cleanup-staging (pull_request) Successful in 2s
/ build (push) Successful in 16s
2025-11-29 05:51:07 +01:00
7b56baf17b feat: Adds dark mode based on 39C3 color palette 2025-11-26 20:20:50 +01:00
c06c8603ef Improve blog post display
All checks were successful
/ build (push) Successful in 13s
* Add a post date to each post
* Do not show the post date for tours
* Only show posts tagged "current-event" on the home page (hiding 37c3 entries)
* Use a custom template for sorting the summary list by title (instead of the default by date)
2024-11-18 12:21:04 +01:00
fc235e6310 Add logo and brand with more CCCHH (#10)
All checks were successful
/ build (push) Successful in 11s
Reviewed-on: #10
Co-authored-by: Stefan Bethke <stb@lassitu.de>
Co-committed-by: Stefan Bethke <stb@lassitu.de>
2024-10-13 13:29:36 +02:00
197983ef07 nicer tables 2023-12-17 17:13:23 +01:00