{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "hero-20",
  "dependencies": [
    "lucide-react",
    "motion",
    "react-icons"
  ],
  "registryDependencies": [
    "button"
  ],
  "files": [
    {
      "path": "src/components/watermelon-ui/hero-20.tsx",
      "content": "'use client';\n\nimport LogoIcon from '@/assets/logo-icon';\nimport { ArrowRight, CirclePlay, Sparkles } from 'lucide-react';\nimport { FaGithub as Github, FaFigma as Figma, FaSlack as Slack } from 'react-icons/fa6';\nimport { SiFramer as Framer } from 'react-icons/si';\nimport { motion, type Variants } from 'motion/react';\n\ninterface NavLink {\n  label: string;\n  href: string;\n}\n\ninterface TrustItem {\n  label: string;\n}\n\ninterface BrandMark {\n  icon: 'github' | 'figma' | 'framer' | 'slack';\n}\n\ninterface Hero20Props {\n  brandName?: string;\n  navLinks?: NavLink[];\n  headingLine1?: string;\n  headingLine2?: string;\n  description?: string;\n  primaryCtaLabel?: string;\n  primaryCtaHref?: string;\n  secondaryCtaLabel?: string;\n  secondaryCtaHref?: string;\n  menuLabel?: string;\n  menuHref?: string;\n  shopLabel?: string;\n  shopHref?: string;\n  trustLabel?: string;\n  trustItems?: TrustItem[];\n  brandMarks?: BrandMark[];\n  backgroundImage?: string;\n}\n\nconst navLinksDefault: NavLink[] = [\n  { label: 'Products', href: '#' },\n  { label: 'About', href: '#' },\n  { label: 'Features', href: '#' },\n  { label: 'Support', href: '#' },\n];\n\nconst trustItemsDefault: TrustItem[] = [\n  { label: 'Premium Design' },\n  { label: 'Trusted Platform' },\n  { label: 'Custom Illustrations' },\n];\n\nconst brandMarksDefault: BrandMark[] = [\n  { icon: 'github' },\n  { icon: 'figma' },\n  { icon: 'framer' },\n  { icon: 'slack' },\n];\n\n\nconst sectionVariants: Variants = {\n  hidden: {},\n  visible: {\n    transition: {\n      staggerChildren: 0.1,\n      delayChildren: 0.1,\n    },\n  },\n};\n\nconst navVariants: Variants = {\n  hidden: { opacity: 0, y: -14, filter: 'blur(8px)' },\n  visible: {\n    opacity: 1,\n    y: 0,\n    filter: 'blur(0px)',\n    transition: { type: 'spring', duration: 0.7, bounce: 0.1 },\n  },\n};\n\nconst cloudVariants: Variants = {\n  hidden: { opacity: 0, scale: 1.06, filter: 'blur(18px)' },\n  visible: {\n    opacity: 1,\n    scale: 1,\n    filter: 'blur(0px)',\n    transition: { type: 'spring', duration: 1.3, bounce: 0 },\n  },\n};\n\n/** Container that staggers its word children */\nconst headingLineVariants: Variants = {\n  hidden: {},\n  visible: {\n    transition: {\n      staggerChildren: 0.08,\n      delayChildren: 0,\n    },\n  },\n};\n\n/** Individual word reveal: slides up + fades in + de-blurs */\nconst wordVariants: Variants = {\n  hidden: { opacity: 0, y: 28, filter: 'blur(10px)' },\n  visible: {\n    opacity: 1,\n    y: 0,\n    filter: 'blur(0px)',\n    transition: { type: 'spring', duration: 0.72, bounce: 0.12 },\n  },\n};\n\nconst copyVariants: Variants = {\n  hidden: { opacity: 0, y: 20, filter: 'blur(8px)' },\n  visible: {\n    opacity: 1,\n    y: 0,\n    filter: 'blur(0px)',\n    transition: { type: 'spring', duration: 0.74, bounce: 0 },\n  },\n};\n\nconst ctaGroupVariants: Variants = {\n  hidden: {},\n  visible: {\n    transition: {\n      staggerChildren: 0.1,\n      delayChildren: 0,\n    },\n  },\n};\n\nconst ctaVariants: Variants = {\n  hidden: { opacity: 0, y: 14, filter: 'blur(6px)' },\n  visible: {\n    opacity: 1,\n    y: 0,\n    filter: 'blur(0px)',\n    transition: { type: 'spring', duration: 0.6, bounce: 0.1 },\n  },\n};\n\nconst bottomVariants: Variants = {\n  hidden: { opacity: 0, y: 18, filter: 'blur(10px)' },\n  visible: {\n    opacity: 1,\n    y: 0,\n    filter: 'blur(0px)',\n    transition: { type: 'spring', duration: 0.72, bounce: 0 },\n  },\n};\n\n\n\nfunction AnimatedHeadingLine({ text, className }: { text: string; className?: string }) {\n  const words = text.split(' ');\n  return (\n    <motion.span\n      className={`block overflow-hidden ${className ?? ''}`}\n      variants={headingLineVariants}\n    >\n      {words.map((word, i) => (\n        <motion.span\n          key={`${word}-${i}`}\n          className=\"inline-block will-change-transform\"\n          variants={wordVariants}\n          style={{ marginRight: i < words.length - 1 ? '0.28em' : undefined }}\n        >\n          {word}\n        </motion.span>\n      ))}\n    </motion.span>\n  );\n}\n\n\nfunction BrandMarkIcon({ icon }: { icon: BrandMark['icon'] }) {\n  if (icon === 'github') return <Github className=\"size-4\" />;\n  if (icon === 'figma') return <Figma className=\"size-4\" />;\n  if (icon === 'framer') return <Framer className=\"size-4\" />;\n  if (icon === 'slack') return <Slack className=\"size-4\" />;\n  return null;\n}\n\nexport default function Hero20({\n  brandName = 'Watermelon',\n  navLinks = navLinksDefault,\n  headingLine1 = 'Redefine Your',\n  headingLine2 = 'Everyday Experience.',\n  description = 'Discover products designed to elevate your lifestyle with simplicity, elegance, and innovation.',\n  primaryCtaLabel = 'Explore Products',\n  primaryCtaHref = '#',\n  secondaryCtaLabel = 'Watch Video',\n  secondaryCtaHref = '#',\n  menuLabel = 'Menu',\n  menuHref = '#',\n  shopLabel = 'Shop Now',\n  shopHref = '#',\n  trustLabel = 'Trusted By Leading Brands',\n  trustItems = trustItemsDefault,\n  brandMarks = brandMarksDefault,\n  backgroundImage = 'https://assets.watermelon.sh/hero-21-bg.avif',\n}: Hero20Props) {\n  return (\n    <section className=\"relative isolate min-h-screen overflow-hidden bg-sky-600 font-sans text-white antialiased\">\n      <motion.div\n        className=\"relative flex min-h-screen w-full flex-col overflow-hidden px-6 py-4 sm:px-9 lg:px-12\"\n        initial=\"hidden\"\n        whileInView=\"visible\"\n        viewport={{ once: true, amount: 0.3 }}\n        variants={sectionVariants}\n      >\n        {/* Background image */}\n        <motion.img\n          variants={cloudVariants}\n          src={backgroundImage}\n          alt=\"\"\n          className=\"pointer-events-none absolute inset-0 h-full w-full object-cover object-center\"\n        />\n\n        {/* Nav */}\n        <motion.nav\n          variants={navVariants}\n          className=\"relative z-20 flex min-h-10 w-full  items-center justify-between\"\n        >\n          <a\n            href=\"#\"\n            className=\"inline-flex min-h-10 items-center gap-2 text-lg leading-none font-medium text-white transition-[opacity,transform] duration-200 ease-out hover:opacity-85 active:scale-[0.96]\"\n          >\n            <LogoIcon className=\"size-8\" />\n            <span className=\"\">{brandName}</span>\n          </a>\n\n          <div className=\"hidden items-center gap-10 md:flex\">\n            {navLinks.map((link) => (\n              <a\n                key={link.label}\n                href={link.href}\n                className=\"inline-flex min-h-10 items-center text-sm font-normal text-white/90 transition-[opacity,transform] duration-200 ease-out hover:opacity-100 active:scale-[0.96]\"\n              >\n                {link.label}\n              </a>\n            ))}\n          </div>\n\n          <div className=\"flex items-center gap-3\">\n            <a\n              href={menuHref}\n              className=\"hidden min-h-10 items-center justify-center gap-2 rounded-full bg-white/10 px-4 text-sm font-semibold text-white shadow-[inset_0_0_0_1px_rgba(255,255,255,0.15),0_16px_40px_rgba(15,23,42,0.18)] backdrop-blur-sm transition-[background-color,transform,box-shadow] duration-200 ease-out hover:bg-white/15 active:scale-[0.96] sm:inline-flex\"\n            >\n              {menuLabel}\n            </a>\n            <a\n              href={shopHref}\n              className=\"group inline-flex min-h-10 items-center justify-center gap-1 rounded-full bg-zinc-100 px-6 text-sm font-normal text-slate-800 shadow-[inset_0_2px_0_0_rgba(255,255,255,1),inset_0_-1px_0_0_rgba(0,0,0,0.2)] transition-[background-color,color,transform] duration-200 ease-out text-shadow-2xs hover:bg-zinc-200 hover:text-slate-950 active:scale-[0.96]\"\n            >\n              {shopLabel}\n              <ArrowRight className=\"size-4 transition-transform duration-200 ease-out group-hover:translate-x-0.5\" />\n            </a>\n          </div>\n        </motion.nav>\n\n        {/* Hero copy */}\n        <div className=\"relative z-10 flex flex-1 flex-col justify-center pt-16 pb-28 sm:pt-20 lg:pt-12\">\n          <div className=\"max-w-5xl\">\n            {/* Headline with per-word stagger */}\n            <h1 className=\"max-w-5xl text-[clamp(3rem,4.5vw,4.55rem)] leading-[0.98] font-normal text-white\">\n              <AnimatedHeadingLine text={headingLine1} />\n              <AnimatedHeadingLine text={headingLine2} />\n            </h1>\n\n            {/* Description */}\n            <motion.p\n              variants={copyVariants}\n              className=\"mt-5 max-w-lg text-sm leading-[1.45] font-normal text-pretty text-white/80\"\n            >\n              {description}\n            </motion.p>\n\n            {/* CTAs */}\n            <motion.div\n              className=\"mt-7 flex flex-wrap items-center gap-5\"\n              variants={ctaGroupVariants}\n            >\n              <motion.a\n                variants={ctaVariants}\n                href={primaryCtaHref}\n                className=\"group inline-flex min-h-11 items-center justify-center gap-1 rounded-full bg-zinc-100 px-6 text-sm font-normal text-slate-800 shadow-[inset_0_2px_0_0_rgba(255,255,255,1),inset_0_-1px_0_0_rgba(0,0,0,0.2)] transition-[background-color,color,transform] duration-200 ease-out text-shadow-2xs hover:bg-zinc-200 hover:text-slate-950 active:scale-[0.96]\"\n              >\n                {primaryCtaLabel}\n              </motion.a>\n              <motion.a\n                variants={ctaVariants}\n                href={secondaryCtaHref}\n                className=\"group inline-flex min-h-11 items-center gap-2 text-sm font-normal text-white transition-[opacity,transform] duration-200 ease-out hover:opacity-90 active:scale-[0.96]\"\n              >\n                <CirclePlay className=\"size-5 fill-white/10 transition-[fill,transform] duration-200 ease-out group-hover:scale-105 group-hover:fill-white/20\" />\n                {secondaryCtaLabel}\n              </motion.a>\n            </motion.div>\n          </div>\n        </div>\n\n        {/* Bottom bar */}\n        <motion.div\n          variants={bottomVariants}\n          className=\"relative z-20 flex flex-col gap-5 pb-3 md:flex-row md:items-end md:justify-between\"\n        >\n          <div className=\"flex flex-wrap items-center gap-4 sm:gap-6\">\n            {trustItems.map((item) => (\n              <div\n                key={item.label}\n                className=\"inline-flex min-h-10 items-center justify-center gap-1.5 text-sm font-normal text-white/80\"\n              >\n                <Sparkles className=\"size-4 text-white\" aria-hidden=\"true\" />\n                {item.label}\n              </div>\n            ))}\n          </div>\n\n          <div className=\"flex flex-col items-start gap-3 md:items-end\">\n            <p className=\"text-[0.6rem] font-semibold text-white/86\">\n              {trustLabel}\n            </p>\n            <div className=\"flex items-center gap-3\">\n              {brandMarks.map((brand, index) => (\n                <span\n                  key={brand.icon + index}\n                  className=\"size-9 items-center justify-center gap-2 rounded-full bg-white/40 text-sm font-semibold text-white shadow-[inset_0_0_0_1px_rgba(255,255,255,0.15),0_16px_40px_rgba(15,23,42,0.18)] backdrop-blur-md transition-[background-color,transform,box-shadow] duration-200 ease-out hover:bg-white/15 active:scale-[0.96] sm:inline-flex\"\n                >\n                  <BrandMarkIcon icon={brand.icon} />\n                </span>\n              ))}\n            </div>\n          </div>\n        </motion.div>\n      </motion.div>\n    </section>\n  );\n}\n",
      "type": "registry:ui",
      "target": "components/ui/hero-20.tsx"
    },
    {
      "path": "src/assets/logo-icon.tsx",
      "content": "export default function LogoIcon({ className }: { className?: string }) {\n  return (\n    <svg\n      className={className}\n      width=\"785\"\n      height=\"506\"\n      viewBox=\"0 0 785 506\"\n      fill=\"currentColor\"\n      xmlns=\"http://www.w3.org/2000/svg\"\n    >\n      <path\n        d=\"M392.688 104.141C299.504 104.141 291.288 234.316 261.147 234.316C231.007 234.316 230.996 0 121.38 0C-30.726 0 -49.9098 505.63 121.38 505.63C196.742 505.63 218.672 442.598 252.926 442.598C287.179 442.598 322.801 505.63 392.688 505.63C462.575 505.63 496.832 442.598 531.085 442.598C565.339 442.598 587.269 505.63 662.631 505.63C833.921 505.63 814.737 0 662.631 0C553.015 0 553.004 234.316 522.864 234.316C492.723 234.316 485.872 104.141 392.688 104.141Z\"\n        fill=\"currentColor\"\n      />\n      <circle cx=\"515.226\" cy=\"332.977\" r=\"46.5892\" fill=\"black\" />\n      <circle cx=\"268.575\" cy=\"332.976\" r=\"46.5892\" fill=\"black\" />\n    </svg>\n  );\n}\n",
      "type": "registry:component",
      "target": "assets/logo-icon.tsx"
    }
  ],
  "type": "registry:ui"
}
