feat(places): one place view for All places and the lists

The desktop dialog and the phone sheet of a place show its overview, notes,
tours and bookings, photos and files and its history in tabs, with the tags
of each list and trip, a markdown notes editor, uploads and the place
picture. The rating bar of All places is the rating row the lists show,
with its voters, and votes once for every copy. All places filters by a
lowest rating and sorts by it, and the edit form changes the first copy the
reader may edit, which the server carries to the others.
This commit is contained in:
Maurice
2026-11-29 23:36:43 +00:00
parent 783c98f41e
commit d758f4c592
78 changed files with 5604 additions and 2797 deletions
+34 -1
View File
@@ -119,6 +119,20 @@
radial-gradient(135% 130% at 10% 6%, color-mix(in oklch, var(--hero-color, var(--accent)) 55%, white) 0%, transparent 50%),
linear-gradient(135deg, var(--hero-color, var(--accent)) 0%, color-mix(in oklch, var(--hero-color, var(--accent)) 60%, black 40%) 100%);
}
/* The two views that are not a list: a world of every place in cool sea to dusk,
everything saved in a warm amber to rose, each with a soft light from the corner. */
.trek-dash .col-hero.is-library .col-hero-bg {
background:
radial-gradient(70% 120% at 12% 0%, oklch(0.86 0.12 185 / .55) 0%, transparent 55%),
radial-gradient(60% 110% at 95% 100%, oklch(0.62 0.2 300 / .55) 0%, transparent 60%),
linear-gradient(120deg, oklch(0.62 0.13 190) 0%, oklch(0.55 0.15 245) 48%, oklch(0.46 0.17 285) 100%);
}
.trek-dash .col-hero.is-saved .col-hero-bg {
background:
radial-gradient(70% 120% at 10% 0%, oklch(0.92 0.12 85 / .6) 0%, transparent 55%),
radial-gradient(60% 110% at 95% 100%, oklch(0.6 0.2 350 / .5) 0%, transparent 60%),
linear-gradient(120deg, oklch(0.74 0.15 70) 0%, oklch(0.66 0.18 35) 50%, oklch(0.55 0.2 0) 100%);
}
.trek-dash .col-hero-img { position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%; object-fit: cover; }
.trek-dash .col-hero-scrim {
position: absolute; inset: 0; z-index: 1;
@@ -420,6 +434,26 @@
/* One control height for the whole page: the filter row and the buttons floating
over the map are read as a single band when the page is scrolled to the top,
so they share a height and a top offset instead of each having their own. */
/* Places speaks TREK's own palette, the one its dialogs and settings use, not the
dashboard's warm one: every surface, line and ink of the page and of the place
dialog maps onto the app tokens, light and dark, so buttons, badges, chips and
cards all share one tone. Scoped to Places; the dashboard keeps its palette. */
.trek-dash.col-root,
.trek-dash.place-sheet,
.dark .trek-dash.col-root,
.dark .trek-dash.place-sheet {
--bg: var(--bg-secondary);
--bg-2: var(--bg-tertiary);
--surface: var(--bg-card);
--surface-2: var(--bg-secondary);
--ink: var(--text-primary);
--ink-2: var(--text-secondary);
--ink-3: var(--text-muted);
--line: var(--border-faint);
--line-2: var(--border-primary);
}
.trek-dash.col-root { background: var(--bg-primary); }
.trek-dash { --col-ctl-h: 38px; }
/* One line on desktop: the dropdowns shorten their labels instead of pushing the sort
control onto a second line. Phones wrap (see the 720px block). */
@@ -531,7 +565,6 @@
border-radius: var(--r-xl); background: var(--surface); border: 1px solid var(--line);
box-shadow: var(--sh-lg);
}
.trek-dash .col-detail.docked { max-height: min(66vh, calc(100vh - var(--nav-h) - 60px)); }
.trek-dash .col-detail-cover { position: relative; height: 116px; flex-shrink: 0; background-size: cover; background-position: center; }
.trek-dash .col-detail-cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.trek-dash .col-detail-cover-scrim { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.12) 0%, rgba(0,0,0,.55) 100%); }