1 GitHub star = 1 new component.

Star the repo
Agency & Marketing

Agency Quotes

Client testimonials with a large lead quote, the measurable result each one produced, avatars and an aggregate rating.

testimonialsreviewsresultsagency
Live Preview

Client results

Donโ€™t take our word for it

4.9/5on Google and Clutch

6.2ร— ROAS

โ€œVolta treated our ad budget like their own money. We tripled revenue without tripling spend.โ€

Freja LundCo-founder, Nordlys

+64% direct revenue

โ€œFor the first time our own website is our best salesperson.โ€

Lucรญa RomeroCommercial director, Casa Alba

โˆ’48% CPA

โ€œThey speak finance and they speak CAC. Our sales team finally trusts marketing leads.โ€

Tomรกs FerreiraVP Growth, Fintrack

3.1ร— organic leads

โ€œWe hired two lawyers this year because of the leads coming from search.โ€

Elena PrietoManaging partner, Verde Legal

Usage

Copy and paste this code into your React component:

tsx
import { AgencyQuotes } from 'react-component-kit-ui/sections';

<AgencyQuotes quotes={[{ quote: 'They tripled our revenue.', name: 'Freja Lund', role: 'Co-founder', company: 'Nordlys', result: '6.2ร— ROAS' }]} />

Manual Installation

If you are not using the npm package, create a new file and paste the following code: src/components/sections/AgencyQuotes.tsx + AgencyQuotes.css:

AgencyQuotes.tsx
'use client';

import type { CSSProperties } from 'react';
import './AgencyQuotes.css';

/** class:list โ†’ className */
function cx(...args: unknown[]): string {
  const out: string[] = [];
  const walk = (v: unknown) => {
    if (!v) return;
    if (typeof v === 'string' || typeof v === 'number') out.push(String(v));
    else if (Array.isArray(v)) v.forEach(walk);
    else if (typeof v === 'object') for (const [k, on] of Object.entries(v as Record<string, unknown>)) if (on) out.push(k);
  };
  args.forEach(walk);
  return out.join(' ');
}

/** "a: b; --c: d" โ†’ style object */
function st(css: string | undefined): CSSProperties {
  const o: Record<string, string> = {};
  for (const decl of String(css ?? '').split(';')) {
    const i = decl.indexOf(':');
    if (i < 0) continue;
    const k = decl.slice(0, i).trim();
    if (k) o[k.startsWith('--') ? k : k.replace(/-([a-z])/g, (_, c) => c.toUpperCase())] = decl.slice(i + 1).trim();
  }
  return o as CSSProperties;
}

interface Quote { quote: string; name: string; role: string; company: string; result?: string }

/**
 * AgencyQuotes โ€” Client testimonials for agencies: one large lead quote plus a grid of smaller
 * ones, each with the measurable result it produced, initials avatar, name, role and company.
 *
 * @param {string} eyebrow - Small label. Default 'Client results'.
 * @param {string} title - Heading. Default 'Donโ€™t take our word for it'.
 * @param {Array<{quote: string, name: string, role: string, company: string, result?: string}>} quotes - Testimonials (first one is the lead).
 * @param {{value: string, label: string}} rating - Optional aggregate rating badge.
 * @param {string} className - Extra class.
 *
 * Accessibility: each testimonial is a <figure> with <blockquote> and <figcaption>; avatars are
 * decorative initials.
 */
export interface AgencyQuotesProps {
  eyebrow?: string;
  title?: string;
  quotes?: Quote[];
  rating?: { value: string; label: string };
  className?: string;
}

export function AgencyQuotes({
  eyebrow = 'Client results',
  title = 'Donโ€™t take our word for it',
  quotes = [
    { quote: 'Volta treated our ad budget like their own money. We tripled revenue without tripling spend.', name: 'Freja Lund', role: 'Co-founder', company: 'Nordlys', result: '6.2ร— ROAS' },
    { quote: 'For the first time our own website is our best salesperson.', name: 'Lucรญa Romero', role: 'Commercial director', company: 'Casa Alba', result: '+64% direct revenue' },
    { quote: 'They speak finance and they speak CAC. Our sales team finally trusts marketing leads.', name: 'Tomรกs Ferreira', role: 'VP Growth', company: 'Fintrack', result: 'โˆ’48% CPA' },
    { quote: 'We hired two lawyers this year because of the leads coming from search.', name: 'Elena Prieto', role: 'Managing partner', company: 'Verde Legal', result: '3.1ร— organic leads' },
  ],
  rating = { value: '4.9/5', label: 'on Google and Clutch' },
  className = '',
}: AgencyQuotesProps) {
  const hues = [80, 190, 280, 25, 330, 150];
  const initials = (n: string) => n.split(/\s+/).slice(0, 2).map((p) => p[0]).join('');
  const [lead, ...rest] = quotes;
  return (
    <>
      <div className="aq-cq" data-rk-018368="">
      <section className={cx(['aq', className])} data-rk-018368="">
        <header className="aq__head" data-rk-018368="">
          <div data-rk-018368="">
            {eyebrow && <p className="aq__eyebrow" data-rk-018368="">{eyebrow}</p>}
            <h2 className="aq__title" data-rk-018368="">{title}</h2>
          </div>
          {rating && <p className="aq__rating" data-rk-018368=""><strong data-rk-018368="">{rating.value}</strong><span aria-hidden="true" data-rk-018368="">โ˜…โ˜…โ˜…โ˜…โ˜…</span><small data-rk-018368="">{rating.label}</small></p>}
        </header>
        <div className="aq__grid" data-rk-018368="">
          {lead && (
            <figure className="aq__card aq__card--lead" style={st(`--lead-rows: ${Math.max(1, Math.min(3, rest.length))}`)} data-rk-018368="">
              {lead.result && <p className="aq__result" data-rk-018368="">{lead.result}</p>}
              <blockquote data-rk-018368=""><p data-rk-018368="">โ€œ{lead.quote}โ€</p></blockquote>
              <figcaption data-rk-018368="">
                <span className="aq__avatar" style={st(`--h: ${hues[0]}`)} aria-hidden="true" data-rk-018368="">{initials(lead.name)}</span>
                <span data-rk-018368=""><strong data-rk-018368="">{lead.name}</strong><small data-rk-018368="">{lead.role}, {lead.company}</small></span>
              </figcaption>
            </figure>
          )}
          {rest.map((q, i) => (
            <figure key={i} className="aq__card" data-rk-018368="">
              {q.result && <p className="aq__result" data-rk-018368="">{q.result}</p>}
              <blockquote data-rk-018368=""><p data-rk-018368="">โ€œ{q.quote}โ€</p></blockquote>
              <figcaption data-rk-018368="">
                <span className="aq__avatar" style={st(`--h: ${hues[(i + 1) % hues.length]}`)} aria-hidden="true" data-rk-018368="">{initials(q.name)}</span>
                <span data-rk-018368=""><strong data-rk-018368="">{q.name}</strong><small data-rk-018368="">{q.role}, {q.company}</small></span>
              </figcaption>
            </figure>
          ))}
        </div>
      </section>
      </div>
    </>
  );
}

