diff --git a/src/components/FeaturedCards.tsx b/src/components/FeaturedCards.tsx index d0de926..c0fc3dc 100644 --- a/src/components/FeaturedCards.tsx +++ b/src/components/FeaturedCards.tsx @@ -16,6 +16,13 @@ A photo fills the picture area; a logo sits inside it on a soft panel instead, since cropping a logo to 16:9 cuts it off. + + 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 + one, two rows tall, and the next two stack beside it, so it no + longer stretches its neighbor. ═══════════════════════════════════════════════════════════════ */ @@ -71,16 +78,18 @@ function VideoPicture({ card }: { card: FeaturedCard }) { return } -function Card({ card }: { card: FeaturedCard }) { +const RULE = 'border-brand' + +function Card({ card, large }: { card: FeaturedCard; large: boolean }) { const href = hrefFor(card) const text = ( -
+
{card.eyebrow && (

{card.eyebrow}

)} {card.title && ( -

+

{href ? ( // Stretched over the whole card, so the picture and the // blurb are part of the click without nesting links. @@ -95,12 +104,18 @@ function Card({ card }: { card: FeaturedCard }) { )}

)} - {card.blurb &&

{card.blurb}

} + {card.blurb && ( +

{card.blurb}

+ )}
) return ( -
  • +
  • {card.kind === 'video' ? ( // Above the stretched link, which a video card doesn't have // anyway, so the play button always gets the click. @@ -116,11 +131,18 @@ function Card({ card }: { card: FeaturedCard }) { } export default function FeaturedCards({ cards }: { cards: FeaturedCard[] }) { + const leadLarge = cards.length >= 3 return ( -
      - {cards.map((card, index) => ( - - ))} -
    +
    +
      + {cards.map((card, index) => ( + + ))} +
    +
    ) } diff --git a/src/components/Footer.tsx b/src/components/Footer.tsx index 07509f7..9a8b989 100644 --- a/src/components/Footer.tsx +++ b/src/components/Footer.tsx @@ -53,15 +53,29 @@ const headingClass = "text-white/90 text-sm font-semibold mb-4"; export default function Footer() { return ( -