{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "hero-5",
  "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-5.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 horizontal-fan-${id} {\n      0% {\n        transform: rotateZ(0deg) rotateY(40deg) rotateX(0deg);\n      }\n\n      100% {\n        transform: rotateZ(0deg) rotateY(0deg) rotateX(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 = 14\n\n  return (\n    <section className=\"relative h-screen px-3 w-full overflow-hidden\">\n      {/* Background */}\n      <div className=\"absolute border-b h-20 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-20 w-full origin-top-left -rotate-45 outline-[0.5px] outline-offset-[-0.25px]\"\n              style={{\n                top: `${i * 16 - 120}px`,\n                left: \"-10%\",\n                width: \"400%\",\n              }}\n            /> \n          ))}\n\n        </div>\n      </div>\n\n      <div className=\"absolute border-t bottom-0 h-20 w-full overflow-hidden\">\n        <div className=\"absolute h-full w-full\">\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-20 w-full origin-top-left -rotate-45 outline-[0.5px] outline-offset-[-0.25px]\"\n              style={{\n                top: `${i * 16 - 120}px`,\n                left: \"-10%\",\n                width: \"400%\",\n              }}\n            /> \n            ))}\n          </div>\n        </div>\n      </div>\n\n      <div\n        className=\"absolute inset-0 z-0\"\n        style={{\n          background:\n            \"radial-gradient(ellipse at 100% 0%, var(--primary) 0%, var(--background) 35%)\",\n          opacity: 0.3,\n        }}\n      >\n        {/* Rays */}\n        <div\n          className=\"absolute inset-0 blur-md\"\n          style={{\n            WebkitMaskImage:\n              \"radial-gradient(ellipse 70% 70% at 100% 0%, rgba(0,0,0,0.4) 0%, rgba(0,0,0,0) 100%)\",\n            maskImage:\n              \"radial-gradient(ellipse 70% 70% at 100% 0%, rgba(0,0,0,0.4) 0%, rgba(0,0,0,0) 100%)\",\n            backgroundImage:\n              \"repeating-conic-gradient(from 0deg at 100% 0%, var(--primary) 0deg, var(--primary) 2deg, transparent 2deg, transparent 9deg)\",\n            pointerEvents: \"none\",\n          }}\n        />\n      </div>\n      <div className=\"relative mx-auto max-w-7xl border-x flex h-screen w-full flex-col justify-between\">\n        <style>{css}</style>\n\n        <div\n          className=\"relative flex h-full w-full items-center flex-col justify-between\" >\n\n          <div className=\"relative z-10 flex h-full w-full items-center px-8\">\n            {/* LEFT CONTENT */}\n            <div className=\"w-full mt-auto mb-20 md:mb-0 md:mt-0 max-w-sm lg:max-w-md\">\n              <div className=\"select-none text-left\">\n                <h1 className=\"text-[12vw] font-black uppercase leading-[0.8] tracking-[-0.065em] sm:text-[9vw] lg:text-[6.8vw]\">\n                  DESIGN SE CODE TAK\n                </h1> \n              </div>\n\n              <p className=\"mt-8 max-w-md text-left text-xs md:text-sm md:leading-6 text-muted-foreground\">\n                DESIGNALI DESIGNS AND BUILDS BRAND IDENTITIES, INTERFACES,\n                AND PRODUCTION-READY WEBSITES WITH NEXT.JS AND TAILWIND.\n                DESIGN AND CODE — CRAFTED TOGETHER BY ALI IMAM. \n              </p>\n\n              <div className=\"my-8 flex flex-wrap gap-3\">\n                <Button\n                  size=\"lg\"\n                  variant={\"outline\"}\n                >\n                  Explore work\n                </Button>\n\n                <Button\n\n                  size=\"lg\"\n\n                >\n                  Start a project\n                </Button>\n              </div>\n            </div>\n          </div>\n\n\n          <div\n            className=\"\n            pointer-events-none\n            absolute \n            z-0\n            top-1/3\n            md:top-1/2\n            md:left-[20%] \n            w-full\n            items-center\n            justify-center\n            flex\n          \"\n            style={{\n              perspective: \"100cqw\",\n              perspectiveOrigin: \"50% 50%\",\n            }}\n          >\n            <div\n              className=\"relative flex h-full w-full items-center justify-center\"\n              style={{\n                transformStyle: \"preserve-3d\",\n                animation: `horizontal-fan-${id} 60s 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-[14cqw] w-[24.5cqw] rounded border shadow-2xl/10 backdrop-blur-md\"\n                    style={{\n                      transformStyle: \"preserve-3d\",\n                      transformOrigin: \"center center\",\n                      transform: `\n                      rotateX(${angle}deg)\n                      translateY(12cqw)\n                    `,\n                    }}\n                  >\n                    <div className=\"relative h-full w-full overflow-hidden p-1\">\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 rounded object-contain opacity-90 select-none\"\n                      />\n                    </div>\n                  </div>\n                )\n              })}\n            </div>\n          </div>\n        </div>\n      </div>\n    </section>\n  )\n}",
      "type": "registry:block"
    }
  ],
  "meta": {
    "iframeHeight": "800px",
    "container": "",
    "mobile": "component"
  },
  "categories": [
    "hero"
  ]
}