List view for tours with images on desktop #73

Merged
stb merged 12 commits from feat/40c3-schedule-photos into 40c3 2026-11-14 08:47:09 +01:00
2 changed files with 8 additions and 6 deletions
Showing only changes of commit b926169619 - Show all commits

Align schedule photos to right half of card

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Vincent Mahnke 2026-11-14 04:25:06 +01:00
Signed by: ViMaSter
GPG key ID: 6D787326BA7D6469

View file

@ -114,7 +114,7 @@ days:
- `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.
- With the day picker, the first local photo in the tour page fills its card behind a fade when it has alt text; its gallery credit remains visible.
- With the day picker, the first local photo in the tour page fills the right half of its card behind a fade when it has alt text; its gallery credit remains visible.
For the events managed with Hackertours-Admin, the data file is generated by its website sync; don't edit it by hand.

View file

@ -135,6 +135,8 @@
}
.schedule--picker .schedule__card--photo {
--schedule-photo-fade: color-mix(in srgb, var(--color-text) 4%, var(--color-body-bg));
isolation: isolate;
overflow: hidden;
min-height: 7rem;
@ -154,7 +156,7 @@
.schedule__photo {
display: none;
position: absolute;
inset: 0;
inset: 0 0 0 50%;
z-index: -1;
margin: 0;
pointer-events: none;
@ -171,10 +173,10 @@
position: absolute;
inset: 0;
background: linear-gradient(90deg,
var(--color-body-bg) 0%,
color-mix(in srgb, var(--color-body-bg) 97%, transparent) 35%,
color-mix(in srgb, var(--color-body-bg) 90%, transparent) 65%,
color-mix(in srgb, var(--color-body-bg) 20%, transparent) 100%);
var(--schedule-photo-fade) 0%,
color-mix(in srgb, var(--schedule-photo-fade) 97%, transparent) 10%,
color-mix(in srgb, var(--schedule-photo-fade) 90%, transparent) 40%,
color-mix(in srgb, var(--schedule-photo-fade) 20%, transparent) 100%);
}
}