32 lines
1.4 KiB
TypeScript
32 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 } from '../../../lib/useFrontPage.ts'
|
|
|
|
type FeaturedBandProps = {
|
|
id: string
|
|
title: string
|
|
blurb?: string | null
|
|
cards: FeaturedCard[]
|
|
}
|
|
|
|
export default function FeaturedBand({ id, title, blurb, cards }: FeaturedBandProps) {
|
|
return (
|
|
<section id={id} className="py-24" style={{ background: 'var(--color-tint-soft)' }}>
|
|
<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} />
|
|
</div>
|
|
</div>
|
|
</section>
|
|
)
|
|
}
|