Overhaul fixes: raised cards, balanced people rows, solid map, small button radius

- Cards sit on a raised surface (white, or a touch of tint in dark
  mode) with a shadow: featured cards, the connect block, people
  tiles. tint-soft is a faint teal again, not green.
- Buttons: a small plain radius everywhere; no superellipse.
- Video stills use YouTube's 16:9 frame (the 4:3 one cropped as a
  fallback), have small rounded corners, and show a round, centered
  play button on hover or focus (always on touch screens).
- People tiles: rows balanced between 2 and 10 across, never ending
  on a lone tile where it can be helped.
- Map tiles and region tags are solid, dimmed by color, not opacity.
- Admin: white (surface) background, header and footer as wide as
  the content.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Zaldimmar 2026-09-30 16:24:36 -05:00
parent 582c65077d
commit a397f3eac0
12 changed files with 165 additions and 61 deletions

View file

@ -131,7 +131,10 @@ export function videoThumbnail(raw?: string | null): string | null {
if (!raw) return null
try {
const id = youtubeId(new URL(raw.trim()))
return id ? `https://i.ytimg.com/vi/${encodeURIComponent(id)}/hqdefault.jpg` : null
// hq720 is a 16:9 frame; hqdefault (every video has one) is 4:3
// with black bars baked in, so it's only the fallback (VideoPlayer
// swaps to it if hq720 is missing, and crops it to 16:9).
return id ? `https://i.ytimg.com/vi/${encodeURIComponent(id)}/hq720.jpg` : null
} catch {
return null
}