Skip to content

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.

glass/section/testimonials-masonry
Open ↗

Source

import { Star } from "lucide-react";
import { cn } from "@/lib/utils";

export interface TestimonialsMasonryItem {
  quote: string;
  name: string;
  role: string;
  rating?: number;
  highlight?: boolean;
}

export interface TestimonialsMasonryProps {
  eyebrow?: string;
  title?: string;
  rating?: { score: string; count: string };
  items?: TestimonialsMasonryItem[];
  className?: string;
}

const GLASS = "da-stroke bg-da-surface backdrop-blur-da backdrop-saturate-150";

const DEFAULT_ITEMS: TestimonialsMasonryItem[] = [
  { quote: "The recaps are shockingly good. Decisions first, fluff removed.", name: "Maya Chen", role: "Engineering Manager", rating: 5 },
  {
    quote: "Halo is the first AI tool the whole company adopted without a mandate. People just started using it because the Slack recaps were useful.",
    name: "Amara Diallo",
    role: "Head of Product, Lumen",
    rating: 5,
    highlight: true,
  },
  { quote: "Live translation for our Seoul team is a game changer.", name: "Jin Park", role: "Design Lead", rating: 5 },
  { quote: "I haven’t written meeting notes in six months.", name: "Leo Park", role: "VP Sales, Parcel", rating: 5 },
  {
    quote: "Async videos with auto-chapters mean I watch updates at 1.5× on my commute and skip the meeting.",
    name: "Sofia Rossi",
    role: "COO, Quanta",
    rating: 5,
  },
  { quote: "Setup took two minutes. It joined my next call and I forgot it was there.", name: "Noah Klein", role: "Founder", rating: 4 },
  { quote: "Ask Halo found a customer promise from a call four months ago. Saved a renewal.", name: "Priya Raman", role: "Customer Success", rating: 5 },
];

/** Rating summary header and a masonry wall of glass quote cards (star rating, highlight card with gradient). */
export function TestimonialsMasonry({
  eyebrow = "Reviews",
  title = "Teams can’t stop talking about Halo",
  rating = { score: "4.9", count: "2,180 reviews" },
  items = DEFAULT_ITEMS,
  className,
}: TestimonialsMasonryProps) {
  return (
    <section aria-labelledby="glass-masonry-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-masonry-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>
          <p className={cn("mt-6 inline-flex items-center gap-2 rounded-da-pill px-4 py-2 text-sm shadow-da-sm", GLASS)}>
            <span className="flex text-da-warning" aria-hidden>
              {Array.from({ length: 5 }, (_, i) => (
                <Star key={i} className="size-4 fill-current" />
              ))}
            </span>
            <span className="font-semibold">{rating.score}/5</span>
            <span className="text-da-muted-fg">from {rating.count}</span>
          </p>
        </div>
        <ul className="mt-12 gap-4 sm:columns-2 lg:columns-3">
          {items.map((t) => (
            <li key={t.name} className="mb-4 break-inside-avoid">
              <figure
                className={cn("rounded-da-lg p-6 shadow-da-md", t.highlight ? "bg-gradient-to-br from-da-primary to-da-accent text-da-primary-fg" : GLASS)}
              >
                {t.rating !== undefined && (
                  <p className={cn("flex", t.highlight ? "text-da-primary-fg" : "text-da-warning")}>
                    <span className="sr-only">Rated {t.rating} out of 5</span>
                    {Array.from({ length: 5 }, (_, i) => (
                      <Star key={i} aria-hidden className={cn("size-4", i < t.rating! ? "fill-current" : "opacity-30")} />
                    ))}
                  </p>
                )}
                <blockquote className={cn("mt-4 leading-relaxed", t.highlight ? "font-da-display text-lg font-medium" : "text-[15px]")}>“{t.quote}”</blockquote>
                <figcaption className="mt-5 text-sm">
                  <span className="block font-semibold">{t.name}</span>
                  <span className={cn("block", t.highlight ? "opacity-90" : "text-da-muted-fg")}>{t.role}</span>
                </figcaption>
              </figure>
            </li>
          ))}
        </ul>
      </div>
    </section>
  );
}

export default TestimonialsMasonry;

modules/glass/section/testimonials-masonry/index.tsx

Props

PropTypeDefaultDescription
eyebrow / titlestring—Header.
rating{ score, count }—Summary.
items{ quote, name, role, rating?, highlight? }[]—Cards.
classNamestring—Classes.

Other testimonials variants in Glass

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.

BrutalistTestimonials

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.

BrutalistTestimonials

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.

BrutalistTestimonials

Testimonials Wall

Wall of quote cards in alternating solid colors with hard shadows, initials avatars and optional rotated metric stickers ("2× adoption").

BrutalistTestimonials

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.

MinimalTestimonials

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.

MinimalTestimonials

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.

MinimalTestimonials

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.

MinimalTestimonials

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.

Mono CleanTestimonials

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.

Mono CleanTestimonials

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.

Mono CleanTestimonials

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.

Mono CleanTestimonials

Testimonials Cards

Clean 3-column grid of bordered quote cards with company name header, quote, and initials avatar + role footer divided by a hairline.

Neo CorporateTestimonials

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.

Neo CorporateTestimonials

Testimonials Logos

Row of customer wordmark buttons acting as tabs; selecting one swaps the quote, author and key metric below.

Neo CorporateTestimonials

Testimonials Ratings

Review-site proof: rating tiles per platform (score + stars + review count), a row of award badges, and two review excerpts.

Neo CorporateTestimonials

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.

Organic SoftTestimonials

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.

Organic SoftTestimonials

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.

Organic SoftTestimonials

Testimonials Wall

Masonry wall of soft rounded quote cards in mixed tints (CSS columns), each with a small leaf-dot avatar, name and role.

Organic SoftTestimonials

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.

Soft FlatTestimonials

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.

Soft FlatTestimonials

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.

Soft FlatTestimonials

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.

Soft FlatTestimonials