{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "testimonial-wall",
  "title": "Testimonial Wall",
  "description": "A masonry wall of testimonial cards with a printed paper grain.",
  "dependencies": [
    "@paper-design/shaders-react"
  ],
  "files": [
    {
      "path": "registry/shaders/testimonial-wall/testimonial-wall.tsx",
      "content": "import { PaperTexture } from \"@paper-design/shaders-react\"\n\nimport { cn } from \"@/lib/utils\"\n\ntype Testimonial = {\n  quote: string\n  name: string\n  role: string\n}\n\nconst DEFAULT_TESTIMONIALS: Testimonial[] = [\n  {\n    quote:\n      \"We replaced three landing page videos with a single shader. Pages got lighter and somehow feel more alive.\",\n    name: \"Maya Lindqvist\",\n    role: \"Design Lead, Northwind\",\n  },\n  {\n    quote: \"Copy, paste, ship. That's the whole review.\",\n    name: \"Daniel Okafor\",\n    role: \"Frontend Engineer\",\n  },\n  {\n    quote:\n      \"Our hero section finally has some texture. Customers keep asking how we made it, and the honest answer is: we didn't, really.\",\n    name: \"Priya Raman\",\n    role: \"Founder, Loomly\",\n  },\n  {\n    quote:\n      \"The components read like code I'd write myself. No magic, just props.\",\n    name: \"Tomás Herrera\",\n    role: \"Staff Engineer, Fieldnote\",\n  },\n  {\n    quote:\n      \"I rebranded our marketing site in an afternoon by changing four color props.\",\n    name: \"Hana Sato\",\n    role: \"Brand Designer\",\n  },\n  {\n    quote:\n      \"Shaders always felt like a rabbit hole. These are the first ones I've used without opening a GLSL file.\",\n    name: \"Lukas Brandt\",\n    role: \"Indie Developer\",\n  },\n  {\n    quote: \"Tasteful by default. Hard to make ugly, even when we tried.\",\n    name: \"Amara Nwosu\",\n    role: \"Product Designer, Kite\",\n  },\n  {\n    quote:\n      \"Performance was my worry. It renders on the GPU and our Lighthouse score didn't move.\",\n    name: \"Ethan Cole\",\n    role: \"Web Performance Engineer\",\n  },\n  {\n    quote:\n      \"The paper grain makes our quotes look like they were actually printed.\",\n    name: \"Sofia Marchetti\",\n    role: \"Editor, Folio\",\n  },\n]\n\ntype TestimonialWallProps = React.ComponentProps<\"section\"> & {\n  eyebrow?: string\n  title?: string\n  description?: string\n  testimonials?: Testimonial[]\n  /** Background color of the wall. */\n  colorBack?: string\n  /** Color of the cards. */\n  colorCard?: string\n  /** Text color. */\n  colorInk?: string\n  /** Strength of the paper grain, 0 to 1. */\n  grain?: number\n}\n\nfunction TestimonialWall({\n  eyebrow = \"Wall of love\",\n  title = \"Loved by people who ship\",\n  description = \"Real words from teams using shaders on their sites. Every card carries a little paper grain.\",\n  testimonials = DEFAULT_TESTIMONIALS,\n  colorBack = \"#ebe6d9\",\n  colorCard = \"#f8f5ee\",\n  colorInk = \"#2b2a26\",\n  grain = 1,\n  className,\n  style,\n  ...props\n}: TestimonialWallProps) {\n  return (\n    <section\n      data-slot=\"testimonial-wall\"\n      className={cn(\n        \"relative isolate flex w-full flex-col gap-12 overflow-hidden px-6 py-20 md:px-12 lg:px-16\",\n        className\n      )}\n      style={{ backgroundColor: colorBack, color: colorInk, ...style }}\n      {...props}\n    >\n      <div className=\"flex max-w-2xl flex-col gap-4\">\n        <span className=\"font-mono text-[11px] tracking-widest uppercase opacity-60\">\n          {eyebrow}\n        </span>\n        <h2 className=\"font-heading text-3xl leading-tight tracking-tight text-balance sm:text-5xl\">\n          {title}\n        </h2>\n        <p className=\"max-w-md text-base text-pretty opacity-70\">\n          {description}\n        </p>\n      </div>\n      <div className=\"columns-1 gap-4 sm:columns-2 lg:columns-3\">\n        {testimonials.map((testimonial) => (\n          <figure\n            key={testimonial.name}\n            className=\"mb-4 flex break-inside-avoid flex-col gap-6 border border-current/10 p-6 shadow-[0_1px_2px_rgb(0_0_0/0.06)]\"\n            style={{ backgroundColor: colorCard }}\n          >\n            <blockquote className=\"font-heading text-lg leading-snug text-pretty\">\n              “{testimonial.quote}”\n            </blockquote>\n            <figcaption className=\"flex items-center gap-3\">\n              <span\n                aria-hidden\n                className=\"flex size-9 shrink-0 items-center justify-center rounded-full font-mono text-[11px] uppercase\"\n                style={{ backgroundColor: colorInk, color: colorCard }}\n              >\n                {getInitials(testimonial.name)}\n              </span>\n              <span className=\"flex flex-col\">\n                <span className=\"text-sm font-medium\">{testimonial.name}</span>\n                <span className=\"text-xs opacity-60\">{testimonial.role}</span>\n              </span>\n            </figcaption>\n          </figure>\n        ))}\n      </div>\n      {/*\n        A single grain layer multiplied over the whole wall, so every card gets\n        texture from one canvas no matter how many testimonials there are.\n      */}\n      <PaperTexture\n        aria-hidden\n        className=\"pointer-events-none absolute inset-0 size-full mix-blend-multiply\"\n        style={{ opacity: grain }}\n        colorBack=\"#ffffff\"\n        colorPaper=\"#ffffff\"\n        colorShadow=\"#d8d2c4\"\n        fit=\"cover\"\n        scale={1}\n        blending={1}\n        distortion={0}\n        angle={0}\n        seed={455}\n        roughness={0.5}\n        roughnessSize={0.3}\n        roughnessRows={0}\n        fiber={0.5}\n        fiberSize={0.4}\n        folds={0}\n        wrinkles={0}\n        crumples={0}\n        drops={0}\n      />\n    </section>\n  )\n}\n\nfunction getInitials(name: string) {\n  return name\n    .split(\" \")\n    .map((part) => part[0])\n    .slice(0, 2)\n    .join(\"\")\n}\n\nexport { TestimonialWall, type Testimonial }\n",
      "type": "registry:component"
    }
  ],
  "categories": [
    "sections",
    "testimonials"
  ],
  "type": "registry:block"
}