{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "testimonial-01",
  "type": "registry:block",
  "description": "A simple pricing section.",
  "files": [
    {
      "path": "registry/designali/blocks/testimonials/testimonial-01.tsx",
      "content": "\"use client\"\n\nimport { useEffect, useState } from \"react\"\nimport {\n  ChevronLeft,\n  ChevronRight,\n} from \"@designali/icons\"\n\nimport { Button } from \"@workspace/ui/components/button\"\n\nexport function TestimonialsSection() {\n  const [activeTestimonial, setActiveTestimonial] = useState(0)\n  const [isTransitioning, setIsTransitioning] = useState(false)\n\n  const testimonials = [\n    {\n      quote:\n        \"Designali took us from a rough idea to a live Next.js site. Every interaction now feels intentional and beautifully crafted.\",\n      name: \"Aarav\",\n      company: \"Founder, Designali client\",\n      image: \"/img/ask/ask1.jpg\",\n    },\n    {\n      quote:\n        \"Ali designed and coded our platform himself. What we approved in Figma is exactly what shipped, down to the last pixel.\",\n      name: \"Emily\",\n      company: \"Head of Product, Designali client\",\n      image: \"/img/ask/ask2.jpg\",\n    },\n    {\n      quote:\n        \"From brand identity to UI design and development, Designali handled it all. design se code tak, exactly as promised.\",\n      name: \"Daniel\",\n      company: \"CEO, Designali client\",\n      image: \"/img/ask/ask3.jpg\",\n    },\n  ]\n\n  const currentTestimonial = testimonials[activeTestimonial]\n\n  useEffect(() => {\n    const interval = setInterval(() => {\n      setIsTransitioning(true)\n\n      setTimeout(() => {\n        setActiveTestimonial(\n          (prev) => (prev + 1) % testimonials.length\n        )\n\n        setTimeout(() => {\n          setIsTransitioning(false)\n        }, 100)\n      }, 300)\n    }, 12000)\n\n    return () => clearInterval(interval)\n  }, [testimonials.length])\n\n  const handleNavigationClick = (index: number) => {\n    setIsTransitioning(true)\n\n    setTimeout(() => {\n      setActiveTestimonial(index)\n\n      setTimeout(() => {\n        setIsTransitioning(false)\n      }, 100)\n    }, 300)\n  }\n\n  if (!currentTestimonial) {\n    return null\n  }\n\n  return (\n    <div className=\"flex w-full h-screen flex-col items-center justify-center\">\n      <div className=\"bg-background flex items-center justify-start self-stretch overflow-hidden border border-t-0 border-r-0 border-b border-l-0 px-2\">\n        <div className=\"flex flex-1 flex-col items-end justify-center gap-6 py-16 md:flex-row md:py-17\">\n          <div className=\"flex flex-col items-start justify-center gap-4 self-stretch px-3 md:flex-row md:px-12\">\n            <img\n              className=\"h-24 w-24 rounded-md object-cover transition-all duration-700 ease-in-out md:h-50 md:w-50\"\n              style={{\n                opacity: isTransitioning ? 0.6 : 1,\n                transform: isTransitioning ? \"scale(0.95)\" : \"scale(1)\",\n                transition:\n                  \"opacity 0.7s ease-in-out, transform 0.7s ease-in-out\",\n              }}\n              src={currentTestimonial.image || \"/placeholder.svg\"}\n              alt={currentTestimonial.name}\n            />\n\n            <div className=\"flex flex-1 flex-col items-start justify-start gap-3 overflow-hidden md:px-6\">\n              <div\n                className=\"line-clamp-5 flex h-40 flex-col justify-start self-stretch overflow-hidden text-2xl font-medium tracking-tight transition-all duration-700 ease-in-out md:text-4xl\"\n                style={{\n                  filter: isTransitioning ? \"blur(4px)\" : \"blur(0px)\",\n                  transition: \"filter 0.7s ease-in-out\",\n                }}\n              >\n                {currentTestimonial.quote}\n              </div>\n\n              <div\n                className=\"flex items-start justify-start gap-1 self-stretch transition-all duration-700 ease-in-out\"\n                style={{\n                  filter: isTransitioning ? \"blur(4px)\" : \"blur(0px)\",\n                  transition: \"filter 0.7s ease-in-out\",\n                }}\n              >\n                <div className=\"flex flex-col justify-center self-stretch text-lg font-medium\">\n                  {currentTestimonial.name} -\n                </div>\n\n                <div className=\"text-muted-foreground flex flex-col justify-center self-stretch text-lg font-medium\">\n                  {currentTestimonial.company}\n                </div>\n              </div>\n            </div>\n          </div>\n\n          <div className=\"flex items-start justify-start gap-3 pr-6\">\n            <Button\n              size=\"icon\"\n              variant=\"outline\"\n              onClick={() =>\n                handleNavigationClick(\n                  (activeTestimonial - 1 + testimonials.length) %\n                    testimonials.length\n                )\n              }\n            >\n              <ChevronLeft />\n            </Button>\n\n            <Button\n              size=\"icon\"\n              variant=\"outline\"\n              onClick={() =>\n                handleNavigationClick(\n                  (activeTestimonial + 1) % testimonials.length\n                )\n              }\n            >\n              <ChevronRight />\n            </Button>\n          </div>\n        </div>\n      </div>\n\n      <div className=\"relative h-12 self-stretch overflow-hidden border-b\">\n        <div className=\"absolute inset-0 h-full w-full overflow-hidden\">\n          <div className=\"relative h-full w-full\">\n            {Array.from({ length: 300 }).map((_, i) => (\n              <div\n                key={i}\n                className=\"outline-primary/40 absolute h-4 w-full origin-top-left -rotate-45 outline-[0.5px] outline-offset-[-0.25px]\"\n                style={{\n                  top: `${i * 16 - 120}px`,\n                  left: \"-100%\",\n                  width: \"300%\",\n                }}\n              />\n            ))}\n          </div>\n        </div>\n      </div>\n    </div>\n  )\n}",
      "type": "registry:component",
      "target": "components/testimonial-01.tsx"
    }
  ],
  "meta": {
    "iframeHeight": "500px"
  },
  "categories": [
    "testimonials"
  ]
}