Block 40 of 297
Video Testimonials
Poster cards with play button and runtime badge that open each testimonial video in a new tab.
- Puck key
- VideoTestimonialsBlock
- Export
- videoTestimonialsBlock
- React component
- <VideoTestimonials />
- Path
- components/puck/video-testimonials-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 grid of video poster cards, each with a play icon, length badge, speaker name and role, and an optional teaser line. Cards link to the video's own page in a new tab instead of embedding a player, so no video scripts load. One video gets a wide single column, two or four get two columns, and three or more get three on desktop.
- A program results page with short participant interviews
- A donor page collecting thank-you videos hosted on YouTube or Vimeo
- A recruitment page where staff or volunteers describe the work
Writing the content
- The Name is the link text, and the card only links when Video link is filled in too.
- Use a 16:9 still for Poster image URL. Poster alt text can usually stay blank, since the name labels the link.
- Enter Length like 2:14; it shows as a badge on the poster.
- Pick the Dark or Light style to contrast with neighboring sections. Up to nine videos are allowed.
Accessibility
- Hidden text makes each link read "Watch [name]'s story (video, opens in a new tab)".
- Card titles sit one heading level below the section heading; the play icon is hidden and the length badge has a hidden "Length:" prefix.
- The hover zoom is turned off for reduced-motion users, and focus outlines the whole card.
Customizing the code
- Accent colors use indigo-300, indigo-600 and indigo-700; replace them to match your brand.
- The gridCols function at the top of the file sets columns per number of videos.
Editor fields
What content editors see in the P1 sidebar when they select this block.
- Eyebrowtext
- Headingtext
- Heading levelselect
- Introtextarea
- Videosarray
- Styleradio