{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "hero-4",
  "type": "registry:block",
  "description": "A split-screen hero section with branding, theme toggle, video, work, and contact cards.",
  "files": [
    {
      "path": "registry/designali/blocks/hero/hero-4.tsx",
      "content": "\"use client\"\n\nimport { Button } from \"@workspace/ui/components/button\"\nimport * as React from \"react\"\n\nconst images = [\n  { src: \"/img/hero-1.jpg\", alt: \"Designali hero template\" },\n  { src: \"/img/chat-1-light.jpg\", alt: \"Designali chat UI design\" },\n  { src: \"/img/hero-2.jpg\", alt: \"Designali landing page\" },\n  { src: \"/img/dashboard-1-dark.jpg\", alt: \"Designali dashboard UI\" },\n  { src: \"/img/login-1.jpg\", alt: \"Designali login screen\" },\n]\n\nfunction createCSS(id: string) {\n  return `\n    @keyframes orbit-${id} {\n      from {\n        transform: rotateY(0deg);\n      }\n\n      to {\n        transform: rotateY(-360deg);\n      }\n    }\n  `\n}\n\nexport function HeroSection() {\n  const id = React.useId().replace(/[^a-zA-Z0-9]/g, \"\")\n  const css = React.useMemo(() => createCSS(id), [id])\n\n  const totalCards = 11\n  const radiusCqw = 32\n\n  return (\n    <section className=\"relative h-screen w-full\">\n\n      <div className=\"relative border-x px-3 max-w-7xl mx-auto h-full w-full\">\n       \n        <div className=\"relative border-x flex h-full w-full flex-col justify-between overflow-hidden\">\n         \n          <style>{css}</style>\n          <div\n            className=\"relative flex w-full flex-col justify-between pt-[7vh] pb-[6vh] sm:pt-[9vh]\"\n            style={{ containerType: \"inline-size\" }}\n          >\n            {/* Hero Content */}\n            <div className=\"relative z-10 flex flex-col items-center justify-center pt-10\">\n              <div className=\"select-none text-center\">\n                <h1 className=\"text-4xl md:text-7xl font-medium tracking-tighter\">\n                  Design se code tak <br /> Designali\n                </h1>\n              </div>\n\n              <p className=\"mt-10 max-w-xl lowercase px-6 text-center text-sm leading-6 text-muted-foreground\">\n                WHERE THOUGHTFUL DESIGN MEETS PRODUCTION-READY CODE.\n                BRAND IDENTITY, UI/UX DESIGN, WEBSITES AND DIGITAL\n                PRODUCTS — DESIGNED AND BUILT BY DESIGNALI.\n              </p>\n\n              <div className=\"mt-8 flex flex-wrap items-center justify-center gap-3\">\n                <Button size=\"lg\" className=\"gap-2\">\n                  Explore our work\n                </Button>\n\n                <Button variant=\"outline\" size=\"lg\" className=\"gap-2\">\n                  Start a project\n                </Button>\n              </div>\n            </div>\n\n\n            <div\n              className=\"pointer-events-none relative my-auto mt-10 h-[20cqw] w-full\"\n              style={{\n                perspective: \"100cqw\",\n                perspectiveOrigin: \"50% 50%\",\n              }}\n            >\n              <div\n                className=\"absolute inset-0 flex items-center justify-center\"\n                style={{\n                  transformStyle: \"preserve-3d\",\n                  transform: \"rotateX(-18deg) rotateY(0deg)\",\n                  animation: `orbit-${id} 40s linear infinite`,\n                }}\n              >\n                {Array.from({ length: totalCards }, (_, index) => {\n                  const angle = (index / totalCards) * 360\n                  const image = images[index % images.length]\n\n                  return (\n                    <div\n                      key={index}\n                      className=\"absolute h-[10cqw] w-[17cqw] overflow-hidden backdrop-blur-md rounded border shadow-2xl\"\n                      style={{\n                        transformStyle: \"preserve-3d\",\n                        transform: `\n                      rotateY(${angle}deg)\n                      translateZ(${radiusCqw}cqw)\n                    `,\n                      }}\n                    >\n                      <img\n                        src={image?.src ?? \"\"}\n                        alt={image?.alt ?? \"\"}\n                        loading=\"lazy\"\n                        decoding=\"async\"\n                        draggable={false}\n                        className=\"h-full w-full select-none p-1 object-contain\"\n                      />\n                    </div>\n                  )\n                })}\n              </div>\n            </div>\n          </div>\n        </div>\n      </div>\n    </section>\n  )\n}",
      "type": "registry:block"
    }
  ],
  "meta": {
    "iframeHeight": "800px",
    "container": "",
    "mobile": "component"
  },
  "categories": [
    "hero"
  ]
}