Page sections / Testimonials

Gradient Customer Story Strip

One expanded story card with a full vertical pink-to-orange gradient, white logo, large white quote and avatar byline with an underlined 'Read the story' link, flanked by four narrow collapsed solid-colour cards (navy, teal, black, blue) showing only a white logo.

Rebuilt from supabase.com in the Emerald Paper Precision style.

npx shadcn@latest add https://yoink-app.fly.dev/r/emerald-paper-precision/blocks/gradient-story-accordion.json

Looks exactly like supabase.com: brings its fonts and colours, namespaced so your own theme stays untouched.

Usage

Pass `stories` (name, blurb, quote, author, bg class, mark index) plus heading props. Hover or focus a card to expand it accordion-style while the others collapse to logo-only strips.

components/gradient-story-accordion.tsx
import { useState } from "react";

type Story = {
  name: string;
  blurb: string;
  quote: string;
  author: string;
  role: string;
  bg: string;
  mark: number;
};

const defaultStories: Story[] = [
  { name: "Kitefield", blurb: "Shipping thousands of customer portals with one shared data layer.", quote: "Kitefield is about giving every team a calm place to build. We replaced five tools and kept one source of truth.", author: "Mara Ellison, Head of Platform, Kitefield", role: "", bg: "bg-[linear-gradient(180deg,#fd49a8_0%,#fc1a58_25%,#fb4a27_55%,#ff9a1f_100%)]", mark: 0 },
  { name: "Northwind", blurb: "Realtime inventory for a global network of agents.", quote: "Northwind moved from prototype to production in a single quarter, with no new infrastructure team.", author: "Devon Park, CTO, Northwind", role: "", bg: "bg-[#0a0d1f]", mark: 1 },
  { name: "Altura", blurb: "Secure identity for a fast-growing field service fleet.", quote: "Altura relies on row-level rules to keep every customer's records private by default.", author: "Ines Moreau, Engineering Lead, Altura", role: "", bg: "bg-[#00202e]", mark: 2 },
  { name: "Lumen", blurb: "Event pipelines powering live product analytics.", quote: "Lumen handles billions of events a month and our team still treats the database as simple.", author: "Tomas Reyes, Data Engineer, Lumen", role: "", bg: "bg-black", mark: 3 },
  { name: "Ostrava", blurb: "A mobile-first booking backend for independent studios.", quote: "Ostrava launched on mobile in weeks because auth, storage and APIs just worked together.", author: "Priya Nair, Founder, Ostrava", role: "", bg: "bg-[linear-gradient(180deg,#3d44d6,#1f2fcf)]", mark: 4 },
];

function Mark({ i }: { i: number }) {
  const c = "h-8 w-8 fill-white";
  if (i === 0) return <svg viewBox="0 0 32 32" className={c} aria-hidden><path d="M4 8a4 4 0 0 1 4-4h6v10h10a4 4 0 0 1 4 4v10H8a4 4 0 0 1-4-4z" /></svg>;
  if (i === 1) return <svg viewBox="0 0 32 32" className={c} aria-hidden><circle cx="16" cy="16" r="12" /><circle cx="16" cy="16" r="5" fill="#0a0d1f" /></svg>;
  if (i === 2) return <svg viewBox="0 0 32 32" className={c} aria-hidden><path d="M16 3l13 24H3z" /></svg>;
  if (i === 3) return <svg viewBox="0 0 32 32" className={c} aria-hidden><rect x="3" y="3" width="26" height="26" rx="5" /><rect x="12" y="12" width="10" height="8" fill="#000" /></svg>;
  return <svg viewBox="0 0 32 32" className={c} aria-hidden><path d="M3 18L29 4 20 29l-4-9z" /></svg>;
}

export default function GradientCustomerStoryStrip({
  headingMuted = "How product teams everywhere",
  headingStrong = "are shipping with our platform",
  linkLabel = "More customer stories",
  stories = defaultStories,
}: { headingMuted?: string; headingStrong?: string; linkLabel?: string; stories?: Story[] }) {
  const [active, setActive] = useState(0);
  return (
    <section className="bg-canvas px-6 py-20 font-sans">
      <div className="mx-auto max-w-[1088px]">
        <div className="mb-12 flex items-end justify-between gap-4">
          <h2 className="font-display text-h2 tracking-tight">
            <span className="block text-ink-muted">{headingMuted}</span>
            <span className="block text-ink">{headingStrong}</span>
          </h2>
          <a href="#" className="shrink-0 text-label text-ink-soft underline transition-colors duration-hover-color hover:text-brand focus-visible:outline focus-visible:outline-2 focus-visible:outline-brand">{linkLabel}</a>
        </div>
        <div className="flex h-[480px] gap-2">
          {stories.map((s, i) => {
            const open = i === active;
            return (
              <article
                key={s.name}
                tabIndex={0}
                onMouseEnter={() => setActive(i)}
                onFocus={() => setActive(i)}
                aria-label={s.name}
                className={`relative overflow-hidden rounded-lg border border-hairline text-white transition-[flex-grow,width] duration-500 ease-[cubic-bezier(0.19,1,0.22,1)] focus-visible:outline focus-visible:outline-2 focus-visible:outline-brand ${s.bg} ${open ? "min-w-0 flex-[1_1_0%]" : "w-[76px] flex-none"}`}
              >
                <div className={`absolute left-0 top-0 flex h-full flex-col p-4 ${open ? "w-full min-w-[320px] sm:p-8" : "w-[76px] items-center"}`}>
                  <div className="mt-0.5 flex h-10 items-center"><Mark i={s.mark} /></div>
                  {open && (
                    <>
                      <h3 className="mt-8 text-label font-semibold">{s.name}</h3>
                      <p className="mt-1 text-caption text-white/70">{s.blurb}</p>
                      <div className="mt-auto">
                        <p className="animate-fade-in max-w-xl text-lead leading-snug">{s.quote}</p>
                        <div className="mt-5 flex items-center gap-3">
                          <span className="flex h-7 w-7 items-center justify-center rounded-pill bg-black/30 text-[10px] font-semibold">{s.author.split(" ").map((w) => w[0]).slice(0, 2).join("")}</span>
                          <span className="text-caption text-white/75">{s.author}</span>
                        </div>
                        <a href="#" className="mt-8 inline-block text-caption underline text-white/80 hover:text-white">Read the story →</a>
                      </div>
                    </>
                  )}
                </div>
              </article>
            );
          })}
        </div>
      </div>
    </section>
  );
}

Quality checks

Automated, in a real browser · 4d ago
—

More from Emerald Paper Precision

The whole style →

Hairline Site Header

Headers & nav bars

Framework Icon Tab Code Panel

Code blocks

Compute Pricing Calculator

Forms

Two-Tone Split Hero

Heroes

Hairline Bento Product Grid

Feature sections

Greyscale Logo Cloud Grid

Logo clouds