{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "testimonial-section-2",
  "title": "Testimonial Section 2",
  "description": "Solace UI testimonial section block variation 2.",
  "dependencies": [
    "motion"
  ],
  "files": [
    {
      "path": "src/registry/blocks/testimonial-section/two/index.tsx",
      "content": "\"use client\";\r\n\r\nimport React, { useState } from \"react\";\r\nimport Image from \"next/image\";\r\nimport { motion, AnimatePresence } from \"motion/react\";\r\nimport { X } from \"lucide-react\";\r\n\r\ninterface Testimonial {\r\n  id: string;\r\n  name: string;\r\n  role: string;\r\n  image: string;\r\n  quote: string;\r\n}\r\n\r\nconst testimonials: Testimonial[] = [\r\n  {\r\n    id: \"1\",\r\n    name: \"Sarah Chen\",\r\n    role: \"CEO of DataFlow\",\r\n    image: \"https://assets.solaceui.com/solaceui-member-five.png\",\r\n    quote:\r\n      \"SolaceUI transformed our design workflow. What used to take weeks now takes days.\",\r\n  },\r\n  {\r\n    id: \"2\",\r\n    name: \"Marcus Rodriguez\",\r\n    role: \"Product Lead\",\r\n    image: \"https://assets.solaceui.com/solaceui-member-one.png\",\r\n    quote:\r\n      \"The best investment we've made for our frontend architecture in years.\",\r\n  },\r\n  {\r\n    id: \"3\",\r\n    name: \"Olivia Koe\",\r\n    role: \"Design Director\",\r\n    image: \"https://assets.solaceui.com/solaceui-member-six.png\",\r\n    quote:\r\n      \"Simply beautiful components that are easy to customize and integrate.\",\r\n  },\r\n  {\r\n    id: \"4\",\r\n    name: \"David Kim\",\r\n    role: \"Founder\",\r\n    image: \"https://assets.solaceui.com/solaceui-member-two.png\",\r\n    quote: \"Our development velocity has doubled since adopting SolaceUI.\",\r\n  },\r\n  {\r\n    id: \"5\",\r\n    name: \"Amara Okonkwo\",\r\n    role: \"CTO\",\r\n    image: \"https://assets.solaceui.com/solaceui-member-three.png\",\r\n    quote:\r\n      \"Accessibility and performance out of the box. Truly impressive work.\",\r\n  },\r\n  {\r\n    id: \"6\",\r\n    name: \"James Mitchell\",\r\n    role: \"Frontend Dev\",\r\n    image: \"https://assets.solaceui.com/solaceui-member-four.png\",\r\n    quote: \"The documentation is clear and the components just work. Love it.\",\r\n  },\r\n  {\r\n    id: \"7\",\r\n    name: \"Elena Rodriguez\",\r\n    role: \"Product Manager\",\r\n    image: \"https://assets.solaceui.com/solaceui-member-five.png\",\r\n    quote:\r\n      \"It looks premium and feels premium. Our users noticed the difference immediately.\",\r\n  },\r\n  {\r\n    id: \"8\",\r\n    name: \"Michael Chang\",\r\n    role: \"Tech Lead\",\r\n    image: \"https://assets.solaceui.com/solaceui-member-one.png\",\r\n    quote:\r\n      \"Clean abstractions and great TypeScript support. A joy to work with.\",\r\n  },\r\n  {\r\n    id: \"9\",\r\n    name: \"Sofia Weber\",\r\n    role: \"Designer\",\r\n    image: \"https://assets.solaceui.com/solaceui-member-six.png\",\r\n    quote:\r\n      \"Finally a library that respects design constraints while offering flexibility.\",\r\n  },\r\n];\r\n\r\nexport default function Testimonial2() {\r\n  const [selected, setSelected] = useState<Testimonial | null>(null);\r\n\r\n  // Split testimonials into 3 rows for visual variance\r\n  const row1 = testimonials.slice(0, 3);\r\n  const row2 = testimonials.slice(3, 6);\r\n  const row3 = testimonials.slice(6, 9);\r\n\r\n  return (\r\n    <div className=\"relative w-full py-20 overflow-hidden [--color-primary:#003AF9] bg-white dark:bg-background text-neutral-900 dark:text-white\">\r\n      <div className=\"max-w-7xl mx-auto px-4 text-center mb-12\">\r\n        <h2 className=\"text-3xl md:text-5xl font-bold tracking-tight\">\r\n          Trusted By The Best People\r\n        </h2>\r\n      </div>\r\n\r\n      {/* Main Container acting as the viewport for background and fades */}\r\n      <div className=\"relative w-full\">\r\n        {/* Shaded Background - Matches the height of this container exactly */}\r\n        <div className=\"absolute inset-0 z-0 opacity-10 bg-[repeating-linear-gradient(315deg,currentColor_0,currentColor_1px,transparent_0,transparent_50%)] bg-[length:10px_10px] border-y border-black dark:border-white pointer-events-none\"></div>\r\n\r\n        {/* Fades - Match the height of this container exactly */}\r\n        <div className=\"absolute left-0 top-0 bottom-0 w-40 bg-gradient-to-r from-white dark:from-black to-transparent z-20 pointer-events-none\"></div>\r\n        <div className=\"absolute right-0 top-0 bottom-0 w-40 bg-gradient-to-l from-white dark:from-black to-transparent z-20 pointer-events-none\"></div>\r\n\r\n        {/* Content Rows */}\r\n        <div className=\"relative z-10 flex flex-col gap-8 py-12 items-center justify-center overflow-hidden\">\r\n          {[row1, row2, row3].map((row, rowIndex) => (\r\n            <motion.div\r\n              key={rowIndex}\r\n              className=\"flex items-center gap-6 min-w-max\"\r\n              animate={{\r\n                x: rowIndex % 2 === 0 ? [\"0%\", \"-25%\"] : [\"-25%\", \"0%\"],\r\n              }}\r\n              transition={{\r\n                duration: 40,\r\n                repeat: Infinity,\r\n                ease: \"linear\",\r\n              }}\r\n            >\r\n              {[...row, ...row, ...row, ...row].map((testimonial, i) => (\r\n                <Capsule\r\n                  key={`${testimonial.id}-${i}`}\r\n                  testimonial={testimonial}\r\n                  onClick={() => setSelected(testimonial)}\r\n                />\r\n              ))}\r\n            </motion.div>\r\n          ))}\r\n        </div>\r\n      </div>\r\n\r\n      {/* Modal */}\r\n      <AnimatePresence>\r\n        {selected && (\r\n          <div className=\"fixed inset-0 z-50 flex items-center justify-center p-4\">\r\n            {/* Backdrop */}\r\n            <motion.div\r\n              initial={{ opacity: 0 }}\r\n              animate={{ opacity: 1 }}\r\n              exit={{ opacity: 0 }}\r\n              onClick={() => setSelected(null)}\r\n              className=\"absolute inset-0 bg-white/10 dark:bg-black/40 backdrop-blur-md\"\r\n            />\r\n\r\n            {/* Modal Card */}\r\n            <motion.div\r\n              initial={{ opacity: 0, scale: 0.9, y: 20 }}\r\n              animate={{ opacity: 1, scale: 1, y: 0 }}\r\n              exit={{\r\n                opacity: 0,\r\n                scale: 0.95,\r\n                y: 10,\r\n                transition: { duration: 0.15 },\r\n              }}\r\n              transition={{ duration: 0.2, ease: \"easeOut\" }}\r\n              className=\"relative w-full max-w-lg bg-black dark:bg-white text-white dark:text-black p-8 md:p-12 rounded-2xl border-2 border-(--color-primary) shadow-2xl z-50\"\r\n            >\r\n              <button\r\n                onClick={() => setSelected(null)}\r\n                className=\"absolute top-4 right-4 p-2 text-neutral-500 hover:text-white dark:hover:text-black transition-colors\"\r\n              >\r\n                <X size={20} />\r\n              </button>\r\n\r\n              <div className=\"flex flex-col items-center text-center\">\r\n                <p className=\"text-xl md:text-2xl font-medium leading-relaxed mb-8\">\r\n                  &ldquo;{selected.quote}&rdquo;\r\n                </p>\r\n\r\n                <div className=\"flex items-center gap-4\">\r\n                  <div className=\"relative w-12 h-12 rounded-full overflow-hidden border-2 border-(--color-primary)\">\r\n                    <Image\r\n                      src={selected.image}\r\n                      alt={selected.name}\r\n                      fill\r\n                      className=\"object-cover object-top\"\r\n                      unoptimized\r\n                    />\r\n                  </div>\r\n                  <div className=\"text-left\">\r\n                    <h4 className=\"font-bold text-base text-white dark:text-black\">\r\n                      {selected.name}\r\n                    </h4>\r\n                    <p className=\"text-sm text-neutral-400 dark:text-neutral-600\">\r\n                      {selected.role}\r\n                    </p>\r\n                  </div>\r\n                </div>\r\n              </div>\r\n            </motion.div>\r\n          </div>\r\n        )}\r\n      </AnimatePresence>\r\n    </div>\r\n  );\r\n}\r\n\r\nfunction Capsule({\r\n  testimonial,\r\n  onClick,\r\n}: {\r\n  testimonial: Testimonial;\r\n  onClick: () => void;\r\n}) {\r\n  return (\r\n    <motion.div\r\n      whileHover={{ scale: 1.05 }}\r\n      whileTap={{ scale: 0.95 }}\r\n      onClick={onClick}\r\n      className=\"group flex items-center gap-4 p-2 pr-8 rounded-full bg-white dark:bg-black/90 border border-neutral-300 hover:border-(--color-primary) hover:border-dashed dark:hover:border-(--color-primary) dark:border-neutral-800 cursor-pointer transition-all shadow-sm hover:shadow-md group\"\r\n    >\r\n      <div className=\"relative w-14 h-14 rounded-full overflow-hidden border border-black group-hover:border-(--color-primary) dark:group-hover:border-(--color-primary)  dark:border-white  transition-colors\">\r\n        <Image\r\n          src={testimonial.image}\r\n          alt={testimonial.name}\r\n          fill\r\n          className=\"object-cover object-top\"\r\n          sizes=\"48px\"\r\n          unoptimized\r\n        />\r\n      </div>\r\n      <div className=\"flex flex-col items-start leading-tight\">\r\n        <span className=\"text-sm font-bold text-neutral-900 dark:text-white\">\r\n          {testimonial.name}\r\n        </span>\r\n        <span className=\"text-xs text-neutral-500 dark:text-neutral-400\">\r\n          {testimonial.role}\r\n        </span>\r\n      </div>\r\n    </motion.div>\r\n  );\r\n}\r\n",
      "type": "registry:component",
      "target": "components/testimonial-section-2.tsx"
    }
  ],
  "type": "registry:block"
}