diff --git a/README.md b/README.md index ddae0b7..6c13e47 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 123d4d7..d85697f 100644 --- a/i18n/de.yaml +++ b/i18n/de.yaml @@ -8,3 +8,4 @@ map_39c3_title: "Karte der 39C3-Touren mit Wegen vom CCH (uMap)" calendar_meeting_point: "Hackertours-Desk" calendar_ics: "iCal Download" calendar_google: "Google Calendar" +schedule_soldout: "ausgebucht" diff --git a/i18n/en.yaml b/i18n/en.yaml index d001184..af56ac6 100644 --- a/i18n/en.yaml +++ b/i18n/en.yaml @@ -8,3 +8,4 @@ map_39c3_title: "Map of the 39C3 tours with routes from the CCH (uMap)" calendar_meeting_point: "Hackertours Desk" calendar_ics: "iCal download" calendar_google: "Google calendar" +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 }} -