export default AgencyQuotes;
AgencyQuotes.css
.aq-cq:where([data-rk-018368]) { container-type: inline-size; }
.aq:where([data-rk-018368]) { color: var(--c-text-1, #fff); }
.aq__head:where([data-rk-018368]) { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: var(--sp-4, 1rem); margin-bottom: clamp(1.5rem, 4cqi, 2.5rem); }
.aq__eyebrow:where([data-rk-018368]) { margin: 0 0 var(--sp-3, 0.75rem); font-size: 0.8rem; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: var(--c-text-2, #a3a3a3); }
.aq__title:where([data-rk-018368]) { margin: 0; font-size: clamp(2rem, 5cqi, 3.6rem); font-weight: 900; line-height: 1; letter-spacing: -0.05em; }
.aq__rating:where([data-rk-018368]) { display: grid; grid-template-columns: auto auto; align-items: center; gap: 2px 10px; margin: 0; }
.aq__rating:where([data-rk-018368]) strong:where([data-rk-018368]) { font-size: 1.8rem; font-weight: 900; letter-spacing: -0.04em; }
.aq__rating:where([data-rk-018368]) span:where([data-rk-018368]) { color: var(--agency-ink, var(--c-primary-light, #d4a017)); letter-spacing: 2px; }
.aq__rating:where([data-rk-018368]) small:where([data-rk-018368]) { grid-column: 1 / -1; color: var(--c-text-2, #a3a3a3); font-size: 0.82rem; }
.aq__grid:where([data-rk-018368]) { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--sp-4, 1rem); }
.aq__card:where([data-rk-018368]) { display: flex; flex-direction: column; gap: var(--sp-4, 1rem); margin: 0; padding: clamp(1.25rem, 3cqi, 1.75rem); border-radius: var(--r-xl, 24px); border: 1.5px solid var(--c-border, rgba(255, 255, 255, 0.12)); background: var(--c-bg-1, #0d0d0d); }
.aq__card--lead:where([data-rk-018368]) { grid-column: span 2; grid-row: span var(--lead-rows, 2); justify-content: space-between; background: var(--c-text-1, #fff); color: var(--c-bg, #050505); border-color: transparent; }
.aq__result:where([data-rk-018368]) { align-self: flex-start; margin: 0; padding: 0.3rem 0.75rem; border-radius: 999px; background: var(--agency-accent, var(--c-primary-light, #d4a017)); color: var(--c-on-primary, #050505); font-size: 0.85rem; font-weight: 900; }
.aq:where([data-rk-018368]) blockquote:where([data-rk-018368]) { margin: 0; }
.aq:where([data-rk-018368]) blockquote:where([data-rk-018368]) p:where([data-rk-018368]) { color: inherit; margin: 0; font-size: 1.05rem; line-height: 1.5; font-weight: 600; }
.aq__card--lead:where([data-rk-018368]) blockquote:where([data-rk-018368]) p:where([data-rk-018368]) { font-size: clamp(1.5rem, 3.6cqi, 2.6rem); font-weight: 800; line-height: 1.12; letter-spacing: -0.035em; text-wrap: balance; }
.aq:where([data-rk-018368]) figcaption:where([data-rk-018368]) { display: flex; align-items: center; gap: 12px; margin-top: auto; }
.aq:where([data-rk-018368]) figcaption:where([data-rk-018368]) strong:where([data-rk-018368]) { display: block; font-size: 0.95rem; }
.aq:where([data-rk-018368]) figcaption:where([data-rk-018368]) small:where([data-rk-018368]) { font-size: 0.82rem; opacity: 0.7; }
.aq__avatar:where([data-rk-018368]) { display: grid; place-items: center; width: 44px; height: 44px; flex-shrink: 0; border-radius: 50%; background: hsl(var(--h) 70% 60%); color: #0b0b0b; font-size: 0.8rem; font-weight: 900; }
@container (max-width: 900px) { .aq__grid:where([data-rk-018368]) { grid-template-columns: repeat(2, minmax(0, 1fr)); } .aq__card--lead:where([data-rk-018368]) { grid-row: auto; } }
@container (max-width: 560px) { .aq__grid:where([data-rk-018368]) { grid-template-columns: 1fr; } .aq__card--lead:where([data-rk-018368]) { grid-column: auto; } }