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

@ -1,16 +1,12 @@
import { Leaf } from '@phosphor-icons/react'
import type { CSSProperties } from 'react'
import type { GroupedYear } from '../../../lib/timeline.ts'
import { leafColor } from '../../../lib/color.ts'
import TimelineEntry from './TimelineEntry.tsx'
/** Each year is a leaf on the rail, its color turning from green to
* autumn as the years go back (leafColor), its size growing with
* the year's entries so the rail still reads as a density chart.
* Filled, not the icon set's usual bold outline, so the color
* carries. */
function leafSize(count: number): string {
return `${(14 + Math.min(count, 14) * 0.9).toFixed(2)}px`
/** A solid teal dot per year, its size growing with the year's
* entries so the rail reads as a density chart. (A vine or tree
* drawing may replace the dots later.) */
function dotSize(count: number): string {
return `${(9 + Math.min(count, 14) * 0.6).toFixed(2)}px`
}
type Props = {
@ -42,12 +38,10 @@ export default function TimelineYear({ year, open, onToggle }: Props) {
onClick={() => onToggle(year.year)}
>
<span
className="site-tl__leaf"
style={{ '--tl-leaf': leafSize(year.count), color: leafColor(year.year) } as CSSProperties}
className="site-tl__dot"
style={{ '--tl-dot': dotSize(year.count) } as CSSProperties}
aria-hidden="true"
>
<Leaf weight="fill" />
</span>
/>
<span className="site-tl__yearLabel">{year.year}</span>
<span className="site-tl__yearCount">
{empty ? '-' : `${year.count} ${year.count === 1 ? 'entry' : 'entries'}`}