May 20, 2030, 1:00 PM–5:00 PM EDT
Our guest baker from Brooklyn shows how to boil, seed and bake a proper bagel.
Example Loft, Brooklyn
- workshop
- guest
Composite
An event card: date and time in the event’s zone, location, and a past badge.
Times show in timezone, with the zone name. On a collection page the helpers pass the event’s own zone, else collections.timezone from config.yaml.
May 20, 2030, 1:00 PM–5:00 PM EDT
Our guest baker from Brooklyn shows how to boil, seed and bake a proper bagel.
---
import EventCard from '@alfadormx/blocks/composite/EventCard.astro';
---
<div class="max-w-sm">
<EventCard
headline={{ title: 'New York bagel workshop' }}
href="/demos/local/events/new-york-workshop"
description="Our guest baker from Brooklyn shows how to boil, seed and bake a proper bagel."
start={new Date('2030-05-20T17:00:00Z')}
end={new Date('2030-05-20T21:00:00Z')}
timezone="America/New_York"
location={{ name: 'Example Loft, Brooklyn' }}
tags={['workshop', 'guest']}
/>
</div>past adds the badge. The page helpers set it at build time, so a static site needs a scheduled rebuild to move events into the past.
---
import EventCard from '@alfadormx/blocks/composite/EventCard.astro';
---
<div class="max-w-sm">
<EventCard
headline={{ title: 'Online sourdough class' }}
href="/demos/local/events/accessibility-webinar"
start={new Date('2026-02-04T15:00:00Z')}
end={new Date('2026-02-04T16:00:00Z')}
timezone="Europe/Madrid"
location={{ name: 'Online' }}
past
/>
</div>| Prop | Type | Default | Description |
|---|---|---|---|
| headline | HeadlineProps | — | Card title; the title text is the card's one link and its accessible name (default: htmlTag 'h3'). |
| href | string | — | Entry URL; the whole card is one link. |
| description | string | — | Excerpt under the title. |
| image | ImageProps | — | Cover image above the title. |
| tags | string[] | — | Tags in the card footer (default: []). |
| langCode | string | — | Language of the card's dates and UI strings (default: the site's default language). |
| class | string | — | Classes on the card root (`data-entry-card`). |
| eyebrowClass | string | — | Classes on the eyebrow line above the title (`data-entry-card-eyebrow`). |
| tagsClass | string | — | Classes on the tags list (`data-entry-card-tags`). |
| start | Date | — | Start date and time. |
| end | Date | — | End date and time; a same-day end shows as a time range. |
| timezone | string | 'UTC' | IANA time zone the times are shown in (default: 'UTC'; the page helpers pass the event's or the site's zone). |
| location | EntryLocation | — | Venue; its name leads the card footer. |
| past | boolean | false | Marks the event as over and shows the past badge. |
| pastLabel | string | — | Text of the past badge (default: per-language "Past"). |
| readMoreLabel | string | — | Visual "Read more" text; hidden from assistive tech, since the title is the link (default: per-language string). |