{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "hero-10",
  "dependencies": [
    "lucide-react",
    "motion",
    "react-icons"
  ],
  "registryDependencies": [
    "button"
  ],
  "files": [
    {
      "path": "src/components/watermelon-ui/hero-10.tsx",
      "content": "import { useState } from \"react\";\nimport { AnimatePresence, motion, type Variants } from \"motion/react\";\nimport { FaArrowRight, FaChevronDown, FaXmark } from \"react-icons/fa6\";\n\nexport interface Hero10NavItem {\n  label: string;\n  href: string;\n  hasMenu?: boolean;\n}\n\nexport interface Hero10Props {\n  brandName?: string;\n  navItems?: Hero10NavItem[];\n  ctaText?: string;\n  ctaHref?: string;\n  eyebrowText?: string;\n  title?: string;\n  description?: string;\n  primaryText?: string;\n  primaryHref?: string;\n  bottomLabel?: string;\n  usersText?: string;\n  backgroundImage?: string;\n}\n\nconst defaultNavItems: Hero10NavItem[] = [\n  { label: \"Features\", href: \"#\", hasMenu: true },\n  { label: \"Pricing\", href: \"#\", hasMenu: true },\n  { label: \"Resources\", href: \"#\" },\n  { label: \"FAQs\", href: \"#\" },\n];\n\nconst defaultBackground = \"https://assets.watermelon.sh/hero-10-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 MobileMenuIcon() {\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 Hero10({\n  brandName = \"Watermelon\",\n  navItems = defaultNavItems,\n  ctaText = \"Sign up\",\n  ctaHref = \"#\",\n  eyebrowText = \"Join over 100k+ happy customers\",\n  title = \"Rediscover Your Strength\\nReclaim Your Peace\",\n  description = \"Confidential, professional help tailored to your unique needs,\\navailable on your schedule. Your privacy is our first priority.\",\n  primaryText = \"Get Started\",\n  primaryHref = \"#\",\n  usersText = \"Over 20k active users\",\n  backgroundImage = defaultBackground,\n}: Hero10Props) {\n  const [mobileOpen, setMobileOpen] = useState(false);\n\n  return (\n    <section className=\"relative isolate min-h-screen w-full overflow-hidden bg-slate-200 font-sans text-slate-900 antialiased\">\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 outline-1 outline-black/10\"\n        />\n      </motion.div>\n\n      <div\n        className=\"absolute inset-0 bg-[linear-gradient(180deg,rgba(226,232,240,0.82)_0%,rgba(241,245,249,0.58)_32%,rgba(226,232,240,0.08)_66%,rgba(15,23,42,0.08)_100%)]\"\n        aria-hidden=\"true\"\n      />\n      <div\n        className=\"absolute inset-x-0 top-0 h-[48%] bg-[radial-gradient(ellipse_at_center,rgba(255,255,255,0.82)_0%,rgba(255,255,255,0.4)_42%,rgba(255,255,255,0)_74%)]\"\n        aria-hidden=\"true\"\n      />\n\n      <div className=\"relative z-10 mx-auto flex min-h-[760px] w-full max-w-[1440px] flex-col px-5 py-5 sm:min-h-screen sm:px-10 lg:px-[74px]\">\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 font-serif text-[25px] leading-none font-medium tracking-[-0.035em] text-slate-800 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-[54px] lg:flex\">\n            {navItems.map((item) => (\n              <a\n                key={item.label}\n                href={item.href}\n                className=\"group inline-flex min-h-10 items-center gap-1.5 text-sm leading-none font-normal text-slate-800 transition-colors duration-200 ease-out hover:text-slate-500\"\n              >\n                <span>{item.label}</span>\n                {item.hasMenu ? (\n                  <FaChevronDown className=\"size-2.5 transition-transform duration-200 ease-out group-hover:translate-y-0.5\" />\n                ) : null}\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 gap-2 rounded-full border border-sky-900/90 bg-white/10 px-5 text-sm leading-none font-medium text-slate-900 shadow-[0_1px_1px_rgba(255,255,255,0.45)_inset] backdrop-blur-md transition-[background-color,border-color,transform] duration-200 ease-out hover:border-sky-950 hover:bg-white/28 sm:inline-flex\"\n            >\n              <span>{ctaText}</span>\n              <FaArrowRight className=\"size-3\" />\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 rounded-full border border-sky-900/70 bg-white/16 text-slate-900 backdrop-blur-md transition-[background-color,transform] duration-200 ease-out hover:bg-white/30 active:scale-[0.96] lg:hidden\"\n            >\n              <MobileMenuIcon />\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 rounded-[28px] bg-white/86 p-4 text-slate-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=\"font-serif text-2xl font-medium tracking-[-0.035em]\"\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 rounded-full text-slate-950 transition-[background-color,transform] duration-200 ease-out hover:bg-slate-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 justify-between rounded-2xl px-3 text-sm font-medium text-slate-900 transition-colors duration-200 ease-out hover:bg-slate-950/5\"\n                  >\n                    <span>{item.label}</span>\n                    {item.hasMenu ? <FaChevronDown className=\"size-3\" /> : null}\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 gap-2 rounded-full bg-slate-900 px-5 text-sm font-medium text-white transition-[background-color,transform] duration-200 ease-out hover:bg-slate-700\"\n              >\n                {ctaText}\n                <FaArrowRight className=\"size-3\" />\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=\"mx-auto flex w-full max-w-[760px] flex-1 flex-col items-center pt-[76px] text-center sm:pt-[94px] lg:pt-[68px] 2xl:max-w-7xl\"\n        >\n          <motion.div\n            variants={contentItem}\n            className=\"inline-flex min-h-7 items-center gap-2 rounded-full border border-slate-700/13 bg-white/18 px-3.5 text-sm leading-none font-medium text-slate-600 shadow-[0_1px_1px_rgba(255,255,255,0.45)_inset] backdrop-blur-md\"\n          >\n            <span className=\"grid size-4 place-items-center rounded-full border border-slate-500/30 bg-slate-100/70\">\n              <span className=\"size-2 rounded-full bg-slate-700 shadow-[0_0_0_2px_rgba(51,65,85,0.1)]\" />\n            </span>\n            <span>{eyebrowText}</span>\n          </motion.div>\n\n          <motion.h1\n            variants={contentItem}\n            className=\"mt-5 max-w-5xl font-serif text-[clamp(3.25rem,4.8vw,6.35rem)] leading-[0.92] font-medium tracking-[-0.07em] text-balance whitespace-pre-line text-slate-700 2xl:max-w-7xl\"\n          >\n            {title}\n          </motion.h1>\n\n          <motion.p\n            variants={contentItem}\n            className=\"mask-l-form-90% mask-r-form-90% mt-6 max-w-[570px] bg-white/5 mask-b-from-90% text-[clamp(1rem,1.35vw,1.16rem)] leading-[1.42] font-normal text-pretty whitespace-pre-line text-slate-900 backdrop-blur-[2px] sm:text-slate-700\"\n          >\n            {description}\n          </motion.p>\n\n          <motion.a\n            href={primaryHref}\n            variants={contentItem}\n            whileTap={{ scale: 0.96 }}\n            className=\"text-md mt-6 inline-flex min-h-11 items-center gap-2 rounded-full bg-linear-to-b from-slate-700 to-slate-800 px-5 font-normal text-white shadow-[0_1px_2px_rgba(15,23,42,0.18),0_12px_30px_rgba(15,23,42,0.08),inset_0_1px_0_0_var(--color-slate-600),inset_0_-1px_4px_0_var(--color-slate-600)] transition-[background-color,box-shadow,transform] duration-200 ease-out hover:bg-slate-700 hover:shadow-[0_2px_5px_rgba(15,23,42,0.2),0_16px_36px_rgba(15,23,42,0.1)]\"\n          >\n            <span>{primaryText}</span>\n            <FaArrowRight className=\"size-3\" />\n          </motion.a>\n        </motion.div>\n\n        <motion.div\n          variants={contentContainer}\n          initial=\"hidden\"\n          whileInView=\"visible\"\n          viewport={{ once: true, amount: 0.3 }}\n          className=\"mb-0 flex flex-col items-center gap-4 sm:mb-7 sm:flex-row sm:items-end sm:justify-between\"\n        >\n          <motion.div\n            variants={contentItem}\n            className=\"inline-flex w-fit items-center gap-3 rounded-full bg-white/14 p-px pr-4 text-sm font-semibold text-slate-800 shadow-[0_0px_1px_rgba(255,255,255,0.5)_inset] backdrop-blur-sm\"\n          >\n            <span className=\"grid size-7 place-items-center rounded-full bg-slate-800 text-white outline -outline-offset-1 outline-white/10\">\n              <FaArrowRight className=\"size-3 -rotate-45\" />\n            </span>\n            <span>{usersText}</span>\n          </motion.div>\n        </motion.div>\n      </div>\n    </section>\n  );\n}\n",
      "type": "registry:ui",
      "target": "components/ui/hero-10.tsx"
    }
  ],
  "type": "registry:ui"
}
