Block 61 of 297
CTA Deadline
Registration-deadline band led by a tear-off calendar date stamp, with quick facts like fee and spots left and a register button.
- Puck key
- CtaDeadlineBlock
- Export
- ctaDeadlineBlock
- React component
- <CtaDeadline />
- Path
- components/puck/cta-deadline-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 tinted band built around a deadline. A tilted tear-off calendar stamp shows the month, day and weekday, next to a deadline sentence, heading, short body and up to three quick facts such as fee or spots left. Buttons sit to the right on desktop; on tablets they drop to their own row, and on phones everything stacks.
- Youth sports, camp or class registration closing on a set date
- A grant, scholarship or award application deadline
- Early-bird pricing for an event
Writing the content
- Always write the full date in Deadline line, such as "Registration closes Friday, March 14 at 11:59 p.m." The stamp is decorative when this line is filled in.
- Use a short Month like Mar so it fits the stamp's header; leave Month and Day blank to remove the stamp.
- Add up to three Quick facts. Spots left can go stale quickly, so update it or bind it to a data source.
- Remove or replace the block once the deadline passes so the page doesn't advertise a closed window.
Accessibility
- When Deadline line is filled in, the calendar stamp is hidden from screen readers so the date isn't read twice in fragments.
- Quick facts are a description list pairing each label with its value (WCAG 1.3.1).
- The secondary link is underlined, and both actions have indigo focus outlines and a 44px or larger height.
Customizing the code
- The stamp header is bg-indigo-600 and the band is bg-indigo-50; swap both for a brand color family.
- The stamp tilt is -rotate-2 on its wrapper, and its width is w-28 sm:w-32.
Editor fields
What content editors see in the P1 sidebar when they select this block.
- Monthtext
- Daytext
- Weekdaytext
- Deadline linetext
- Headingtext
- Heading levelselect
- Bodytextarea
- Quick factsarray
- Button texttext
- Button linktext
- Secondary link texttext
- Secondary linktext