Compare commits

..

3 commits

Author SHA1 Message Date
Zaldimmar
a2465f9359 Version v1.10.2
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-09-30 16:45:10 -05:00
Zaldimmar
57f8020542 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>
2026-09-30 16:44:42 -05:00
Zaldimmar
6506f65b1e Backdrop parallax in Firefox: a passive scroll fallback
Where scroll-driven animations are missing, a passive scroll handler
writes the scroll position to --pb-y at most once a frame and the
CSS moves each layer by its share, matching the scroll-timeline
version. Off under reduced motion.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-09-30 16:35:25 -05:00
14 changed files with 140 additions and 155 deletions

View file

@ -278,7 +278,6 @@ The numbers band's "Number Source" dropdown works the same way:
| The icons a Front page "Find your way in" path can pick | `src/data/pathIcons.ts` (keys and labels) **and** `ICONS` in `src/pages/sections/home/Pathfinder.tsx` (the Phosphor icon for each key) | Add a line to both. A path saved with an emoji from before the list shows it as it is. |
| A page section's accent color | `BRAND` and `ACCENTS` in `src/lib/color.ts` | Pages pick from these (`accent: ACCENTS.green`); add a color there, not a hex in a page. Each is readable as text on white and the tints. |
| The palette (the 16-color grid the theme is drawn from) | `PALETTE` in `src/lib/color.ts` | Four families, a column each. `PALETTE_LIGHT` / `PALETTE_DARK` are the fills things colored by data use (a person's initials tile, `paletteFill`); the page background's layers (how many circles, their sizes and parallax speeds) are `LAYERS` in `src/components/PageBackdrop.tsx` and its shades are in `PageBackdrop.css`; the admin home's two alternating group colors are `BLOCK_COLORS` in `src/pages/admin/AdminHome.tsx`. |
| Timeline leaf colors (green now, autumn going back) | `leafColor` in `src/lib/color.ts` | The green, gold and autumn stops, and `LEAF_TURNED_BY` (2000), the year before which every leaf is fully turned. |
| Privacy Policy and Terms wording | `src/pages/Privacy.tsx`, `src/pages/Terms.tsx` | The `PARTS` list, and `LAST_UPDATED` whenever the wording changes. The Privacy page must stay true of the code: what the feedback form stores, what the browser keeps, which embeds wait for a click. |
| Event type labels and plurals (public site) | `src/lib/eventTypes.ts` | Also the order of the type filter chips. |
| Event and person role labels (public site) | `ROLE_LABEL` in `src/pages/EventDetail.tsx` and `src/pages/PersonDetail.tsx` | |

View file

@ -46,6 +46,13 @@
}
}
/* The same rise where scroll-driven animations are missing: the
scroll position arrives as --pb-y from PageBackdrop.tsx. */
.page-backdrop[data-parallax="script"] .page-backdrop__circle {
transform: translateY(calc(var(--pb-y, 0px) * var(--pb-speed) * -1));
will-change: transform;
}
@keyframes page-backdrop-rise {
to {
transform: translateY(calc(var(--pb-scroll, 0px) * var(--pb-speed) * -1));
@ -53,8 +60,10 @@
}
@media (prefers-reduced-motion: reduce) {
.page-backdrop__circle {
.page-backdrop__circle,
.page-backdrop[data-parallax="script"] .page-backdrop__circle {
animation: none;
transform: none;
}
}

View file

@ -11,8 +11,11 @@
small and quicker at the front, none as fast as the page itself.
The rise is a CSS scroll-driven animation (PageBackdrop.css) over
--pb-scroll, the page's scrollable height, which is measured here
whenever the page changes size (no scroll listener). Without
scroll-driven animations, or under reduced motion, they stay put.
whenever the page changes size. Browsers without scroll-driven
animations (Firefox, for now) get the same motion from a passive
scroll handler instead, which writes the scroll position to one
CSS variable, --pb-y, at most once a frame; the CSS does the rest.
Under reduced motion they stay put either way.
Each page gets its own arrangement: sizes and places come from a
generator seeded with the path, so a page looks the same every
@ -95,6 +98,32 @@ export default function PageBackdrop() {
return () => observer.disconnect()
}, [])
// Where scroll-driven animations are missing: the scroll position,
// once a frame at most, into --pb-y (PageBackdrop.css moves each
// layer by its share of it).
useEffect(() => {
const backdrop = ref.current
if (!backdrop || CSS.supports('animation-timeline: scroll()')) return undefined
if (window.matchMedia('(prefers-reduced-motion: reduce)').matches) return undefined
backdrop.dataset.parallax = 'script'
let frame = 0
const update = () => {
frame = 0
backdrop.style.setProperty('--pb-y', `${window.scrollY}px`)
}
const onScroll = () => {
if (!frame) frame = requestAnimationFrame(update)
}
update()
window.addEventListener('scroll', onScroll, { passive: true })
return () => {
window.removeEventListener('scroll', onScroll)
cancelAnimationFrame(frame)
delete backdrop.dataset.parallax
}
}, [])
// A new top-level section reaching the window's middle moves the tone on.
useEffect(() => {
const main = document.getElementById('main')

View file

@ -53,9 +53,10 @@ import "./PeopleTiles.css";
* lines of name (and two of title), so a row's cards are one
* height. The list as a whole has the frame, not each tile.
*
* Rows are balanced (balancedColumns): as many tiles across as fit,
* but never fewer than 2 or more than 10, and spread so the last
* row isn't a lone tile. When 2 don't fit at full size they shrink.
* Rows fill (balancedColumns): as many tiles across as fit, never
* fewer than 2 or more than 10, one fewer when that would leave a
* lone tile on the last row. When 2 don't fit at full size they
* shrink.
*
* Details open in a panel right under the tile, over what follows
* (flipped to end at the tile's right edge when it would run off
@ -834,16 +835,16 @@ function Chevron() {
/* ── Helpers ─────────────────────────────────────────────────── */
/* Tiles across a row: as many as fit, at least 2 and at most 10
(never more than there are), then evened out so the rows come
out as close to equal as they can: 5 tiles that fit 4 across go
3 and 2, not 4 and 1. If one tile would still be left alone (3
where only 2 fit), one more, narrower, column takes it. */
(never more than there are). If that would leave one tile alone on
the last row, one fewer across, so the last row has two: 7 that fit
6 across go 5 and 2. With only 2 across, a third, narrower column
takes the odd one instead (3 tiles on a phone go 3 across). */
export function balancedColumns(count: number, width: number, tile: number, gap: number): number {
if (count <= 1) return 1;
const fit = Math.floor((width + gap) / (tile + gap));
const most = Math.min(count, 10, Math.max(2, fit));
const cols = Math.ceil(count / Math.ceil(count / most));
return count % cols === 1 && cols < Math.min(count, 10) ? cols + 1 : cols;
const cols = Math.min(count, 10, Math.max(2, fit));
if (count % cols !== 1) return cols;
return cols > 2 ? cols - 1 : Math.min(count, 3);
}
/* A string id is a people slug; a numeric or missing one is a

View file

@ -6,8 +6,10 @@
featured cards and the video content block.
The still is the caller's image, else YouTube's own thumbnail
(its 16:9 one, falling back to the 4:3 one cropped), else a plain
dark panel. The play button shows on hover or keyboard focus, and
(its 16:9 one, falling back to the 4:3 one cropped). Any still
that fails, or comes back as YouTube's gray "no thumbnail"
placeholder, gives way to the next; with none left it's a flat
teal panel with the play button always showing. The play button shows on hover or keyboard focus, and
always on a touch screen, which can't hover. Small rounded
corners, as the only rounded thing besides buttons and dots. A link that embeds.ts can't turn into a
player (not https, or not a host it knows how to frame) still
@ -18,7 +20,7 @@ import { Play } from '@phosphor-icons/react'
import { useState, type SyntheticEvent } from 'react'
import HomeLink from '../pages/sections/home/HomeLink.tsx'
import { playingSource, videoSource, videoThumbnail } from '../lib/embeds.ts'
import { playingSource, videoSource, videoThumbnails } from '../lib/embeds.ts'
import { BRAND } from '../lib/color.ts'
@ -35,6 +37,7 @@ export default function VideoPlayer({
className?: string
}) {
const [playing, setPlaying] = useState(false)
const [skipped, setSkipped] = useState(0)
const source = videoSource(url)
if (playing && source) {
@ -52,24 +55,36 @@ export default function VideoPlayer({
)
}
const image = still ?? videoThumbnail(url)
const stills = [...(still ? [still] : []), ...videoThumbnails(url)]
const image = stills[skipped] ?? null
const next = () => setSkipped((n) => n + 1)
// YouTube's 16:9 still is missing for some videos; its 4:3 one never is.
const fallBack = (event: SyntheticEvent<HTMLImageElement>) => {
// YouTube's placeholder for a missing still is a real 120 x 90 image,
// not an error, so it's caught by its size; wherever it came from,
// since Fetch preview may have saved one into the library.
const checkLoaded = (event: SyntheticEvent<HTMLImageElement>) => {
const img = event.currentTarget
if (img.src.endsWith('/hq720.jpg')) img.src = img.src.replace(/hq720\.jpg$/, 'hqdefault.jpg')
if (img.naturalWidth <= 120 && img.naturalHeight <= 90) next()
}
const face = (
<span className={`relative block overflow-hidden rounded-md ${className}`}>
{image ? (
<img src={image} alt="" loading="lazy" onError={fallBack} className="block aspect-video w-full object-cover" />
<img
key={image}
src={image}
alt=""
loading="lazy"
onError={next}
onLoad={checkLoaded}
className="block aspect-video w-full object-cover"
/>
) : (
<span className="block aspect-video w-full bg-[#004552]" />
)}
<span
aria-hidden="true"
className="video-play absolute inset-0 flex items-center justify-center transition-colors group-hover:bg-black/20 group-focus-visible:bg-black/20"
className={`video-play ${image ? '' : 'video-play--always'} absolute inset-0 flex items-center justify-center transition-colors group-hover:bg-black/20 group-focus-visible:bg-black/20`}
>
<span className="flex h-16 w-16 items-center justify-center rounded-full bg-white/95 shadow-lg transition-transform group-hover:scale-105">
<Play className="h-7 w-7" weight="fill" style={{ color: BRAND }} aria-hidden="true" />

View file

@ -243,7 +243,7 @@ iframe[src*="churchcenter"] {
keyboard focus where the device can hover; on a touch screen it
always shows, since there is nothing to hover with. */
@media (hover: hover) {
.video-play > span {
.video-play:not(.video-play--always) > span {
opacity: 0;
transition: opacity 160ms ease, transform 160ms ease;
}

View file

@ -88,37 +88,3 @@ export function paletteFill(name: string): { background: string; color: string }
for (const char of name.trim().toLowerCase()) hash = (hash * 31 + char.charCodeAt(0)) >>> 0
return NAMED_FILLS[hash % NAMED_FILLS.length]
}
/* ── Timeline leaves ─────────────────────────────────────────────
Each year on a timeline is a leaf, green for this year and
turning autumn as the years go back: gold, then orange, reaching
full autumn at 2000; every year before 2000 is fully turned. The
green is the palette's, deepened so a leaf stands out on the
page; the autumn shades are the one set of colors outside the
palette, since the palette has none. A hex, so readableOn can
pick text for something filled with it (a decade's tag). */
const LEAF_GREEN = '#008f2f' // #00b83d deepened toward #00521b
const LEAF_GOLD = '#c98a0b'
const LEAF_AUTUMN = '#b8461b'
const LEAF_TURNED_BY = 2000
function mixHex(from: string, to: string, amount: number): string {
const channel = (hex: string, i: number) => parseInt(hex.slice(i, i + 2), 16)
return (
'#' +
[1, 3, 5]
.map((i) => Math.round(channel(from, i) + (channel(to, i) - channel(from, i)) * amount))
.map((value) => value.toString(16).padStart(2, '0'))
.join('')
)
}
export function leafColor(year: number, thisYear = new Date().getFullYear()): string {
if (year < LEAF_TURNED_BY) return LEAF_AUTUMN
const span = Math.max(1, thisYear - LEAF_TURNED_BY)
const turned = Math.min(1, Math.max(0, (thisYear - year) / span))
// Green to gold over the first half of the span, gold to autumn over the second.
return turned <= 0.5
? mixHex(LEAF_GREEN, LEAF_GOLD, turned * 2)
: mixHex(LEAF_GOLD, LEAF_AUTUMN, (turned - 0.5) * 2)
}

View file

@ -127,15 +127,18 @@ export function playingSource(source: VideoSource): VideoSource {
/** A still for a video link: YouTube's own thumbnail. Other hosts
* need an API call to find theirs, so they return null and the
* card uses its uploaded image or a plain panel. */
export function videoThumbnail(raw?: string | null): string | null {
if (!raw) return null
export function videoThumbnails(raw?: string | null): string[] {
if (!raw) return []
try {
const id = youtubeId(new URL(raw.trim()))
// 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
if (!id) return []
// hq720 is a 16:9 frame but some videos lack it; hqdefault is 4:3
// with black bars baked in (VideoPlayer crops them). A private or
// removed video has neither, and YouTube answers with a gray
// placeholder instead of an error, which VideoPlayer also skips.
const base = `https://i.ytimg.com/vi/${encodeURIComponent(id)}`
return [`${base}/hq720.jpg`, `${base}/hqdefault.jpg`]
} catch {
return null
return []
}
}

View file

@ -7,4 +7,4 @@
box or a build banner can read the same value later.
═══════════════════════════════════════════════════════════════ */
export const SITE_VERSION = "NGU-Web.v1.10.1";
export const SITE_VERSION = "NGU-Web.v1.10.2";

View file

@ -6,7 +6,6 @@ import {
type SortDirection,
} from '../../../lib/timeline.ts'
import TimelineYear from './TimelineYear.tsx'
import { leafColor, readableOn } from '../../../lib/color.ts'
type Props = {
decade: GroupedDecade
@ -32,7 +31,7 @@ export default function TimelineDecade({
aria-labelledby={`site-tl-decade-${decade.decade}`}
>
<header className="site-tl__decadeHead">
<span className="site-tl__decadeNum" style={decadeColors(decade.decade)} aria-hidden="true">
<span className="site-tl__decadeNum" aria-hidden="true">
{decadeLabel(decade.decade)}
</span>
<div>
@ -64,11 +63,3 @@ export default function TimelineDecade({
</section>
)
}
/* A decade's tag takes its leaves' color, the middle of the decade
(or this year, for the one still running), with text that reads
on it. */
function decadeColors(decade: number) {
const background = leafColor(Math.min(decade + 5, new Date().getFullYear()))
return { background, color: readableOn(background) }
}

View file

@ -1,4 +1,4 @@
import { CaretDown, CaretUp, Leaf } from '@phosphor-icons/react'
import { CaretDown, CaretUp } from '@phosphor-icons/react'
import { useState } from 'react'
import type { GroupedYear, SortDirection } from '../../../lib/timeline.ts'
import TimelineYear from './TimelineYear.tsx'
@ -42,9 +42,7 @@ export default function TimelineUpcoming({
aria-expanded={open}
onClick={() => setOpen((v) => !v)}
>
<span className="site-tl__upcomingLeaf" aria-hidden="true">
<Leaf weight="bold" />
</span>
<span className="site-tl__upcomingDot" aria-hidden="true" />
<span className="site-tl__upcomingLabel">
{open
? 'Hide what’s scheduled'

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'}`}

View file

@ -18,9 +18,9 @@
--tl-accent: var(--color-link);
--tl-accent-soft: color-mix(in srgb, var(--tl-accent) 12%, transparent);
/* The rail is a branch: wood brown, the leaves on it. The one other
color outside the palette, with the autumn leaves. */
--tl-wood: #7a5236;
/* The rail: solid teal (mixed toward the page, so it isn't
see-through and adapts to dark mode by itself). */
--tl-line: color-mix(in srgb, var(--color-brand) 55%, var(--color-surface));
--tl-gutter: 5rem;
--tl-rail-x: 1.75rem;
@ -30,16 +30,6 @@
color: var(--tl-ink);
}
/* Lighter wood on a dark page. */
:root[data-theme="dark"] .site-tl {
--tl-wood: #a8805a;
}
@media (prefers-color-scheme: dark) {
:root:not([data-theme="light"]) .site-tl {
--tl-wood: #a8805a;
}
}
@media (max-width: 640px) {
.site-tl {
--tl-gutter: 3rem;
@ -63,12 +53,12 @@
bottom: 0;
left: var(--tl-rail-x);
width: var(--tl-rail-w);
background: var(--tl-wood);
background: var(--tl-line);
}
.site-tl__decade--pre::before {
background: none;
border-left: var(--tl-rail-w) solid var(--tl-wood);
border-left: var(--tl-rail-w) solid var(--tl-line);
opacity: 0.45;
}
@ -96,16 +86,17 @@
padding-block-start: 0.5rem;
}
/* The numeral is a tag off the rail, like a branch: a short slanted
stroke of the rail's wood runs up from the line to it, and the line
carries on past. Its color is the decade's leaves', set inline
(TimelineDecade.tsx). */
/* The numeral is a solid teal tag off the rail, like a branch: a
short slanted stroke runs up from the line to it, and the line
carries on past. */
.site-tl__decadeNum {
position: relative;
justify-self: start;
width: fit-content;
margin-left: calc(var(--tl-rail-x) + var(--tl-rail-w) + var(--tl-branch));
padding: 0.5rem 0.3rem;
background: var(--color-action);
color: #ffffff;
font-family: var(--font-display);
font-size: 0.9375rem;
font-weight: 700;
@ -123,7 +114,7 @@
right: 100%;
width: calc(var(--tl-branch) + 0.2rem);
height: 3px;
background: var(--tl-wood);
background: var(--tl-line);
transform-origin: right center;
transform: rotate(28deg);
}
@ -196,38 +187,29 @@
outline-offset: 2px;
}
/* Each year's leaf sits on the rail (TimelineYear.tsx): its color
is the year's, set inline, and --tl-leaf, its size, grows with the
year's entries. Tilted either way in turn, like leaves on a stem. */
.site-tl__leaf {
/* A solid teal dot on the rail per year; --tl-dot, its size, is set
inline from the year's entry count (TimelineYear.tsx), so the rail
reads as the organization's density at a glance. */
.site-tl__dot {
position: relative;
justify-self: start;
display: grid;
place-items: center;
margin-left: calc(var(--tl-rail-x) - (var(--tl-leaf, 16px) / 2) + (var(--tl-rail-w) / 2));
width: var(--tl-leaf, 16px);
height: var(--tl-leaf, 16px);
font-size: var(--tl-leaf, 16px);
transform: rotate(-24deg);
margin-left: calc(var(--tl-rail-x) - (var(--tl-dot, 10px) / 2) + (var(--tl-rail-w) / 2));
width: var(--tl-dot, 10px);
height: var(--tl-dot, 10px);
border-radius: 50%;
background: var(--color-brand);
transition: transform 140ms ease;
}
.site-tl__year:nth-child(even) .site-tl__leaf {
transform: rotate(24deg) scaleX(-1);
.site-tl__yearBtn:hover .site-tl__dot,
.site-tl__year--open .site-tl__dot {
transform: scale(1.25);
}
.site-tl__yearBtn:hover .site-tl__leaf,
.site-tl__year--open .site-tl__leaf {
transform: rotate(-24deg) scale(1.2);
}
.site-tl__year:nth-child(even) .site-tl__yearBtn:hover .site-tl__leaf,
.site-tl__year--open:nth-child(even) .site-tl__leaf {
transform: rotate(24deg) scaleX(-1) scale(1.2);
}
.site-tl__year--featured .site-tl__leaf {
font-size: calc(var(--tl-leaf, 16px) * 1.3);
.site-tl__year--featured .site-tl__dot {
background: var(--color-action);
outline: 2px solid var(--color-action);
outline-offset: 2px;
}
.site-tl__yearLabel {
@ -503,7 +485,7 @@ a.site-tl__entry--featured:hover {
top: 1.25rem;
bottom: 0;
left: var(--tl-rail-x);
border-left: var(--tl-rail-w) solid var(--tl-wood);
border-left: var(--tl-rail-w) solid var(--tl-line);
opacity: 0.45;
}
@ -532,13 +514,14 @@ a.site-tl__entry--featured:hover {
outline-offset: 2px;
}
.site-tl__upcomingLeaf {
.site-tl__upcomingDot {
justify-self: start;
display: grid;
place-items: center;
margin-left: calc(var(--tl-rail-x) - 7px + (var(--tl-rail-w) / 2));
font-size: 14px;
color: #008f2f; /* the leaves' green (leafColor) */
margin-left: calc(var(--tl-rail-x) - 5px + (var(--tl-rail-w) / 2));
width: 10px;
height: 10px;
border-radius: 50%;
border: 2px solid var(--color-brand);
background: var(--color-surface);
}
.site-tl__upcomingLabel {

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