Block 137 of 297
Featured Event
A ticket-stub card for one signature event with date, venue, ticket or waitlist button and sponsor row.
- Puck key
- FeaturedEventBlock
- Export
- featuredEventBlock
- React component
- <FeaturedEvent />
- Path
- components/puck/featured-event-block.tsx
- Dependencies
- None
- License
- MIT
About this block
When to use it, how to write for it, and what to change in the code.
What it's for
A ticket-stub card for one signature event: a photo with a month-and-day stamp, then the name, tagline, when and where, and ticket and sponsor links past a dashed tear line. Marking it sold out adds a label and swaps the ticket button for a waitlist link. Sponsor names run in a row beneath. On phones the photo sits on top.
- A gala, benefit dinner or auction page
- A 5K, golf outing or other annual fundraiser
- The home page during the weeks before a signature event
Writing the content
- Fill both Date (how people read it) and Date (YYYY-MM-DD). The second draws the stamp on the photo; without a valid one, the stamp is hidden.
- When tickets run out, set Sold out to Yes and fill the waitlist fields. The Ticket note hides while sold out.
- Enter Sponsor names one per line. They show as styled text, not logos, cycling through four type treatments.
Accessibility
- The Event name uses the heading level you choose, and when and where form a description list with hidden "When" and "Where" terms (WCAG 1.3.1).
- The date stamp is hidden from screen readers because the full date is written out, in a time element when the ISO date is valid.
- Sold out status is a written label, not just a change of button color, and the main button has a 48px minimum height with a focus outline.
Customizing the code
- The stamp header, eyebrow and ticket button use Tailwind indigo; the name uses font-serif. Change both to suit your brand.
Editor fields
What content editors see in the P1 sidebar when they select this block.
- Eyebrowtext
- Event nametext
- Heading levelselect
- Taglinetextarea
- Image URLtext
- Image alt texttext
- Datetext
- Date (YYYY-MM-DD)text
- Timetext
- Venuetext
- Addresstext
- Ticket button texttext
- Ticket linktext
- Ticket notetext
- Sold outradio
- Waitlist link texttext
- Waitlist linktext
- Sponsor link texttext
- Sponsor linktext
- Sponsors labeltext
- Sponsor namestextarea