Video stills skip YouTube's gray placeholder; timeline back to teal dots; people rows fill

- A still that fails or comes back as YouTube's 120 x 90 "no
  thumbnail" image gives way to the next; with none left the player
  is a flat teal panel with the play button showing.
- Timeline: solid teal dots, a solid teal rail and teal decade tags
  (still on their branch), one color throughout, until a vine or
  tree drawing replaces them. The leaf colors are gone.
- People tiles fill each row with as many as fit (2 to 10), one
  fewer only when the last row would be a single tile, instead of
  evening rows out (8 where 6 fit had come out 4 and 4).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Zaldimmar 2026-09-30 16:44:42 -05:00
parent 6506f65b1e
commit 57f8020542
11 changed files with 98 additions and 151 deletions

View file

@ -19,7 +19,7 @@
Nothing featured, and the section doesn't render at all.
═══════════════════════════════════════════════════════════════ */
import { ArrowRight, CaretRight, CaretLeft, Leaf } from '@phosphor-icons/react';
import { ArrowRight, CaretRight, CaretLeft } from '@phosphor-icons/react';
import { useRef, useState, type PointerEvent as ReactPointerEvent } from 'react'
import { Link } from 'react-router-dom'
@ -27,7 +27,7 @@ import HomeLink from './HomeLink.tsx'
import { useHistory } from '../../../lib/useHistory.ts'
import { hrefFor, logoSrc } from '../../../lib/timelineRefs.ts'
import { MONTH_LABELS, type TimelineItem } from '../../../lib/timeline.ts'
import { accentText, BRAND, leafColor } from '../../../lib/color.ts'
import { accentText, BRAND } from '../../../lib/color.ts'
import { scrollBehavior } from '../../../lib/motion.ts';
const DRAG_SLOP = 6
@ -220,15 +220,12 @@ function RailCard({ item, showYear }: { item: TimelineItem; showYear: boolean })
return (
<div className="flex h-full flex-col">
{/* The line, its leaf (colored by the year, as on the History
page), and the year where it changes. */}
{/* The line, its dot, and the year where it changes. */}
<div className="relative mb-4 h-8">
<div className="absolute inset-x-[-1.5rem] top-1/2 h-px bg-brand/30" />
<Leaf
weight="fill"
<div className="absolute inset-x-[-1.5rem] top-1/2 h-0.5 bg-brand" />
<span
aria-hidden="true"
className="absolute -left-1 top-1/2 h-5 w-5 -translate-y-1/2 -rotate-12"
style={{ color: leafColor(Number(year(item))) }}
className="absolute left-0 top-1/2 h-3.5 w-3.5 -translate-y-1/2 rounded-full bg-brand"
/>
{showYear && (
<span