PageBackdrop draws flat, overlapping palette circles behind the public site and eases them to a new tone as each section reaches the middle of the window, so sections no longer paint their own bands (PageShell's background field is gone). The hero's brand backdrop is a flat teal with the dove, its two buttons one cell cut by a slash, and the countdown straddles the hero and the band below. No glows: the drifting blobs, rings, live-dot pulse and the stats band's blurred circle are gone. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
41 lines
1.8 KiB
TypeScript
41 lines
1.8 KiB
TypeScript
/* ═══════════════════════════════════════════════════════════════
|
|
RETREATS BAND
|
|
|
|
The National Retreats carousel from the Retreats page, as-is:
|
|
same component, same filter, so an event edited in the admin
|
|
shows up identically in both places. This file only adds the
|
|
front page's heading and a way through to the full page.
|
|
═══════════════════════════════════════════════════════════════ */
|
|
|
|
import { ArrowRight } from '@phosphor-icons/react'
|
|
import { Link } from 'react-router-dom'
|
|
|
|
import EventListCards from '../EventList-Cards.tsx'
|
|
import { accentText, BRAND } from '../../../lib/color.ts'
|
|
|
|
|
|
type RetreatsBandProps = { id: string; title: string; blurb?: string | null }
|
|
|
|
export default function RetreatsBand({ id, title, blurb }: RetreatsBandProps) {
|
|
return (
|
|
<section id={id} className="overflow-hidden py-24">
|
|
<div className="mx-auto mb-12 flex max-w-6xl flex-wrap items-end gap-6 px-6">
|
|
<div>
|
|
<h2 className="font-display text-4xl font-bold text-ink md:text-5xl">
|
|
{title}
|
|
</h2>
|
|
{blurb && <p className="mt-3 max-w-xl text-lg text-muted">{blurb}</p>}
|
|
</div>
|
|
<Link
|
|
to="/retreats"
|
|
className="ml-auto btn border px-5 py-2 text-sm transition-colors hover:bg-surface"
|
|
style={{ borderColor: BRAND, color: accentText(BRAND) }}
|
|
>
|
|
All retreats <ArrowRight size="1em" weight="bold" className="inline align-[-0.125em]" aria-hidden="true" />
|
|
</Link>
|
|
</div>
|
|
|
|
<EventListCards scope="national" type="retreat" view="carousel" accent={BRAND} />
|
|
</section>
|
|
)
|
|
}
|