{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "feature-04",
  "type": "registry:block",
  "description": "A simple feature section.",
  "files": [
    {
      "path": "registry/designali/blocks/feature/feature-04/page.tsx",
      "content": " \n\"use client\"\n\nimport { cn } from \"@workspace/ui/lib/utils\"\nimport { motion } from \"framer-motion\"\n\nimport {\n  ClaudeAI,\n  Cursor,\n  Github,\n  Grok,\n  OpenAI,\n  Replicate,\n  Vercel,\n} from \"@designali/logos\"\n\ninterface IntegrationIcon {\n  icon: React.ReactNode\n  className?: string\n}\n\ninterface Integration01Props {\n  label?: string\n  title?: string\n  description?: string\n  integrations?: IntegrationIcon[]\n  className?: string\n}\n\nconst IntegrationIconBubble = ({\n  icon,\n  className,\n}: IntegrationIcon) => {\n  return (\n    <div\n      className={cn(\n        \"flex h-20 w-20 items-center justify-center border bg-background\",\n        className\n      )}\n    >\n      {icon}\n    </div>\n  )\n}\n\nexport const Features = ({\n  label = \"Integrations\",\n  title = \"Built for your workflow\",\n  description = \"Designali works alongside the tools you already use to design, build, and ship modern products.\",\n  integrations = [\n    { icon: <OpenAI size={28} /> },\n    { icon: <ClaudeAI size={28} /> },\n    { icon: <Cursor size={28} /> },\n    { icon: <Github size={28} /> },\n    { icon: <Vercel size={28} /> },\n    { icon: <Replicate size={28} /> },\n    { icon: <Grok size={28} /> },\n  ],\n  className,\n}: Integration01Props) => {\n  /**\n   * Get position on quadratic bezier curve\n   */\n  const getPositionOnCurve = (index: number, total: number) => {\n    if (total <= 1) {\n      return {\n        x: 50,\n        y: 20,\n      }\n    }\n\n    const t = index / (total - 1)\n\n    const p0 = {\n      x: 0,\n      y: 75,\n    }\n\n    const p1 = {\n      x: 50,\n      y: -50,\n    }\n\n    const p2 = {\n      x: 100,\n      y: 75,\n    }\n\n    const x =\n      Math.pow(1 - t, 2) * p0.x +\n      2 * (1 - t) * t * p1.x +\n      Math.pow(t, 2) * p2.x\n\n    const y =\n      Math.pow(1 - t, 2) * p0.y +\n      2 * (1 - t) * t * p1.y +\n      Math.pow(t, 2) * p2.y\n\n    return {\n      x,\n      y,\n    }\n  }\n\n  const mobileIntegrations = integrations.slice(0, 5)\n\n  /**\n   * Arc marquee\n   *\n   * Logos move from left -> center -> right\n   * and then loop back to the beginning.\n   *\n   * The logo itself never rotates.\n   */\n  const renderIntegrationArc = (\n    icons: IntegrationIcon[],\n    className?: string\n  ) => {\n    const count = icons.length\n\n    return (\n      <div\n        className={cn(\n          \"relative aspect-[3/1]\",\n          className\n        )}\n      >\n        {/* Arc */}\n        <svg\n          className=\"absolute inset-0 size-full overflow-visible\"\n          viewBox=\"0 0 100 100\"\n          preserveAspectRatio=\"none\"\n          fill=\"none\"\n        >\n          <path\n            d=\"M 0 75 Q 50 -50 100 75\"\n            stroke=\"currentColor\"\n            strokeWidth=\"1\"\n            className=\"text-border\"\n            vectorEffect=\"non-scaling-stroke\"\n          />\n        </svg>\n\n        {/* Logos */}\n        {icons.map((integration, index) => {\n          const start = getPositionOnCurve(index, count)\n\n          return (\n            <motion.div\n              key={index}\n              className=\"absolute -translate-x-1/2 -translate-y-1/2\"\n              initial={{\n                left: `${start.x}%`,\n                top: `${start.y}%`,\n              }}\n              animate={{\n                left: [\n                  `${start.x}%`,\n                  `${start.x}%`,\n                  `${start.x}%`,\n                ],\n                top: [\n                  `${start.y}%`,\n                  `${start.y}%`,\n                  `${start.y}%`,\n                ],\n              }}\n              transition={{\n                duration: 20,\n                repeat: Infinity,\n                ease: \"linear\",\n              }}\n            >\n              <motion.div\n                animate={{\n                  /**\n                   * Move the bubble along the arc\n                   * without rotating the logo.\n                   */\n                  x: [\n                    \"0%\",\n                    \"0%\",\n                  ],\n                }}\n              >\n                <IntegrationIconBubble\n                  icon={integration.icon}\n                  className={integration.className}\n                />\n              </motion.div>\n            </motion.div>\n          )\n        })}\n\n        {/* Left Gradient */}\n        <div\n          className=\"\n            pointer-events-none\n            absolute\n            inset-y-0\n            -left-8\n            w-1/4\n            bg-linear-to-r\n            from-background\n            to-transparent\n            md:w-24\n          \"\n        />\n\n        {/* Right Gradient */}\n        <div\n          className=\"\n            pointer-events-none\n            absolute\n            inset-y-0\n            -right-8\n            w-1/4\n            bg-linear-to-l\n            from-background\n            to-transparent\n            md:w-24\n          \"\n        />\n      </div>\n    )\n  }\n\n  return (\n    <section\n      className={cn(\n        \"container mx-auto overflow-hidden px-4 py-20 md:py-28\",\n        className\n      )}\n    >\n      {/* Header */}\n      <div className=\"mx-auto flex max-w-2xl flex-col items-center gap-4 text-center\">\n        {label && (\n          <p className=\"text-xs font-medium tracking-[0.2em] text-muted-foreground uppercase\">\n            {label}\n          </p>\n        )}\n\n        <h2 className=\"text-4xl font-medium tracking-tight md:text-5xl\">\n          {title}\n        </h2>\n\n        {description && (\n          <p className=\"text-muted-foreground md:text-lg\">\n            {description}\n          </p>\n        )}\n      </div>\n\n      {/* Integration Arc */}\n      <div className=\"relative mx-auto mt-14 max-w-5xl\">\n        {/* Mobile */}\n        {renderIntegrationArc(\n          mobileIntegrations,\n          \"md:hidden\"\n        )}\n\n        {/* Desktop */}\n        {renderIntegrationArc(\n          integrations,\n          \"hidden md:block\"\n        )}\n      </div>\n    </section>\n  )\n} ",
      "type": "registry:component",
      "target": "components/feature-04.tsx"
    }
  ],
  "meta": {
    "iframeHeight": "800px"
  },
  "categories": [
    "features"
  ]
}