{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "hero-01",
  "title": "Hero 01",
  "description": "An animated hero with availability, service CTAs, and a technology carousel.",
  "dependencies": [
    "motion",
    "react-fast-marquee"
  ],
  "files": [
    {
      "path": "src/registry/blocks/hero-01/hero-01.tsx",
      "content": "\"use client\";\n\nimport { ArrowRight } from \"lucide-react\";\nimport {\n\tMotionConfig,\n\tmotion,\n\tuseReducedMotion,\n\ttype Variants,\n} from \"motion/react\";\nimport Image from \"next/image\";\nimport Link from \"next/link\";\nimport Marquee from \"react-fast-marquee\";\n\nconst ICON_CDN = \"https://cdn.tentui.com/images/tech-stack-icons\";\n\nconst EASE_OUT = [0.23, 1, 0.32, 1] as const;\n\nconst TECH_STACK: {\n\tkey: string;\n\ttitle: string;\n\ttheme?: boolean;\n}[] = [\n\t{ key: \"js\", title: \"JavaScript\" },\n\t{ key: \"ts\", title: \"TypeScript\" },\n\t{ key: \"python\", title: \"Python\" },\n\t{ key: \"next-js\", title: \"Next.js\", theme: true },\n\t{ key: \"express\", title: \"Express\", theme: true },\n\t{ key: \"redis\", title: \"Redis\" },\n\t{ key: \"sqlite\", title: \"SQLite\" },\n\t{ key: \"node-js\", title: \"Node.js\" },\n\t{ key: \"react\", title: \"React\" },\n\t{ key: \"vue\", title: \"Vue.js\" },\n\t{ key: \"shadcn-ui\", title: \"shadcn/ui\", theme: true },\n\t{ key: \"tailwind\", title: \"Tailwind CSS\" },\n\t{ key: \"motion\", title: \"Motion\" },\n\t{ key: \"git\", title: \"Git\" },\n\t{ key: \"postman\", title: \"Postman\" },\n\t{ key: \"vite\", title: \"Vite\" },\n\t{ key: \"aws\", title: \"AWS\", theme: true },\n\t{ key: \"cfw\", title: \"Cloudflare Worker\" },\n\t{ key: \"cf\", title: \"Cloudflare\" },\n];\n\nconst stagger = {\n\thidden: {},\n\tvisible: {\n\t\ttransition: {\n\t\t\tstaggerChildren: 0.05,\n\t\t},\n\t},\n} satisfies Variants;\n\nconst fadeUp = {\n\thidden: {\n\t\topacity: 0,\n\t\ttransform: \"translateY(12px) scale(0.98)\",\n\t},\n\tvisible: {\n\t\topacity: 1,\n\t\ttransform: \"translateY(0px) scale(1)\",\n\t\ttransition: {\n\t\t\tduration: 0.4,\n\t\t\tease: EASE_OUT,\n\t\t},\n\t},\n} satisfies Variants;\n\nfunction AnimatedArrow({ className }: { className?: string }) {\n\treturn (\n\t\t<div\n\t\t\tdata-slot=\"animated-arrow\"\n\t\t\tclassName={`size-6 -rotate-45 overflow-hidden duration-500 ${className ?? \"\"}`}\n\t\t>\n\t\t\t<div\n\t\t\t\tdata-slot=\"animated-arrow-track\"\n\t\t\t\tclassName=\"flex w-12 -translate-x-1/2 transition-transform duration-500 ease-in-out group-hover/animated-arrow:translate-x-0\"\n\t\t\t>\n\t\t\t\t<span className=\"flex size-6\">\n\t\t\t\t\t<ArrowRight className=\"m-auto size-3\" />\n\t\t\t\t</span>\n\t\t\t\t<span className=\"flex size-6\">\n\t\t\t\t\t<ArrowRight className=\"m-auto size-3\" />\n\t\t\t\t</span>\n\t\t\t</div>\n\t\t</div>\n\t);\n}\n\nfunction TechIcon({ tech }: { tech: (typeof TECH_STACK)[number] }) {\n\tif (tech.theme) {\n\t\treturn (\n\t\t\t<>\n\t\t\t\t<Image\n\t\t\t\t\talt={tech.title}\n\t\t\t\t\tclassName=\"hidden [html.light_&]:block\"\n\t\t\t\t\theight={20}\n\t\t\t\t\tsrc={`${ICON_CDN}/${tech.key}-light.svg`}\n\t\t\t\t\tunoptimized\n\t\t\t\t\twidth={20}\n\t\t\t\t/>\n\t\t\t\t<Image\n\t\t\t\t\talt={tech.title}\n\t\t\t\t\tclassName=\"hidden [html.dark_&]:block\"\n\t\t\t\t\theight={20}\n\t\t\t\t\tsrc={`${ICON_CDN}/${tech.key}-dark.svg`}\n\t\t\t\t\tunoptimized\n\t\t\t\t\twidth={20}\n\t\t\t\t/>\n\t\t\t</>\n\t\t);\n\t}\n\n\treturn (\n\t\t<Image\n\t\t\talt={tech.title}\n\t\t\theight={20}\n\t\t\tsrc={`${ICON_CDN}/${tech.key}.svg`}\n\t\t\tunoptimized\n\t\t\twidth={20}\n\t\t/>\n\t);\n}\n\nfunction TechCarousel() {\n\tconst reduceMotion = useReducedMotion();\n\n\treturn (\n\t\t<div className=\"relative mx-auto w-full max-w-2xl\">\n\t\t\t<Marquee\n\t\t\t\tautoFill\n\t\t\t\tclassName=\"overflow-hidden\"\n\t\t\t\tgradient\n\t\t\t\tgradientColor=\"var(--color-background)\"\n\t\t\t\tgradientWidth={80}\n\t\t\t\tpauseOnHover\n\t\t\t\tplay={reduceMotion !== true}\n\t\t\t\tspeed={25}\n\t\t\t>\n\t\t\t\t{TECH_STACK.map((tech) => (\n\t\t\t\t\t<div\n\t\t\t\t\t\tclassName=\"mx-4 flex items-center gap-1.5 opacity-40 grayscale transition-opacity duration-200 ease-out hover:opacity-80 hover:grayscale-0\"\n\t\t\t\t\t\tkey={tech.key}\n\t\t\t\t\t>\n\t\t\t\t\t\t<TechIcon tech={tech} />\n\t\t\t\t\t\t<span className=\"text-muted-foreground text-xs\">{tech.title}</span>\n\t\t\t\t\t</div>\n\t\t\t\t))}\n\t\t\t</Marquee>\n\t\t</div>\n\t);\n}\n\nexport default function Hero01() {\n\treturn (\n\t\t<MotionConfig reducedMotion=\"user\">\n\t\t\t<div className=\"max-w-screen overflow-x-hidden px-2\">\n\t\t\t\t<div className=\"screen-line-top screen-line-bottom mx-auto border border-line md:max-w-4xl\">\n\t\t\t\t\t<section className=\"relative overflow-hidden bg-background pt-28 pb-12 text-foreground md:pt-36 md:pb-20\">\n\t\t\t\t\t\t<div className=\"mask-[radial-gradient(75%_100%_at_top,black_45%,transparent_75%)] absolute inset-0 aspect-square opacity-65 starting:opacity-0 transition-opacity duration-700 ease-[cubic-bezier(0.23,1,0.32,1)] motion-reduce:starting:opacity-65 motion-reduce:transition-none md:aspect-9/4 dark:opacity-40 dark:motion-reduce:starting:opacity-40\">\n\t\t\t\t\t\t\t<Image\n\t\t\t\t\t\t\t\talt=\"\"\n\t\t\t\t\t\t\t\tclassName=\"object-cover object-top dark:hidden\"\n\t\t\t\t\t\t\t\tfetchPriority=\"high\"\n\t\t\t\t\t\t\t\tfill\n\t\t\t\t\t\t\t\tpriority\n\t\t\t\t\t\t\t\tsizes=\"100vw\"\n\t\t\t\t\t\t\t\tsrc=\"https://cdn.tentui.com/images/hero-bg.avif\"\n\t\t\t\t\t\t\t\tunoptimized\n\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t<Image\n\t\t\t\t\t\t\t\talt=\"\"\n\t\t\t\t\t\t\t\tclassName=\"hidden object-cover object-top dark:block\"\n\t\t\t\t\t\t\t\tfill\n\t\t\t\t\t\t\t\tsizes=\"100vw\"\n\t\t\t\t\t\t\t\tsrc=\"https://cdn.tentui.com/images/hero-bg-dark.avif\"\n\t\t\t\t\t\t\t\tunoptimized\n\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t</div>\n\n\t\t\t\t\t\t<motion.div\n\t\t\t\t\t\t\tanimate=\"visible\"\n\t\t\t\t\t\t\tclassName=\"relative z-10 mx-auto w-full\"\n\t\t\t\t\t\t\tinitial=\"hidden\"\n\t\t\t\t\t\t\tvariants={stagger}\n\t\t\t\t\t\t>\n\t\t\t\t\t\t\t<div className=\"text-center\">\n\t\t\t\t\t\t\t\t<motion.div variants={fadeUp}>\n\t\t\t\t\t\t\t\t\t<Link\n\t\t\t\t\t\t\t\t\t\tclassName=\"group/animated-arrow mx-auto mb-8 inline-flex items-center gap-2 rounded-full border bg-muted py-1 pr-1 pl-3 text-sm shadow-md shadow-zinc-950/5 transition-[transform,background-color,border-color] duration-160 ease-[cubic-bezier(0.23,1,0.32,1)] hover:bg-background active:scale-[0.98] dark:border-t-white/5 dark:shadow-zinc-950 dark:hover:border-t-border\"\n\t\t\t\t\t\t\t\t\t\thref=\"#pricing\"\n\t\t\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t\t\t<span className=\"relative flex size-2\">\n\t\t\t\t\t\t\t\t\t\t\t<span className=\"absolute inline-flex size-full animate-ping rounded-full bg-emerald-400 opacity-75 motion-reduce:hidden\" />\n\t\t\t\t\t\t\t\t\t\t\t<span className=\"relative inline-flex size-2 rounded-full bg-emerald-500\" />\n\t\t\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t\t\t<span className=\"text-muted-foreground\">\n\t\t\t\t\t\t\t\t\t\t\tAvailable for new projects\n\t\t\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t\t\t<span className=\"block h-4 w-px bg-border\" />\n\t\t\t\t\t\t\t\t\t\t<AnimatedArrow className=\"rounded-full bg-background transition-colors duration-200 ease-out group-hover/animated-arrow:bg-muted\" />\n\t\t\t\t\t\t\t\t\t</Link>\n\t\t\t\t\t\t\t\t</motion.div>\n\n\t\t\t\t\t\t\t\t<motion.h1\n\t\t\t\t\t\t\t\t\tclassName=\"font-semibold text-4xl leading-[1.1] tracking-tight sm:text-5xl md:text-6xl\"\n\t\t\t\t\t\t\t\t\tvariants={fadeUp}\n\t\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t\tWe build beyond\n\t\t\t\t\t\t\t\t\t<br />\n\t\t\t\t\t\t\t\t\tpretty pixels\n\t\t\t\t\t\t\t\t</motion.h1>\n\n\t\t\t\t\t\t\t\t<motion.p\n\t\t\t\t\t\t\t\t\tclassName=\"mt-6 text-balance text-lg text-muted-foreground\"\n\t\t\t\t\t\t\t\t\tvariants={fadeUp}\n\t\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t\twe build products that ship and scale\n\t\t\t\t\t\t\t\t</motion.p>\n\n\t\t\t\t\t\t\t\t<motion.div\n\t\t\t\t\t\t\t\t\tclassName=\"mt-10 flex flex-col items-center justify-center gap-3 sm:flex-row\"\n\t\t\t\t\t\t\t\t\tvariants={fadeUp}\n\t\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t\t<Link\n\t\t\t\t\t\t\t\t\t\tclassName=\"inline-flex h-11 items-center justify-center rounded-lg bg-primary px-5 font-semibold text-primary-foreground text-sm shadow-[0_1px_0_rgba(255,255,255,0.24)_inset,0_18px_60px_rgba(0,0,0,0.12)] transition-[transform,opacity] duration-160 ease-[cubic-bezier(0.23,1,0.32,1)] hover:opacity-90 active:scale-[0.97]\"\n\t\t\t\t\t\t\t\t\t\thref=\"#contact\"\n\t\t\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t\t\tBook a Call\n\t\t\t\t\t\t\t\t\t</Link>\n\t\t\t\t\t\t\t\t\t<Link\n\t\t\t\t\t\t\t\t\t\tclassName=\"inline-flex h-11 items-center justify-center rounded-lg border border-border bg-background/45 px-5 font-semibold text-foreground/80 text-sm shadow-[0_1px_0_rgba(255,255,255,0.12)_inset] backdrop-blur transition-[transform,background-color,color] duration-160 ease-[cubic-bezier(0.23,1,0.32,1)] hover:bg-foreground/5 hover:text-foreground active:scale-[0.97]\"\n\t\t\t\t\t\t\t\t\t\thref=\"#pricing\"\n\t\t\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t\t\tView Pricing\n\t\t\t\t\t\t\t\t\t</Link>\n\t\t\t\t\t\t\t\t</motion.div>\n\n\t\t\t\t\t\t\t\t<motion.div className=\"mt-20\" variants={fadeUp}>\n\t\t\t\t\t\t\t\t\t<p className=\"mb-4 font-light text-muted-foreground/50 text-sm\">\n\t\t\t\t\t\t\t\t\t\tProduction stacks, not prototypes\n\t\t\t\t\t\t\t\t\t</p>\n\t\t\t\t\t\t\t\t\t<TechCarousel />\n\t\t\t\t\t\t\t\t</motion.div>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t</motion.div>\n\t\t\t\t\t</section>\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t</MotionConfig>\n\t);\n}\n",
      "type": "registry:component",
      "target": "@components/hero-01.tsx"
    }
  ],
  "meta": {
    "createdAt": "2026-07-17",
    "iframeHeight": 760,
    "previewClassName": "min-h-screen"
  },
  "categories": [
    "hero"
  ],
  "type": "registry:block"
}