Testimonials Video
Three video-testimonial glass cards with gradient posters, initials, play button and duration; opening one expands a glass player panel above with headline, quote and author.
glass/section/testimonials-videoSource
"use client";
import { useState } from "react";
import { Play, X } from "lucide-react";
import { cn } from "@/lib/utils";
export interface TestimonialsVideoItem {
name: string;
role: string;
company: string;
headline: string;
duration: string;
/** Short quote shown in the card and as the “transcript” when opened. */
quote: string;
}
export interface TestimonialsVideoProps {
eyebrow?: string;
title?: string;
items?: TestimonialsVideoItem[];
className?: string;
}
const GLASS = "da-stroke bg-da-surface backdrop-blur-da backdrop-saturate-150";
const GRADS = ["from-da-primary/60 to-da-accent/50", "from-da-accent/60 to-da-success/40", "from-da-danger/50 to-da-primary/60"];
const DEFAULT_ITEMS: TestimonialsVideoItem[] = [
{
name: "Amara Diallo",
role: "Head of Product",
company: "Lumen",
headline: "How Lumen killed the status meeting",
duration: "1:42",
quote: "Our Monday sync was 14 people for an hour. Now it’s six two-minute videos and a recap.",
},
{
name: "Leo Park",
role: "VP Sales",
company: "Parcel",
headline: "4 hours a week back per rep",
duration: "2:10",
quote: "Every call lands in HubSpot with next steps. My reps stopped writing notes entirely.",
},
{
name: "Sofia Rossi",
role: "COO",
company: "Quanta",
headline: "Finding any decision in seconds",
duration: "1:18",
quote: "I asked Halo what we decided about EU pricing and it jumped straight to the moment.",
},
];
/** Three video-testimonial glass cards (gradient poster, play button, duration). Opening one expands an inline player panel with the quote. */
export function TestimonialsVideo({
eyebrow = "Customer stories",
title = "Hear it from the teams using Halo",
items = DEFAULT_ITEMS,
className,
}: TestimonialsVideoProps) {
const [open, setOpen] = useState<number | null>(null);
const cur = open === null ? null : items[open];
return (
<section aria-labelledby="glass-video-title" className={cn("da-section text-da-fg", className)}>
<div className="da-container">
<div className="mx-auto max-w-2xl text-center">
<p className="text-sm font-semibold text-da-primary">{eyebrow}</p>
<h2
id="glass-video-title"
className="mt-3 font-da-display text-[clamp(2rem,4.5vw,3.25rem)] leading-[1.08] font-semibold tracking-da-display text-balance"
>
{title}
</h2>
</div>
{cur && open !== null && (
<div
className={cn(
"relative mx-auto mt-12 grid max-w-4xl gap-6 rounded-da-lg p-4 shadow-da-lg transition-[opacity,scale] duration-(--da-duration) starting:scale-95 starting:opacity-0 md:grid-cols-[1.5fr_1fr]",
GLASS,
)}
>
<div className={cn("relative grid aspect-video place-items-center rounded-da-md bg-gradient-to-br", GRADS[open % GRADS.length])}>
<span className="rounded-da-pill bg-da-fg/70 px-3 py-1 font-da-mono text-xs text-da-bg">▶ 0:00 / {cur.duration}</span>
</div>
<div className="flex flex-col p-2">
<p className="font-da-display text-lg font-semibold">{cur.headline}</p>
<blockquote className="mt-3 text-da-muted-fg">“{cur.quote}”</blockquote>
<p className="mt-auto pt-4 text-sm">
<span className="font-semibold">{cur.name}</span> · {cur.role}, {cur.company}
</p>
</div>
<button
type="button"
onClick={() => setOpen(null)}
aria-label="Close video"
className="da-focus absolute top-6 right-6 grid size-9 place-items-center rounded-full bg-da-fg/70 text-da-bg"
>
<X aria-hidden className="size-4" />
</button>
</div>
)}
<ul className="mt-12 grid gap-5 md:grid-cols-3">
{items.map((t, i) => (
<li key={t.name}>
<article
className={cn(
"da-transition group h-full rounded-da-lg p-3 shadow-da-md hover:-translate-y-1 hover:shadow-da-lg",
GLASS,
open === i && "ring-2 ring-da-primary",
)}
>
<button
type="button"
onClick={() => setOpen(i)}
aria-label={`Play video: ${t.headline} (${t.duration})`}
className={cn(
"da-focus relative grid aspect-[4/3] w-full place-items-center overflow-hidden rounded-da-md bg-gradient-to-br",
GRADS[i % GRADS.length],
)}
>
<span
aria-hidden
className="absolute bottom-3 left-3 grid size-12 place-items-center rounded-full bg-da-surface font-da-display font-semibold shadow-da-sm backdrop-blur-da"
>
{t.name
.split(" ")
.map((p) => p[0])
.join("")}
</span>
<span
aria-hidden
className="da-transition grid size-14 place-items-center rounded-full bg-da-surface shadow-da-md backdrop-blur-da group-hover:scale-110"
>
<Play className="ml-0.5 size-5 fill-current" />
</span>
<span aria-hidden className="absolute right-3 bottom-3 rounded-da-pill bg-da-fg/70 px-2 py-0.5 font-da-mono text-[11px] text-da-bg">
{t.duration}
</span>
</button>
<div className="p-3">
<h3 className="font-da-display font-semibold">{t.headline}</h3>
<p className="mt-1 text-sm text-da-muted-fg">
{t.name}, {t.role} at {t.company}
</p>
</div>
</article>
</li>
))}
</ul>
</div>
</section>
);
}
export default TestimonialsVideo;
modules/glass/section/testimonials-video/index.tsx
Props
| Prop | Type | Default | Description |
|---|---|---|---|
| eyebrow / title | string | — | Header. |
| items | { name, role, company, headline, duration, quote }[] | — | Stories. |
| className | string | — | Classes. |
Other testimonials variants in Glass
Testimonials Deck
Stacked deck of glass testimonial cards offset in depth; a ‘Next story’ button sends the top card to the back and the others slide forward, with a live counter.
Testimonials Marquee
Two rows of frosted testimonial cards scrolling infinitely in opposite directions with faded edges, pause on hover, star rating summary above. A static sr-only list carries the content for assistive tech.
Testimonials Masonry
Rating summary pill (stars, 4.9/5, review count) above a masonry wall of glass quote cards with star ratings; one highlight card is filled with the brand gradient.
Testimonials in other art directions
Testimonials Big Quote
Full-bleed blue section showing one giant uppercase quote at a time with a tilted yellow metric card, author row, pressable prev/next buttons and bar-shaped pagination.
Testimonials Logos
Case-study strip: four ruled cells, each with a company wordmark, a giant result number, its label and a one-line quote, alternating solid and paper tones.
Testimonials Posts
Social-post wall: ruled cards styled like timeline posts (square colored avatar, handle, date, casual copy, reply/repost/like counts) in a 3-column grid with a 'see more' CTA.
Testimonials Wall
Wall of quote cards in alternating solid colors with hard shadows, initials avatars and optional rotated metric stickers ("2× adoption").
Testimonials Carousel
One large quote at a time with initials avatar and role, cross-fading between slides; progress dots, a 01 / 04 counter and round prev/next buttons, arrow-key navigation.
Testimonials Case Studies
Three case-study cards led by an oversized mono metric in indigo (−71% pages), a short quote, author and a Read the story link that makes the whole card clickable.
Testimonials Grid
Asymmetric testimonial grid: one large featured quote with a headline metric, flanked by two compact quotes, then a second row. Hairline cards, initials avatars, no logos needed.
Testimonials Posts
Masonry wall of social-post cards in 1–3 CSS columns: initials avatar, name and handle, post text, date and like count. Hairline cards, centered header.
Testimonials Grid
Hairline grid of short quotes (gap-px on a border-colored background) — 3 columns desktop, each cell with the quote and mono attribution; no cards, no shadows.
Testimonials List
Testimonials as an editorial ruled list: each row pairs a mono index + name/studio/city on the left with the quote on the right in a larger size; rows separated by hairlines.
Testimonials Marquee
Slow horizontal ticker of short quotes in large display type, separated by signal dots, between two ink rules; pauses on hover, static and wrapped with reduced motion. Pure CSS.
Testimonials Quote
One oversized pull quote set in the display face with a hanging opening quote mark, mono attribution under a short ink rule; lots of whitespace.
Testimonials Cards
Clean 3-column grid of bordered quote cards with company name header, quote, and initials avatar + role footer divided by a hairline.
Testimonials Case Study
Featured customer story: bordered card split into a company quote (logo wordmark, quote, author) and a tinted column of three big result metrics with a “Read the case study” link.
Testimonials Logos
Row of customer wordmark buttons acting as tabs; selecting one swaps the quote, author and key metric below.
Testimonials Ratings
Review-site proof: rating tiles per platform (score + stars + review count), a row of award badges, and two review excerpts.
Testimonials Carousel
Gentle one-at-a-time carousel on a sage band: serif quote cross-fades, round prev/next buttons, leaf-shaped position dots; no autoplay.
Testimonials Notes
Kind words as handwritten-feeling notes: slightly tilted paper/sage/clay cards with italic serif quotes and a small “pinned” dot, straightening on hover.
Testimonials Portrait
Single large testimonial: an arch-shaped sage “portrait” with big initials and a leaf, next to a large serif quote, attribution and a clay result chip.
Testimonials Wall
Masonry wall of soft rounded quote cards in mixed tints (CSS columns), each with a small leaf-dot avatar, name and role.
Testimonials Bubbles
Testimonials as a friendly group chat: alternating pastel speech bubbles with round avatars and names inside a big white phone-like card, next to the section title.
Testimonials Notes
Wall of pastel sticky notes, slightly rotated with a round periwinkle pin on top, each holding a bold short quote and author; notes straighten on hover.
Testimonials Slider
Horizontal slider of pastel testimonial cards with star ratings; round prev/next buttons move one card at a time and pill dots show the position.
Testimonials Spotlight
One big quote on a mint block with a giant quote mark, a flat shape avatar, three white stat bubbles and a row of customer wordmarks below.