{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "hero-3",
  "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-3.tsx",
      "content": "\n\"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(\n  direction: 1 | -1,\n  id: string\n) {\n  const keyframes: string[] = []\n\n  for (let i = 0; i <= 24; i++) {\n    const progress = i / 24\n\n    /*\n     * Apparent image size.\n     *\n     * Very small at the center.\n     * Grows gradually as it moves toward the sides.\n     */\n    const scale =\n      (2.6 / 11.25) *\n      Math.pow(28 / 2.6, progress)\n\n    /*\n     * Convert apparent size into 3D depth.\n     *\n     * This is what creates the natural zoom\n     * through CSS perspective.\n     */\n    const z =\n      30 * (1 - 1 / scale)\n\n    /*\n     * Move from the center toward the side.\n     */\n    const rail =\n      44 -\n      (44 - -11) *\n      Math.pow(1 - progress, 3.3)\n\n    /*\n     * Gradually rotate the card.\n     */\n    const turn =\n      6 +\n      (28 - 6) * progress\n\n    keyframes.push(\n      `${(progress * 100).toFixed(2)}%{` +\n      `transform:translate3d(` +\n      `${(direction * rail).toFixed(2)}cqw,0,` +\n      `${z.toFixed(2)}cqw)` +\n      `rotateY(${(-direction * turn).toFixed(2)}deg)` +\n      `}`\n    )\n  }\n\n  const animationName =\n    direction === 1\n      ? `r-${id}`\n      : `l-${id}`\n\n  return `\n    @keyframes ${animationName} {\n      ${keyframes.join(\"\")}\n    }\n  `\n}\n\nexport function HeroSection() {\n  const id = React.useId().replace(\n    /[^a-zA-Z0-9]/g,\n    \"\"\n  )\n\n  /*\n   * Create BOTH directions.\n   *\n   * This was the issue in your previous code:\n   * createCSS() requires direction + id.\n   */\n  const css = React.useMemo(\n    () =>\n      `\n        ${createCSS(1, id)}\n        ${createCSS(-1, id)}\n      `,\n    [id]\n  )\n\n  return (\n    <section className=\"relative flex min-h-screen w-full flex-col justify-between overflow-hidden bg-background text-foreground\">\n\n      <div className=\"absolute w-full h-full z-0\">\n        <div\n          style={{\n            WebkitMaskImage: 'linear-gradient(to bottom, #000 0%, transparent 75%)',\n            backgroundImage: 'repeating-linear-gradient(0deg, transparent 0px, transparent 3px, var(--primary) 3px, var(--primary) 4px)',\n            height: '40%',\n            left: '0',\n            maskImage: 'linear-gradient(to bottom, #000 0%, transparent 75%)',\n            opacity: '0.5',\n            pointerEvents: 'none',\n            position: 'absolute',\n            top: '0',\n            width: '100%'\n          }}\n        />\n      </div>\n\n      <div className=\"pointer-events-none z-10 absolute left-5 top-5 z-30 h-12 w-12 border-l-8 border-t-8 border-primary\" />\n\n      <div className=\"pointer-events-none z-10 absolute right-5 top-5 z-30 h-12 w-12 border-r-8 border-t-8 border-primary\" />\n\n      <div className=\"pointer-events-none z-10 absolute bottom-5 left-5 z-30 h-12 w-12 border-b-8 border-l-8 border-primary\" />\n\n      <div className=\"pointer-events-none z-10 absolute bottom-5 right-5 z-30 h-12 w-12 border-b-8 border-r-8 border-primary\" />\n\n      <style>{css}</style>\n\n      {/* 3D Corridor */}\n\n      <div\n        className=\"relative flex min-h-screen w-full flex-col justify-between pt-[7vh] pb-[6vh] sm:pt-[9vh]\"\n        style={{\n          containerType: \"inline-size\",\n        }}\n      >\n        <div className=\"relative z-10 pt-10 flex flex-col items-center justify-center\">\n\n          <div className=\"select-none text-center\">\n\n            <h1 className=\"text-[10vw] font-black uppercase leading-[0.8] tracking-[-0.065em]  sm:text-[9vw] lg:text-[8vw]\">\n              DESIGNING\n            </h1>\n\n            <h1 className=\"text-[10vw] font-black uppercase leading-[0.8] tracking-[-0.065em] sm:text-[9vw] lg:text-[8vw]\">\n              WHAT&nbsp;&nbsp;MATTERS\n            </h1>\n\n          </div>\n\n          <p className=\"mt-10 max-w-[620px] px-6 text-center text-sm text-muted-foreground\">\n            DESIGNALI CREATES BRAND IDENTITIES, UI/UX DESIGN,\n            <br className=\"hidden sm:block\" />\n            AND PRODUCTION-READY WEBSITES FOR AMBITIOUS BRANDS.\n            <br className=\"hidden sm:block\" />\n            DESIGN SE CODE TAK — DESIGN AND CODE, BUILT TOGETHER.\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 work\n            </Button>\n\n            <Button variant=\"outline\" size=\"lg\" className=\"gap-2\">\n              Start a project\n            </Button>\n          </div>\n\n\n        </div>\n        <div\n          className=\"pointer-events-none lg:-mt-20 -mt-40 relative\"\n          style={{\n            perspective: \"30cqw\",\n            perspectiveOrigin: \"50% 50%\",\n          }}\n        >\n          <div\n            className=\"absolute inset-0\"\n            style={{\n              transformStyle: \"preserve-3d\",\n            }}\n          >\n\n            {[1, -1].map((direction) => {\n              const animationName =\n                direction === 1\n                  ? `r-${id}`\n                  : `l-${id}`\n\n              return Array.from(\n                { length: 10 },\n                (_, index) => {\n                  const image =\n                    images.length > 0\n                      ? images[index % images.length]\n                      : null\n\n                  return (\n                    <div\n                      key={`${animationName}-${index}`}\n                      className=\"absolute left-1/2 top-1/2 h-40 w-[20cqw] -ml-[10cqw] -mt-[5.625cqw] overflow-hidden rounded-sm border shadow-2xl/10\"\n                      style={{\n                        animation: `${animationName} 22s linear infinite`,\n                        animationDelay: `-${(index * 22) / 10}s`,\n                        backfaceVisibility: \"hidden\",\n                      }}\n                    >\n                      {image && (\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 object-cover\"\n                        />\n                      )}\n                    </div>\n                  )\n                }\n              )\n            })}\n          </div>\n        </div>\n\n        {/* Footer */}\n\n        <div className=\"relative z-20 flex w-full items-center justify-between px-10 text-xs tracking-wide text-foreground/60 sm:px-20\">\n\n          <span>\n            EN&nbsp;&nbsp;&nbsp;IN\n          </span>\n\n          <div className=\"hidden text-center sm:block\">\n\n            <div className=\"flex tracking-[1rem] pl-4 uppercase items-center\">\n               Scroll \n            </div>\n\n             \n\n          </div>\n\n          <span>\n            DESIGNALI.COM\n          </span>\n\n        </div>\n\n      </div>\n    </section>\n  )\n} \n",
      "type": "registry:block"
    }
  ],
  "meta": {
    "iframeHeight": "800px",
    "container": "",
    "mobile": "component"
  },
  "categories": [
    "hero"
  ]
}