Testimonial sections
What customers say, in their own words: a lead quote with two smaller ones, one featured story with its result, a wall of short quotes, or a carousel that shows one at a time.
4 blocks below, each one file and one command. They wear whichever DressCode theme you install, in light and dark.
Lead quote and two more
One large quote in a card beside two smaller ones with star ratings, each with the person's initials, name and role.
npx shadcn@latest add https://dresscodeui.com/r/dresscode/testimonials-grid.json// Testimonials, lead quote and two more: one large quote in a card beside two smaller ones with a star
// rating. People are shown by their initials. From the Orbit landing template; the names and quotes are
// sample content, replace them with your own.
import { Quote, Star } from "lucide-react"
const QUOTES = [
{
quote: "I used to spend Friday afternoons chasing invoices. Now Orbit does it in a tone I would actually use, and clients pay faster.",
name: "Maya Lindqvist",
role: "Founder, Fernwood Studio",
initials: "ML",
},
{
quote: "The forecast alone is worth it. I know in the first week whether the month is fine.",
name: "Tom Okafor",
role: "Partner, Kato & Lee",
initials: "TO",
},
{
quote: "Setting it up took one coffee. Every invoice since has taken about a minute.",
name: "Priya Raman",
role: "Freelance product designer",
initials: "PR",
},
]
function Initials({ initials }: { initials: string }) {
return (
<span aria-hidden="true" className="inline-grid size-9 shrink-0 place-items-center rounded-full bg-[color:color-mix(in_oklab,var(--dc-accent)_14%,var(--card))] text-xs font-bold text-[color:var(--dc-accent)] ring-2 ring-[color:var(--card)]">
{initials}
</span>
)
}
export default function TestimonialsGrid() {
const [lead, ...rest] = QUOTES
return (
<section aria-labelledby="testimonials-grid-title" className="py-16 sm:py-24">
<div className="mx-auto w-full max-w-[1200px] px-5 sm:px-8">
<div className="mx-auto max-w-[640px] text-center">
<p className="text-sm font-semibold text-[color:var(--dc-accent)]">Customers</p>
<h2 id="testimonials-grid-title" className="dc-h mt-3 text-[32px] leading-[1.1] sm:text-[42px]">
Fewer awkward emails, more paid invoices
</h2>
</div>
<div className="mt-14 grid gap-4 lg:grid-cols-[1.4fr_1fr]">
<figure className="dc-card flex flex-col justify-between p-6 sm:p-8">
<div>
<Quote className="size-8 text-[color:var(--dc-accent)]" aria-hidden="true" />
<blockquote className="dc-h mt-5 text-[24px] leading-snug sm:text-[28px]">“{lead.quote}”</blockquote>
</div>
<figcaption className="mt-8 flex items-center gap-3">
<Initials initials={lead.initials} />
<span>
<span className="block font-semibold">{lead.name}</span>
<span className="block text-sm text-muted-foreground">{lead.role}</span>
</span>
</figcaption>
</figure>
<div className="grid gap-4">
{rest.map((q) => (
<figure key={q.name} className="dc-card p-6">
<p className="flex gap-0.5 text-[color:var(--dc-accent)]">
<span className="sr-only">Rated 5 out of 5</span>
{Array.from({ length: 5 }, (_, i) => (
<Star key={i} className="size-4 fill-current" aria-hidden="true" />
))}
</p>
<blockquote className="mt-3 text-[16px] leading-relaxed">“{q.quote}”</blockquote>
<figcaption className="mt-5 flex items-center gap-3">
<Initials initials={q.initials} />
<span>
<span className="block font-semibold">{q.name}</span>
<span className="block text-sm text-muted-foreground">{q.role}</span>
</span>
</figcaption>
</figure>
))}
</div>
</div>
</div>
</section>
)
}Featured story
One large quote with the person, their role and their company's wordmark, and the result it brought beside it in big figures.
npx shadcn@latest add https://dresscodeui.com/r/dresscode/testimonials-featured.json// Testimonials, featured story: one large quote with the company's wordmark above it and the person
// (initials, name, role) below, and beside it a card with what changed for them in big figures and a
// link to the full story. The wordmark is drawn in type, so swap it for your customer's logo. The names,
// quote and figures are sample content; replace them with your own.
import { ArrowRight } from "lucide-react"
const RESULTS = [
{ value: "58", unit: "%", label: "fewer invoices paid late in the first six months" },
{ value: "11", unit: "days", label: "on average to get paid, down from 26" },
]
export default function TestimonialsFeatured() {
return (
<section aria-labelledby="testimonials-featured-title" className="py-16 sm:py-24">
<h2 id="testimonials-featured-title" className="sr-only">
What Fernwood Studio says about Orbit
</h2>
<div className="mx-auto grid w-full max-w-[1200px] gap-10 px-5 sm:px-8 lg:grid-cols-[minmax(0,1.6fr)_minmax(0,1fr)] lg:items-center lg:gap-16">
<figure>
<p aria-hidden="true" className="font-serif text-[26px] leading-none tracking-[-0.01em] italic">
Fernwood<span className="text-[color:var(--dc-accent)]">.</span>
</p>
<blockquote className="dc-h mt-8 text-[26px] leading-[1.25] sm:text-[34px] lg:text-[38px]">
“We were losing a day a month to chasing invoices. Now the reminders go out on their own, in our voice, and late payments have nearly stopped.”
</blockquote>
<figcaption className="mt-10 flex items-center gap-4">
<span aria-hidden="true" className="grid size-12 shrink-0 place-items-center rounded-full bg-[color:var(--dc-highlight)] text-[15px] font-bold text-[color:var(--dc-highlight-fg)]">
ML
</span>
<span>
<span className="block text-[17px] font-semibold">Maya Lindqvist</span>
<span className="block text-muted-foreground">Founder, Fernwood Studio</span>
</span>
</figcaption>
</figure>
<div className="dc-card flex flex-col p-7 sm:p-8">
<p className="text-sm font-semibold text-[color:var(--dc-accent)]">With Orbit</p>
<dl className="mt-2 divide-y divide-border">
{RESULTS.map((r) => (
<div key={r.label} className="flex flex-col-reverse justify-end py-6">
<dt className="mt-3 text-[15px] leading-snug text-pretty text-muted-foreground">{r.label}</dt>
<dd className="dc-h dc-num text-[56px] leading-none sm:text-[64px]">
{r.value}
<span className={r.unit.length > 1 ? "ml-1.5 text-[0.42em]" : "text-[0.6em]"}>{r.unit}</span>
</dd>
</div>
))}
</dl>
<a
href="#fernwood-story"
className="mt-2 inline-flex items-center gap-1.5 self-start rounded-[var(--radius)] text-[15px] font-semibold underline-offset-4 outline-none hover:underline focus-visible:ring-3 focus-visible:ring-ring/50"
>
Read Fernwood's story <ArrowRight className="size-4" aria-hidden="true" />
</a>
</div>
</div>
</section>
)
}Wall of quotes
A masonry wall of twelve short quotes of different lengths under a heading and an overall rating.
npx shadcn@latest add https://dresscodeui.com/r/dresscode/testimonials-wall.json// Testimonials, wall of quotes: a heading with the overall rating, then twelve short quotes of different
// lengths in a masonry wall (CSS columns: one on phones, two on tablets, three on desktop). Every card
// keeps to one column. People are shown by their initials. The names and quotes are sample content;
// replace them with your own.
import { Star } from "lucide-react"
import { cn } from "@/lib/utils"
const QUOTES = [
{ quote: "Clients pay faster. That is the whole review.", name: "Ana Duarte", role: "Illustrator", initials: "AD" },
{
quote: "I used to spend Friday afternoons chasing invoices. Now Orbit does it in a tone I would actually use, and most clients pay before the second reminder.",
name: "Maya Lindqvist",
role: "Founder, Fernwood Studio",
initials: "ML",
lead: true,
},
{ quote: "The forecast tells me in the first week whether the month is fine. I did not know how much I needed that.", name: "Tom Okafor", role: "Partner, Kato & Lee", initials: "TO" },
{ quote: "Setting it up took one coffee.", name: "Priya Raman", role: "Freelance product designer", initials: "PR" },
{ quote: "We bill in four currencies. Orbit is the first tool that does not leave me doing sums at the end of the month.", name: "Jonas Weber", role: "Studio manager, Northlight", initials: "JW" },
{ quote: "My accountant asked what I had changed. The export, that is what.", name: "Lea Moreau", role: "Copywriter", initials: "LM" },
{
quote: "Retainers used to slip through the cracks every quarter. Recurring invoices start and stop on their own now, and the client portal means nobody emails me for a receipt any more.",
name: "Sam Achebe",
role: "Director, Juniper Labs",
initials: "SA",
lead: true,
},
{ quote: "Polite, persistent and never awkward. Like a good studio manager.", name: "Rosa Lind", role: "Owner, Ola Bakery", initials: "RL" },
{ quote: "I send the invoice from my phone in the car park after a shoot. It is paid before I am home.", name: "Kenji Ito", role: "Photographer", initials: "KI" },
{ quote: "We went from 26 days to get paid to 11. I checked the number twice.", name: "Hana Kim", role: "Finance, Halcyon", initials: "HK" },
{ quote: "The reminders sound like me on a good day.", name: "Dev Patel", role: "Motion designer", initials: "DP" },
{
quote: "Switching took an afternoon. Orbit kept our invoice numbers going from where the old tool left off, which our accountant cared about more than anything.",
name: "Claire Dubois",
role: "Operations, Brightedge",
initials: "CD",
lead: true,
},
]
export default function TestimonialsWall() {
return (
<section aria-labelledby="testimonials-wall-title" className="py-16 sm:py-24">
<div className="mx-auto w-full max-w-[1200px] px-5 sm:px-8">
<div className="mx-auto max-w-[640px] text-center">
<p className="text-sm font-semibold text-[color:var(--dc-accent)]">Customers</p>
<h2 id="testimonials-wall-title" className="dc-h mt-3 text-[32px] leading-[1.1] sm:text-[42px]">
Studios that stopped chasing invoices
</h2>
<p className="mt-4 text-[17px] leading-relaxed text-muted-foreground">
4,000 freelancers and small studios send their invoices with Orbit.
</p>
<p className="mt-6 inline-flex flex-wrap items-center justify-center gap-x-2 gap-y-1 text-[15px]">
<span className="flex gap-0.5 text-[color:var(--dc-accent)]" aria-hidden="true">
{Array.from({ length: 5 }, (_, i) => (
<Star key={i} className="size-4 fill-current" />
))}
</span>
<span>
<span className="font-semibold">4.9 out of 5</span> <span className="text-muted-foreground">from 1,200 reviews</span>
</span>
</p>
</div>
<ul className="mt-12 gap-4 sm:mt-14 sm:columns-2 lg:columns-3">
{QUOTES.map((q) => (
<li key={q.name} className="mb-4 break-inside-avoid">
<figure className="dc-card p-6">
<blockquote className={cn("leading-relaxed", q.lead ? "dc-h text-[19px] leading-snug text-pretty" : "text-[16px]")}>“{q.quote}”</blockquote>
<figcaption className="mt-5 flex items-center gap-3">
<span aria-hidden="true" className="inline-grid size-9 shrink-0 place-items-center rounded-full bg-[color:color-mix(in_oklab,var(--dc-accent)_14%,var(--card))] text-xs font-bold text-[color:var(--dc-accent)]">
{q.initials}
</span>
<span className="min-w-0">
<span className="block font-semibold">{q.name}</span>
<span className="block text-sm text-muted-foreground">{q.role}</span>
</span>
</figcaption>
</figure>
</li>
))}
</ul>
</div>
</section>
)
}Carousel
One quote at a time with previous and next buttons and position dots. No autoplay, arrow keys work, and each change is announced politely.
npx shadcn@latest add https://dresscodeui.com/r/dresscode/testimonials-carousel.json"use client"
// Testimonials, carousel: one quote at a time in a large card, with previous and next buttons and a dot
// for each quote between them. It never moves on its own. The buttons are real buttons (Tab, Enter and
// Space work), the left and right arrow keys step through the quotes while focus is on the controls, and
// the new quote is announced politely (aria-live). Every quote is laid out invisibly in the same spot, so
// the card keeps the height of the longest one and the controls never jump. The names and quotes are
// sample content; replace them with your own.
import { ChevronLeft, ChevronRight } from "lucide-react"
import { type KeyboardEvent, useId, useState } from "react"
import { Button } from "@/components/ui/button"
import { cn } from "@/lib/utils"
type Item = { quote: string; name: string; role: string; initials: string; company: string; mark: string }
const QUOTES: Item[] = [
{
quote: "I used to spend Friday afternoons chasing invoices. Now Orbit does it in a tone I would actually use, and clients pay faster.",
name: "Maya Lindqvist",
role: "Founder, Fernwood Studio",
initials: "ML",
company: "Fernwood",
mark: "font-serif italic",
},
{
quote: "We bill in four currencies. Orbit is the first tool that does not leave me doing sums at the end of the month.",
name: "Jonas Weber",
role: "Studio manager, Northlight",
initials: "JW",
company: "Northlight",
mark: "font-semibold tracking-[0.08em]",
},
{
quote: "The forecast alone is worth it. I know in the first week whether the month is fine, and so does my partner.",
name: "Tom Okafor",
role: "Partner, Kato & Lee",
initials: "TO",
company: "kato&lee",
mark: "font-bold lowercase",
},
{
quote: "Retainers used to slip through the cracks every quarter. Recurring invoices start and stop on their own now.",
name: "Sam Achebe",
role: "Director, Juniper Labs",
initials: "SA",
company: "Juniper Labs",
mark: "font-semibold",
},
{
quote: "We went from 26 days to get paid to 11. I checked the number twice before I told the team.",
name: "Hana Kim",
role: "Finance, Halcyon",
initials: "HK",
company: "Halcyon",
mark: "font-serif",
},
]
const KEYFRAMES = `@keyframes dc-quote-in { from { opacity: 0; transform: translateY(6px) } to { opacity: 1; transform: none } }`
function Slide({ q }: { q: Item }) {
return (
<>
<p aria-hidden="true" className={cn("text-[22px] leading-none text-muted-foreground", q.mark)}>
{q.company}
</p>
<blockquote className="dc-h mt-7 text-[24px] leading-[1.3] sm:text-[30px]">“{q.quote}”</blockquote>
<p className="mt-8 flex items-center justify-center gap-3 text-left">
<span aria-hidden="true" className="grid size-10 shrink-0 place-items-center rounded-full bg-[color:color-mix(in_oklab,var(--dc-accent)_14%,var(--card))] text-[13px] font-bold text-[color:var(--dc-accent)]">
{q.initials}
</span>
<span>
<span className="block font-semibold">{q.name}</span>
<span className="block text-sm text-muted-foreground">{q.role}</span>
</span>
</p>
</>
)
}
export default function TestimonialsCarousel() {
const id = useId()
const [index, setIndex] = useState(0)
const count = QUOTES.length
const go = (i: number) => setIndex((i + count) % count)
const current = QUOTES[index]
const onKeyDown = (e: KeyboardEvent<HTMLDivElement>) => {
if (e.key === "ArrowLeft") {
e.preventDefault()
go(index - 1)
} else if (e.key === "ArrowRight") {
e.preventDefault()
go(index + 1)
}
}
return (
<section aria-labelledby={`${id}-title`} className="py-16 sm:py-24">
<style href="dc-quote-in" precedence="default">
{KEYFRAMES}
</style>
<div className="mx-auto w-full max-w-[1200px] px-5 sm:px-8">
<div className="mx-auto max-w-[640px] text-center">
<p className="text-sm font-semibold text-[color:var(--dc-accent)]">Customers</p>
<h2 id={`${id}-title`} className="dc-h mt-3 text-[32px] leading-[1.1] sm:text-[42px]">
Heard from studios after their first month
</h2>
</div>
<div role="region" aria-roledescription="carousel" aria-label="Customer quotes" className="mx-auto mt-12 max-w-[920px] sm:mt-14">
<div className="dc-card grid px-6 py-10 text-center sm:px-14 sm:py-14">
{/* Every quote, invisible, in the same grid cell: the card is as tall as the longest. */}
{QUOTES.map((q) => (
<div key={q.name} aria-hidden="true" className="invisible [grid-area:1/1]">
<Slide q={q} />
</div>
))}
<div aria-live="polite" className="flex flex-col justify-center [grid-area:1/1]">
<figure
key={index}
role="group"
aria-roledescription="slide"
aria-label={`${index + 1} of ${count}`}
className="animate-[dc-quote-in_300ms_ease-out] motion-reduce:animate-none"
>
<Slide q={current} />
</figure>
</div>
</div>
<div onKeyDown={onKeyDown} className="mt-6 flex items-center justify-center gap-3">
<Button variant="outline" size="icon-lg" className="rounded-full" aria-label="Previous quote" onClick={() => go(index - 1)}>
<ChevronLeft aria-hidden="true" />
</Button>
<ul className="flex items-center">
{QUOTES.map((q, i) => (
<li key={q.name}>
<button
type="button"
aria-label={`Quote ${i + 1} of ${count}, from ${q.name}`}
aria-current={i === index ? "true" : undefined}
onClick={() => go(i)}
className="group grid size-7 place-items-center rounded-full outline-none focus-visible:ring-3 focus-visible:ring-ring/50"
>
<span
aria-hidden="true"
className={cn(
"block h-2 rounded-full transition-[width,background-color] duration-200 motion-reduce:transition-none",
i === index ? "w-5 bg-[color:var(--dc-accent)]" : "w-2 bg-[color:var(--input)] group-hover:bg-muted-foreground",
)}
/>
</button>
</li>
))}
</ul>
<Button variant="outline" size="icon-lg" className="rounded-full" aria-label="Next quote" onClick={() => go(index + 1)}>
<ChevronRight aria-hidden="true" />
</Button>
</div>
</div>
</div>
</section>
)
}