diff --git a/src/components/EventHeroCard.astro b/src/components/EventHeroCard.astro index 3005b10..2546cfa 100644 --- a/src/components/EventHeroCard.astro +++ b/src/components/EventHeroCard.astro @@ -12,7 +12,9 @@ interface Props { memberLabel?: string | null; // e.g. "MEMBER · 001" } -const { event, confirmedCount, myRsvp, greetingPrefix, firstName, memberLabel = null } = Astro.props; +const { + event, confirmedCount, myRsvp, greetingPrefix, firstName, memberLabel = null, +} = Astro.props; function parseUtc(s: string): Date { if (/T.*[Zz]$/.test(s) || /[+-]\d{2}:?\d{2}$/.test(s)) return new Date(s); @@ -49,51 +51,52 @@ const startTime = event ? fmt({ hour: '2-digit', minute: '2-digit', hour12: fa {event ? ( - <> -
Next gathering · {eventKindLabel(event.kind).toUpperCase()}
-Next gathering · {eventKindLabel(event.kind).toUpperCase()}
+{event.description}
-{event.location}
-{event.description}
+{event.location}
Nothing scheduled yet — when we have something, you'll be the first to know.
)} + + + {event && ( + + )}