{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "gallery-02",
  "type": "registry:block",
  "description": "A simple gallery section.",
  "files": [
    {
      "path": "registry/designali/blocks/gallery/gallery-02.tsx",
      "content": " \n\"use client\"\n\nimport * as React from \"react\"\nimport { motion } from \"framer-motion\"\n\nconst images = [\n  \"/images/templates/portfolio-simple.jpg\",\n  \"/images/templates/design-agency.jpg\",\n  \"/images/templates/resort.jpg\",\n  \"/images/templates/ai.jpg\",\n  \"/images/templates/vercel.jpg\",\n  \"/images/templates/aliimam-comp.jpg\",\n  \"/images/templates/dalim-agency-old.jpg\",\n  \"/images/templates/dalim-ui-old.jpg\",\n  \"/images/templates/dalim-works-old.jpg\",\n]\n\nexport function HeroSection() {\n  const total = images.length\n  const centerIndex = (total - 1) / 2\n\n  return (\n    <section className=\"relative flex h-screen w-full items-center justify-center\">\n\n      <div className=\"flex flex-col  h-screen items-center justify-center\">\n\n        {/* Heading */}\n        <motion.h1\n          className=\"relative pt-40 z-50 max-w-2xl text-center text-4xl font-normal leading-[1.15] tracking-tight md:text-6xl\"\n          initial={{ opacity: 0, y: 20 }}\n          animate={{ opacity: 1, y: 0 }}\n          transition={{\n            duration: 0.7,\n            ease: \"easeOut\",\n          }}\n        >\n          A place to <br /> display  <br />\n          <span className=\"font-semibold\">designali work.</span>\n        </motion.h1>\n\n        {/* Circular Gallery */}\n        <div className=\"absolute left-1/2 bottom-1/3 h-full w-full -translate-x-1/2\">\n\n          {images.map((src, index) => {\n            const offset = index - centerIndex\n\n            /*\n             * Horizontal position\n             */\n            const x = offset * 90\n\n            /*\n             * Circle / arc calculation.\n             *\n             * Center images stay higher.\n             * Outer images move downward.\n             */\n            const radius = 650\n\n            const y =\n              Math.sqrt(\n                Math.max(0, radius * radius - x * x)\n              ) - radius\n\n            /*\n             * Flip the curve downward\n             */\n            const arcY = -y\n\n            /*\n             * Rotate according to position on arc\n             */\n            const rotate =\n              Math.asin(\n                Math.min(1, Math.max(-1, x / radius))\n              ) *\n              (180 / Math.PI)\n\n            return (\n              <motion.div\n                key={index}\n                className=\"absolute left-1/2 top-1/2\"\n                style={{\n                  zIndex: index,\n                }}\n                initial={{\n                  x: \"-50%\",\n                  y: \"-50%\",\n                  opacity: 0,\n                  scale: 0.75,\n                  rotate: rotate - 10,\n                }}\n                animate={{\n                  x: `calc(-50% + ${x}px)`,\n                  y: `calc(-50% + ${arcY}px)`,\n                  opacity: 1,\n                  scale: 1,\n                  rotate,\n                }}\n                transition={{\n                  delay: 0.15 + index * 0.08,\n                  duration: 0.9,\n                  ease: [0.22, 1, 0.36, 1],\n                }}\n                whileHover={{\n                  y: `calc(-50% + ${arcY - 20}px)`,\n                  scale: 1.08,\n                  rotate: rotate * 0.6,\n                  zIndex: 200,\n                  transition: {\n                    duration: 0.25,\n                  },\n                }}\n              >\n                <div className=\"h-36 w-48 overflow-hidden border-4 rounded-xl border-foreground bg-background shadow-xl md:h-40 md:w-56\">\n                  <img\n                    src={src}\n                    alt={`Designali project ${index + 1}`}\n                    className=\"h-full w-full select-none object-cover\"\n                    draggable={false}\n                  />\n                </div>\n              </motion.div>\n            )\n          })}\n        </div>\n\n        {/* Description */}\n        <motion.p\n          className=\"relative z-50 px-10 mt-14 max-w-60 md:max-w-md text-center text-xs leading-relaxed text-muted-foreground sm:text-sm\"\n          initial={{ opacity: 0, y: 15 }}\n          animate={{ opacity: 1, y: 0 }}\n          transition={{\n            delay: 1.2,\n            duration: 0.6,\n          }}\n        >\n          Templates, websites and brand projects designed and built by Ali\n          Imam at Designali. Design se code tak.\n        </motion.p>\n\n        {/* Buttons */}\n        <motion.div\n          className=\"relative z-50 mt-7 flex items-center gap-4\"\n          initial={{ opacity: 0, y: 15 }}\n          animate={{ opacity: 1, y: 0 }}\n          transition={{\n            delay: 1.35,\n            duration: 0.6,\n          }}\n        >\n          <button\n            type=\"button\"\n            className=\"rounded-full bg-foreground px-6 py-3 text-xs font-medium text-background shadow-md transition-all hover:bg-foreground\"\n          >\n            Explore Templates\n          </button>\n\n          <button\n            type=\"button\"\n            className=\"text-xs font-medium text-foreground underline underline-offset-4 transition-colors hover:text-foreground\"\n          >\n            View work\n          </button>\n        </motion.div>\n      </div>\n    </section>\n  )\n} ",
      "type": "registry:component",
      "target": "components/gallery-02.tsx"
    }
  ],
  "meta": {
    "iframeHeight": "800px"
  },
  "categories": [
    "gallery"
  ]
}