Overhaul fixes: vertical parallax backdrop, bracket notices, list-framed people tiles
- Backdrop: two slow circles fixed to the window drift up as the page scrolls (a scroll-driven animation), three sit down the page and travel with their sections; tones still change per section. - Notices are two corner brackets, no box or fill. - People tiles: the frame is the list's, and details open right under the tile, closing on Escape or a click elsewhere. - Featured cards and the connect section: 4px rules; video frames inset from the card edge. - Calendar weekday row is a solid bar; History decade numerals are tags on the rail instead of a white box. - Region and partner buttons say Request; the region list's group count is gone. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
8ca3b54b31
commit
f37c093dc0
12 changed files with 228 additions and 81 deletions
|
|
@ -20,7 +20,7 @@
|
|||
The grid is one continuous block: no gaps and no frame, only a
|
||||
colored rule between cards (each card's right and bottom border,
|
||||
with the grid pulled past its clipping wrapper so the outer ones
|
||||
fall outside). With three or more cards the first is the large
|
||||
fall outside), 4px thick. With three or more cards the first is the large
|
||||
one, two rows tall, and the next two stack beside it, so it no
|
||||
longer stretches its neighbor.
|
||||
═══════════════════════════════════════════════════════════════ */
|
||||
|
|
@ -112,14 +112,15 @@ function Card({ card, large }: { card: FeaturedCard; large: boolean }) {
|
|||
|
||||
return (
|
||||
<li
|
||||
className={`relative flex flex-col overflow-hidden border-r-2 border-b-2 ${RULE} bg-surface transition-colors hover:bg-tint-soft ${
|
||||
className={`relative flex flex-col overflow-hidden border-r-4 border-b-4 ${RULE} bg-surface transition-colors hover:bg-tint-soft ${
|
||||
large ? 'lg:col-span-2 lg:row-span-2' : ''
|
||||
}`}
|
||||
>
|
||||
{card.kind === 'video' ? (
|
||||
// Above the stretched link, which a video card doesn't have
|
||||
// anyway, so the play button always gets the click.
|
||||
<div className="relative z-10">
|
||||
// anyway, so the play button always gets the click. Inset
|
||||
// from the card's edges, so the frame sits inside the cell.
|
||||
<div className="relative z-10 p-4 pb-0">
|
||||
<VideoPicture card={card} />
|
||||
</div>
|
||||
) : (
|
||||
|
|
@ -134,7 +135,7 @@ export default function FeaturedCards({ cards }: { cards: FeaturedCard[] }) {
|
|||
const leadLarge = cards.length >= 3
|
||||
return (
|
||||
<div className="overflow-hidden">
|
||||
<ul className="-mr-[2px] -mb-[2px] grid sm:grid-cols-2 lg:grid-cols-3">
|
||||
<ul className="-mr-[4px] -mb-[4px] grid sm:grid-cols-2 lg:grid-cols-3">
|
||||
{cards.map((card, index) => (
|
||||
<Card
|
||||
key={`${card.kind}-${card.ref?.id ?? card.url}-${index}`}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue