{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "arc-scroll-testimonials-demo",
  "type": "registry:block",
  "title": "Arc Scroll: Testimonials",
  "description": "Curved Scroll Carousel example, Testimonials: Wide quote cards with tilt turned off so the text stays level, plus page dots. A take on the carousel (slider) and scroll animation (on scroll). Fits testimonials, portfolio, features and team sections.",
  "author": "KeyframeUI <https://keyframeui.com>",
  "categories": [
    "testimonials",
    "portfolio",
    "features",
    "team",
    "carousel",
    "scroll-animation",
    "timeline",
    "scroll",
    "cards",
    "motion"
  ],
  "docs": "Live preview, examples and props: https://keyframeui.com/components/arc-scroll#arc-scroll-testimonials-demo",
  "registryDependencies": [
    "https://keyframeui.com/r/arc-scroll.json"
  ],
  "files": [
    {
      "path": "components/arc-scroll-testimonials-demo.tsx",
      "type": "registry:component",
      "content": "\"use client\";\n\nimport * as React from \"react\";\n\nimport { cn } from \"@/lib/utils\";\nimport { ArcScroll } from \"@/components/ui/arc-scroll\";\n\nconst testimonials = [\n  {\n    quote: \"Our Monday forecast meeting went from an hour to ten minutes. The numbers were already right.\",\n    name: \"Maya Okafor\",\n    role: \"Head of Revenue, Parcel\",\n    avatar: \"from-amber-300 to-rose-400\",\n  },\n  {\n    quote: \"Pipeline, billing and support in one window. Nobody on my team opens a spreadsheet anymore.\",\n    name: \"Daniel Reyes\",\n    role: \"Founder, Fieldnote\",\n    avatar: \"from-emerald-300 to-teal-500\",\n  },\n  {\n    quote: \"Reps keep their deals current now, because the forecast moves while they type.\",\n    name: \"Priya Shah\",\n    role: \"Sales Lead, Halcyon\",\n    avatar: \"from-sky-300 to-indigo-500\",\n  },\n  {\n    quote: \"It flagged the accounts that had gone quiet a month before they churned.\",\n    name: \"Tom Lindqvist\",\n    role: \"COO, Orbit\",\n    avatar: \"from-violet-300 to-fuchsia-500\",\n  },\n  {\n    quote: \"The board deck builds itself from the dashboard. That alone was worth the switch.\",\n    name: \"Aiko Tanaka\",\n    role: \"Finance Lead, Lumen\",\n    avatar: \"from-lime-300 to-emerald-500\",\n  },\n];\n\nfunction initials(name: string) {\n  return name\n    .split(\" \")\n    .map((part) => part[0])\n    .join(\"\");\n}\n\nexport function ArcScrollTestimonialsDemo() {\n  const scrollRef = React.useRef<HTMLDivElement>(null);\n  const [active, setActive] = React.useState(0);\n\n  return (\n    <div className=\"relative w-full overflow-hidden rounded-xl border border-zinc-200 bg-zinc-50 dark:border-zinc-800 dark:bg-zinc-950\">\n      <div ref={scrollRef} className=\"relative h-[var(--demo-height,32rem)] overflow-y-auto overscroll-contain\">\n        <ArcScroll\n          containerRef={scrollRef}\n          stageClassName=\"h-[var(--demo-height,32rem)]\"\n          spacing={30}\n          tilt={false}\n          scrollPerCard={300}\n          onActiveChange={setActive}\n          overlay={\n            <>\n              <p className=\"absolute inset-x-0 top-6 text-center font-mono text-xs uppercase tracking-widest text-zinc-500\">\n                Loved by revenue teams\n              </p>\n              <div className=\"absolute inset-x-0 bottom-8 flex justify-center gap-2\">\n                {testimonials.map((item, index) => (\n                  <span\n                    key={item.name}\n                    className={cn(\n                      \"h-1.5 rounded-full transition-all duration-300\",\n                      index === active\n                        ? \"w-5 bg-zinc-900 dark:bg-zinc-50\"\n                        : \"w-1.5 bg-zinc-300 dark:bg-zinc-700\",\n                    )}\n                  />\n                ))}\n              </div>\n            </>\n          }\n        >\n          {testimonials.map((item) => (\n            <figure\n              key={item.name}\n              className=\"flex h-52 w-64 flex-col justify-between rounded-2xl bg-white p-5 shadow-xl ring-1 shadow-zinc-900/10 ring-zinc-200 sm:w-72 dark:bg-zinc-900 dark:shadow-black/50 dark:ring-zinc-800\"\n            >\n              <blockquote className=\"text-[15px] leading-relaxed text-zinc-700 dark:text-zinc-300\">\n                “{item.quote}”\n              </blockquote>\n              <figcaption className=\"flex items-center gap-3\">\n                <span\n                  aria-hidden\n                  className={`flex size-9 items-center justify-center rounded-full bg-linear-to-br text-xs font-semibold text-white ${item.avatar}`}\n                >\n                  {initials(item.name)}\n                </span>\n                <span className=\"text-sm\">\n                  <span className=\"block font-medium text-zinc-900 dark:text-zinc-50\">\n                    {item.name}\n                  </span>\n                  <span className=\"block text-zinc-500\">{item.role}</span>\n                </span>\n              </figcaption>\n            </figure>\n          ))}\n        </ArcScroll>\n      </div>\n    </div>\n  );\n}\n"
    }
  ]
}