{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "hero-11",
  "dependencies": [
    "lucide-react",
    "motion",
    "react-icons"
  ],
  "registryDependencies": [
    "button"
  ],
  "files": [
    {
      "path": "src/components/watermelon-ui/hero-11.tsx",
      "content": "import { useState } from 'react';\nimport { AnimatePresence, motion, type Variants } from 'motion/react';\nimport { FaArrowRight, FaXmark } from 'react-icons/fa6';\n\nexport interface Hero11NavItem {\n  label: string;\n  href: string;\n}\n\nexport interface Hero11Props {\n  brandName?: string;\n  navItems?: Hero11NavItem[];\n  ctaText?: string;\n  ctaHref?: string;\n  title?: string;\n  description?: string;\n  primaryText?: string;\n  primaryHref?: string;\n  backgroundImage?: string;\n}\n\nconst defaultNavItems: Hero11NavItem[] = [\n  { label: 'Collection', href: '#' },\n  { label: 'Subscription', href: '#' },\n  { label: 'About Us', href: '#' },\n  { label: 'Features', href: '#' },\n  { label: 'Contact', href: '#' },\n];\n\nconst defaultBackground = 'https://assets.watermelon.sh/hero-11-bg.avif';\n\nconst headerVariants: Variants = {\n  hidden: { opacity: 0, y: -16, filter: 'blur(8px)' },\n  visible: {\n    opacity: 1,\n    y: 0,\n    filter: 'blur(0px)',\n    transition: { type: 'spring', duration: 0.68, bounce: 0 },\n  },\n};\n\nconst contentContainer: Variants = {\n  hidden: { opacity: 0 },\n  visible: {\n    opacity: 1,\n    transition: {\n      delayChildren: 0.12,\n      staggerChildren: 0.1,\n    },\n  },\n};\n\nconst contentItem: Variants = {\n  hidden: { opacity: 0, y: 18, filter: 'blur(8px)' },\n  visible: {\n    opacity: 1,\n    y: 0,\n    filter: 'blur(0px)',\n    transition: { type: 'spring', duration: 0.72, bounce: 0 },\n  },\n};\n\nconst backgroundVariants: Variants = {\n  hidden: { opacity: 0, scale: 1.035, filter: 'blur(10px)' },\n  visible: {\n    opacity: 1,\n    scale: 1,\n    filter: 'blur(0px)',\n    transition: { type: 'spring', duration: 1.15, bounce: 0 },\n  },\n};\n\nfunction MenuIcon() {\n  return (\n    <span\n      className=\"h-3.5 w-4 bg-[linear-gradient(to_bottom,currentColor_0_2px,transparent_2px_6px,currentColor_6px_8px,transparent_8px_12px,currentColor_12px_14px)]\"\n      aria-hidden=\"true\"\n    />\n  );\n}\n\nexport function Hero11({\n  brandName = 'Watermelon',\n  navItems = defaultNavItems,\n  ctaText = 'Shop Now',\n  ctaHref = '#',\n  title = 'Timeless Beauty,\\nThoughtfully Made.',\n  description = 'Inspired by nature, rooted in tradition.\\nDiscover pieces that tell a story',\n  primaryText = 'Explore Collection',\n  primaryHref = '#',\n  backgroundImage = defaultBackground,\n}: Hero11Props) {\n  const [mobileOpen, setMobileOpen] = useState(false);\n\n  return (\n    <section className=\"relative isolate  w-full overflow-hidden bg-stone-100 font-sans text-teal-950 antialiased min-h-screen\">\n      <motion.div\n        variants={backgroundVariants}\n        initial=\"hidden\"\n        whileInView=\"visible\"\n        viewport={{ once: true, amount: 0.35 }}\n        className=\"absolute inset-0 will-change-transform\"\n        aria-hidden=\"true\"\n      >\n        <img\n          src={backgroundImage}\n          alt=\"\"\n          className=\"h-full w-full object-cover object-center outline-1 outline-black/10\"\n        />\n      </motion.div>\n\n      <div\n        className=\"absolute inset-0 bg-[linear-gradient(90deg,rgba(250,246,236,0.94)_0%,rgba(250,246,236,0.76)_34%,rgba(250,246,236,0.2)_66%,rgba(250,246,236,0.03)_100%)]\"\n        aria-hidden=\"true\"\n      />\n      <div\n        className=\"absolute inset-0 bg-[linear-gradient(180deg,rgba(250,246,236,0.72)_0%,rgba(250,246,236,0.04)_42%,rgba(250,246,236,0.12)_100%)]\"\n        aria-hidden=\"true\"\n      />\n\n      <div className=\"relative z-10 mx-auto flex min-h-[690px] w-full max-w-[1440px] flex-col px-6 py-5 sm:min-h-screen sm:px-10 lg:px-[72px]\">\n        <motion.header\n          variants={headerVariants}\n          initial=\"hidden\"\n          whileInView=\"visible\"\n          viewport={{ once: true, amount: 0.8 }}\n          className=\"flex h-12 items-center justify-between\"\n        >\n          <a\n            href=\"#\"\n            className=\"inline-flex min-h-10 items-center text-[22px] leading-none font-semibold tracking-tight text-teal-950 transition-[opacity,transform] duration-200 ease-out hover:opacity-75 active:scale-[0.96]\"\n          >\n            {brandName}\n          </a>\n\n          <nav className=\"hidden items-center gap-[44px] lg:flex\">\n            {navItems.map((item) => (\n              <a\n                key={item.label}\n                href={item.href}\n                className=\"inline-flex min-h-10 items-center text-sm leading-none font-medium text-teal-950/88 transition-colors duration-200 ease-out hover:text-teal-800\"\n              >\n                {item.label}\n              </a>\n            ))}\n          </nav>\n          <div className=\"flex gap-2\">\n            <motion.a\n              href={ctaHref}\n              whileTap={{ scale: 0.96 }}\n              className=\"hidden min-h-10 items-center justify-center bg-teal-950 px-6 text-sm leading-none font-normal text-stone-100 shadow-[0_1px_2px_rgba(15,23,42,0.14)] transition-[background-color,box-shadow,transform] duration-200 ease-out hover:bg-teal-900 hover:shadow-[0_2px_7px_rgba(15,23,42,0.18)] sm:inline-flex\"\n            >\n              {ctaText}\n            </motion.a>\n\n            <button\n              type=\"button\"\n              aria-label=\"Open navigation menu\"\n              onClick={() => setMobileOpen(true)}\n              className=\"inline-flex size-10 items-center justify-center bg-teal-950 text-stone-100 shadow-[0_1px_2px_rgba(15,23,42,0.14)] transition-[background-color,transform] duration-200 ease-out hover:bg-teal-900 active:scale-[0.96] lg:hidden\"\n            >\n              <MenuIcon />\n            </button>\n          </div>\n        </motion.header>\n\n        <AnimatePresence initial={false}>\n          {mobileOpen ? (\n            <motion.div\n              initial={{ opacity: 0, y: -10, filter: 'blur(8px)' }}\n              animate={{ opacity: 1, y: 0, filter: 'blur(0px)' }}\n              exit={{ opacity: 0, y: -6, filter: 'blur(5px)' }}\n              transition={{ type: 'spring', duration: 0.3, bounce: 0 }}\n              className=\"fixed inset-x-4 top-4 z-50 bg-stone-50/92 p-4 text-teal-950 shadow-[0_24px_80px_rgba(15,23,42,0.22)] outline outline-1 outline-white/70 backdrop-blur-xl lg:hidden\"\n            >\n              <div className=\"flex items-center justify-between pl-3\">\n                <a\n                  href=\"#\"\n                  className=\"text-xl font-semibold tracking-[-0.025em]\"\n                >\n                  {brandName}\n                </a>\n                <button\n                  type=\"button\"\n                  aria-label=\"Close navigation menu\"\n                  onClick={() => setMobileOpen(false)}\n                  className=\"inline-flex size-10 items-center justify-center text-teal-950 transition-[background-color,transform] duration-200 ease-out hover:bg-teal-950/5 active:scale-[0.96]\"\n                >\n                  <FaXmark className=\"size-4\" />\n                </button>\n              </div>\n\n              <nav className=\"mt-5 grid gap-1\">\n                {navItems.map((item) => (\n                  <a\n                    key={item.label}\n                    href={item.href}\n                    onClick={() => setMobileOpen(false)}\n                    className=\"inline-flex min-h-11 items-center px-3 text-sm font-medium text-teal-950 transition-colors duration-200 ease-out hover:bg-teal-950/5\"\n                  >\n                    {item.label}\n                  </a>\n                ))}\n              </nav>\n\n              <motion.a\n                href={ctaHref}\n                whileTap={{ scale: 0.96 }}\n                className=\"mt-4 inline-flex min-h-11 w-full items-center justify-center bg-teal-950 px-5 text-sm font-semibold text-stone-100 transition-[background-color,transform] duration-200 ease-out hover:bg-teal-900\"\n              >\n                {ctaText}\n              </motion.a>\n            </motion.div>\n          ) : null}\n        </AnimatePresence>\n\n        <motion.div\n          variants={contentContainer}\n          initial=\"hidden\"\n          whileInView=\"visible\"\n          viewport={{ once: true, amount: 0.42 }}\n          className=\"flex flex-1 items-start pt-[76px] sm:pt-[105px] lg:pt-[76px]\"\n        >\n          <div className=\"max-w-[540px]\">\n            <motion.h1\n              variants={contentItem}\n              className=\"text-[clamp(3.05rem,5.05vw,5.35rem)] leading-[1.02] font-medium tracking-[-0.045em]  text-balance whitespace-pre-line text-teal-950\"\n            >\n              {title}\n            </motion.h1>\n\n            <motion.p\n              variants={contentItem}\n              className=\"mt-5 max-w-[350px] bg-white/10 mask-r-from-80% text-[clamp(1rem,1.2vw,1.18rem)] leading-[1.42] font-medium text-pretty whitespace-pre-line text-stone-900/82 backdrop-blur-[1px]\"\n            >\n              {description}\n            </motion.p>\n\n            <motion.a\n              href={primaryHref}\n              variants={contentItem}\n              whileTap={{ scale: 0.96 }}\n              className=\"mt-8 inline-flex min-h-12 items-center gap-2 bg-teal-950 px-5 text-[14px] leading-none font-semibold text-stone-100 shadow-[0_1px_2px_rgba(15,23,42,0.16)] transition-[background-color,box-shadow,transform] duration-200 ease-out hover:bg-teal-900 hover:shadow-[0_2px_7px_rgba(15,23,42,0.18)]\"\n            >\n              <span>{primaryText}</span>\n              <FaArrowRight className=\"size-3\" />\n            </motion.a>\n          </div>\n        </motion.div>\n      </div>\n    </section>\n  );\n}\n",
      "type": "registry:ui",
      "target": "components/ui/hero-11.tsx"
    }
  ],
  "type": "registry:ui"
}
