{"$schema":"https://ui.shadcn.com/schema/registry-item.json","name":"hero-rotating","type":"registry:block","title":"Hero Rotating","description":"A headline whose key word takes turns — pure CSS cycle.","categories":["hero"],"dependencies":["lucide-react"],"registryDependencies":["button"],"css":{"@utility bg-grid-sm":{"background-image":"linear-gradient(to right, color-mix(in oklab, var(--foreground) 4%, transparent) 1px, transparent 1px), linear-gradient(to bottom, color-mix(in oklab, var(--foreground) 4%, transparent) 1px, transparent 1px)","background-size":"24px 24px"},"@utility animate-word-cycle":{"animation":"word-cycle var(--cycle-duration, 8s) infinite","animation-delay":"var(--cycle-delay, 0s)","animation-fill-mode":"both","@media (prefers-reduced-motion: reduce)":{"animation":"none","opacity":"0","&:first-child":{"opacity":"1","transform":"none"}}},"@keyframes word-cycle":{"0%, 3%":{"transform":"translateY(110%)","opacity":"0"},"7%, 24%":{"transform":"translateY(0)","opacity":"1"},"29%, 100%":{"transform":"translateY(-110%)","opacity":"0"}}},"files":[{"path":"registry/blocks/hero-rotating.tsx","content":"import Link from \"next/link\";\nimport { ArrowRight } from \"lucide-react\";\n\nimport { Button } from \"@/components/ui/button\";\n\nconst words = [\"faster\", \"cleaner\", \"tonight\", \"together\"];\n\nexport default function HeroRotating() {\n  return (\n    <section className=\"relative overflow-hidden bg-background\">\n      <div\n        aria-hidden\n        className=\"absolute inset-0 bg-grid-sm mask-[linear-gradient(to_bottom,black_30%,transparent_85%)]\"\n      />\n      <div className=\"relative mx-auto flex w-full max-w-3xl flex-col items-center px-6 py-24 text-center sm:py-32\">\n        <h1 className=\"text-4xl font-semibold tracking-tight text-balance sm:text-6xl\">\n          Ship your product{\" \"}\n          <span\n            className=\"relative inline-block h-[1.15em] w-[4.6em] overflow-hidden text-left align-bottom\"\n            aria-label=\"faster\"\n          >\n            {words.map((word, index) => (\n              <span\n                key={word}\n                aria-hidden={index > 0 ? true : undefined}\n                style={\n                  {\n                    \"--cycle-delay\": `${index * 2}s`,\n                  } as React.CSSProperties\n                }\n                className=\"absolute inset-0 underline decoration-border underline-offset-8 animate-word-cycle\"\n              >\n                {word}\n              </span>\n            ))}\n          </span>\n        </h1>\n        <p className=\"mt-6 max-w-xl text-lg text-pretty text-muted-foreground\">\n          The deployment platform that keeps up with every version of your\n          ambition — one push, live everywhere.\n        </p>\n        <div className=\"mt-8 flex flex-col items-center gap-3 sm:flex-row\">\n          <Button size=\"lg\" render={<Link href=\"#\" />}>\n            Start free\n            <ArrowRight data-icon=\"inline-end\" />\n          </Button>\n          <Button size=\"lg\" variant=\"outline\" render={<Link href=\"#\" />}>\n            Live demo\n          </Button>\n        </div>\n      </div>\n    </section>\n  );\n}\n","type":"registry:block","target":"components/blocks/hero/hero-rotating.tsx"}]}