diff --git a/README.md b/README.md index 34d1516..0f5cb3c 100644 --- a/README.md +++ b/README.md @@ -40,6 +40,10 @@ days: - `tour` is the slug of the tour page in the event section. The card shows that page's title, without the event prefix, and links to it. - `lang` is `de`, `en` or `deen`, or a list of these. It renders the same badge as the `lang` shortcode. - `time` is `HH:MM` with a leading zero (`09:30`). Tours are sorted by time, so their order in the file doesn't matter. +- `title` (optional) replaces the page's title on the card, with one entry per language: `title: { de: "Hafen am Abend", en: "Harbour by Night" }`. +- `status` (optional): `soldout` marks the tour as fully booked. Other values are ignored. + +For the events managed with Hackertours-Admin, the data file is generated by its website sync; don't edit it by hand. Wide screens get one column per day on an hour grid, with tours that start at the same time side by side. The first column shows the hour wherever the first day has no tour in it. On narrow screens a day picker shows one day at a time, starting with today's day during the event. diff --git a/assets/css/_schedule.css b/assets/css/_schedule.css index 66d514b..d91766b 100644 --- a/assets/css/_schedule.css +++ b/assets/css/_schedule.css @@ -126,6 +126,31 @@ } } +.schedule__when { + display: flex; + flex-wrap: wrap; + align-items: baseline; + gap: 0 0.5rem; +} + +.schedule__status { + font-family: var(--ff-alt); + font-size: var(--fs-xs); + font-weight: bold; + letter-spacing: 0.03em; + text-transform: uppercase; + color: var(--color-text-meta); +} + +/* Fully booked: still listed and linked, but muted. */ +.schedule__card--soldout { + border-inline-start-color: var(--schedule-line); + + & .schedule__title { + color: var(--color-text-meta); + } +} + .schedule__time { font-family: var(--ff-alt); font-size: var(--fs-s); diff --git a/i18n/de.yaml b/i18n/de.yaml index 6a5a0fd..683c5e2 100644 --- a/i18n/de.yaml +++ b/i18n/de.yaml @@ -3,3 +3,4 @@ schedule_pick_day: "Tag auswählen" skip_to_content: "Zum Inhalt springen" logo_alt: "Hamburg Hackertours – Startseite" map_39c3_title: "Karte der 39C3-Touren mit Wegen vom CCH (uMap)" +schedule_soldout: "ausgebucht" diff --git a/i18n/en.yaml b/i18n/en.yaml index 5e57806..947b426 100644 --- a/i18n/en.yaml +++ b/i18n/en.yaml @@ -3,3 +3,4 @@ schedule_pick_day: "Choose a day" skip_to_content: "Skip to content" logo_alt: "Hamburg Hackertours – home page" map_39c3_title: "Map of the 39C3 tours with routes from the CCH (uMap)" +schedule_soldout: "fully booked" diff --git a/layouts/_shortcodes/schedule.html b/layouts/_shortcodes/schedule.html index 1a238ed..ed4c9f1 100644 --- a/layouts/_shortcodes/schedule.html +++ b/layouts/_shortcodes/schedule.html @@ -76,16 +76,26 @@ so an hour without tours still gets a row. {{- $seen = merge $seen (dict .time (add $nth 1)) }} {{- $page := $.Page.GetPage .tour }} {{- if not $page }}{{ warnf "schedule: %s: no page for tour %q on day %v" $event .tour $day.day }}{{ end }} -