Front page editor: Featured Content > Columns (2, 3 or 4 across on a wide screen) and a Size on each card (normal, wide, tall, large). Blank keeps today's layout: 3 across, the first of three or more large. Regions and the Community blog stay automatic. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
33 lines
1.4 KiB
TypeScript
33 lines
1.4 KiB
TypeScript
/* ═══════════════════════════════════════════════════════════════
|
|
FEATURED BAND
|
|
|
|
The front page's featured content: the cards from the admin's
|
|
Front page editor (Featured cards), under the section's heading.
|
|
The cards themselves are FeaturedCards, which the Community
|
|
blog will share. No cards, no band.
|
|
═══════════════════════════════════════════════════════════════ */
|
|
|
|
import FeaturedCards from '../../../components/FeaturedCards.tsx'
|
|
import type { FeaturedCard, FeaturedColumns } from '../../../lib/useFrontPage.ts'
|
|
|
|
type FeaturedBandProps = {
|
|
id: string
|
|
title: string
|
|
blurb?: string | null
|
|
cards: FeaturedCard[]
|
|
columns?: FeaturedColumns | null
|
|
}
|
|
|
|
export default function FeaturedBand({ id, title, blurb, cards, columns }: FeaturedBandProps) {
|
|
return (
|
|
<section id={id} className="py-24">
|
|
<div className="mx-auto max-w-6xl px-6">
|
|
<h2 className="font-display text-4xl font-bold text-ink md:text-5xl">{title}</h2>
|
|
{blurb && <p className="mt-4 max-w-2xl text-lg text-muted">{blurb}</p>}
|
|
<div className="mt-12">
|
|
<FeaturedCards cards={cards} columns={columns ?? undefined} />
|
|
</div>
|
|
</div>
|
|
</section>
|
|
)
|
|
}
|