{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "footer-14",
  "dependencies": [
    "motion",
    "react-icons"
  ],
  "files": [
    {
      "path": "src/components/watermelon-ui/footer-14.tsx",
      "content": "import { type FormEvent, type ReactNode } from 'react';\nimport { motion, type Variants } from 'motion/react';\nimport {\n\n  FaFacebookF,\n  FaInstagram,\n  FaLinkedinIn,\n  FaXTwitter,\n} from 'react-icons/fa6';\nimport LogoIcon from '@/assets/logo-icon';\n\n\n\nexport interface Footer14Link {\n  label: string;\n  href: string;\n}\n\nexport interface Footer14Column {\n  title: string;\n  links: Footer14Link[];\n}\n\nexport interface Footer14SocialLink {\n  label: string;\n  href: string;\n  icon: ReactNode;\n}\n\nexport interface Footer14Props {\n  /** Custom logo mark element */\n  logoIcon?: ReactNode;\n  brandName?: string;\n  /** Navigation columns rendered in the top section */\n  columns?: Footer14Column[];\n  /** Social media links */\n  socialLinks?: Footer14SocialLink[];\n  emailPlaceholder?: string;\n  subscribeLabel?: string;\n  /** Short tagline shown below the subscribe form */\n  subscribeTagline?: string;\n  onSubscribe?: (email: string) => void;\n  /** System status text */\n  statusLabel?: string;\n  statusValue?: string;\n  copyright?: string;\n  /** Large brand text in the hero section */\n  heroBrandName?: string;\n}\n\n\nconst defaultColumns: Footer14Column[] = [\n  {\n    title: 'SOLUTIONS',\n    links: [\n      { label: 'Transactional Emails', href: '#' },\n      { label: 'Marketing Emails', href: '#' },\n      { label: 'Email Automation', href: '#' },\n      { label: 'SMTP', href: '#' },\n      { label: 'Email Builder', href: '#' },\n    ],\n  },\n  {\n    title: 'RESOURCES',\n    links: [\n      { label: 'FAQ', href: '#' },\n      { label: 'Blog', href: '#' },\n      { label: 'Glossary', href: '#' },\n      { label: 'Changelog', href: '#' },\n    ],\n  },\n  {\n    title: 'LEGAL',\n    links: [\n      { label: 'Fair Use', href: '#' },\n      { label: 'Privacy Policy', href: '#' },\n      { label: 'Terms & Conditions', href: '#' },\n      { label: 'Subprocessors', href: '#' },\n    ],\n  },\n];\n\nconst defaultSocials: Footer14SocialLink[] = [\n  { label: 'Facebook', href: '#', icon: <FaFacebookF /> },\n  { label: 'Twitter / X', href: '#', icon: <FaXTwitter /> },\n  { label: 'Instagram', href: '#', icon: <FaInstagram /> },\n  { label: 'LinkedIn', href: '#', icon: <FaLinkedinIn /> },\n];\n\n\nconst staggerContainer: Variants = {\n  hidden: { opacity: 0 },\n  visible: {\n    opacity: 1,\n    transition: {\n      staggerChildren: 0.09,\n      delayChildren: 0.05,\n    },\n  },\n};\n\n\nconst navStagger: Variants = {\n  hidden: { opacity: 0 },\n  visible: {\n    opacity: 1,\n    transition: {\n      staggerChildren: 0.07,\n      delayChildren: 0.02,\n    },\n  },\n};\n\n\nconst riseItem: Variants = {\n  hidden: { opacity: 0, y: 18, filter: 'blur(6px)' },\n  visible: {\n    opacity: 1,\n    y: 0,\n    filter: 'blur(0px)',\n    transition: { type: 'spring', duration: 0.6, bounce: 0 },\n  },\n};\n\n\nconst linkStagger: Variants = {\n  hidden: {},\n  visible: { transition: { staggerChildren: 0.04 } },\n};\n\nconst linkItem: Variants = {\n  hidden: { opacity: 0, y: 5 },\n  visible: {\n    opacity: 1,\n    y: 0,\n    transition: { type: 'spring', duration: 0.4, bounce: 0 },\n  },\n};\n\nconst bottomBarItem: Variants = {\n  hidden: { opacity: 0 },\n  visible: {\n    opacity: 1,\n    transition: { duration: 0.5, ease: [0.22, 1, 0.36, 1] },\n  },\n};\n\n\nconst heroBrandVariant: Variants = {\n  hidden: { opacity: 0, y: 40, filter: 'blur(12px)' },\n  visible: {\n    opacity: 1,\n    y: 0,\n    filter: 'blur(0px)',\n    transition: { type: 'spring', duration: 1.1, bounce: 0 },\n  },\n};\n\n\n\n\n\n\n\nexport function Footer14({\n  logoIcon,\n  brandName = 'Watermelon',\n  columns = defaultColumns,\n  socialLinks = defaultSocials,\n  emailPlaceholder = 'Enter your email',\n  subscribeLabel = 'Subscribe',\n  subscribeTagline = 'Receive calm nature wrapped\\nin moonlight silence.',\n  onSubscribe,\n  statusLabel = 'System status :',\n  statusValue = 'Moderate',\n  copyright = '© 2026 Melon , Inc. All rights reserved.',\n  heroBrandName = 'Watermelon',\n}: Footer14Props) {\n  function handleSubmit(event: FormEvent<HTMLFormElement>) {\n    event.preventDefault();\n    const formData = new FormData(event.currentTarget);\n    const email = String(formData.get('email') ?? '');\n    onSubscribe?.(email);\n  }\n\n  return (\n    <footer className=\"w-full overflow-hidden rounded-4xl bg-[#4b6a9b] font-sans antialiased\">\n      <motion.div\n        variants={staggerContainer}\n        initial=\"hidden\"\n        whileInView=\"visible\"\n        viewport={{ once: true, amount: 0.1 }}\n        className=\"px-6 pt-10 pb-0 sm:px-10 lg:px-14 xl:px-20\"\n      >\n        <div className=\"mx-auto flex max-w-[1440px] flex-col gap-8 lg:flex-row lg:gap-12 xl:gap-16\">\n          <motion.div\n            variants={riseItem}\n            className=\"flex shrink-0 gap-2.5 items-start justify-start -translate-y-2\"\n          >\n            <span className=\"shrink-0\">{logoIcon ?? <LogoIcon className='size-8 text-blue-200/50' />}</span>\n            <span className=\"text-lg font-normal tracking-wide text-gray-100 uppercase select-none mt-0.5\">\n              {brandName}\n            </span>\n          </motion.div>\n\n          <motion.nav\n            variants={navStagger}\n            aria-label=\"Footer navigation\"\n            className=\"grid flex-1 grid-cols-2 gap-x-6 gap-y-8 sm:grid-cols-3 lg:gap-x-6 xl:gap-x-8\"\n          >\n            {columns.map((col) => (\n              <motion.div key={col.title} variants={riseItem}>\n                <h3 className=\"text-lg leading-none font-normal tracking-wide text-balance text-gray-100 uppercase\">\n                  {col.title}\n                </h3>\n                <motion.ul\n                  variants={linkStagger}\n                  className=\"mt-4 space-y-[10px]\"\n                >\n                  {col.links.map((link) => (\n                    <motion.li key={link.label} variants={linkItem}>\n                      <a\n                        href={link.href}\n                        className=\"text-md leading-none font-light text-blue-100/80 transition-colors duration-200 hover:text-blue-100\"\n                      >\n                        {link.label}\n                      </a>\n                    </motion.li>\n                  ))}\n                </motion.ul>\n              </motion.div>\n            ))}\n          </motion.nav>\n\n          <motion.div\n            variants={riseItem}\n            className=\"flex w-full shrink-0 flex-col gap-2 sm:max-w-[200px] lg:max-w-xs\"\n          >\n            <div className=\"flex items-center gap-0\">\n              {socialLinks.map((link) => (\n                <motion.a\n                  key={link.label}\n                  href={link.href}\n                  aria-label={link.label}\n                  whileTap={{ scale: 0.96 }}\n                  className=\"flex min-h-10 min-w-10 items-center justify-start rounded-md text-blue-200 transition-colors duration-200 hover:text-blue-100\"\n                >\n                  <span className=\"\">{link.icon}</span>\n                </motion.a>\n              ))}\n            </div>\n\n            <div>\n              <h3 className=\"text-md leading-none font-medium text-gray-100\">\n                Contact Us\n              </h3>\n              <form onSubmit={handleSubmit} className=\"mt-2\">\n                <div className=\"flex gap-2 overflow-hidden rounded-none\">\n                  <label htmlFor=\"footer-14-email\" className=\"sr-only\">\n                    Email address\n                  </label>\n                  <input\n                    id=\"footer14-email\"\n                    name=\"email\"\n                    type=\"email\"\n                    placeholder={emailPlaceholder}\n                    className=\"h-[38px] min-w-0 flex-1 bg-white px-3 text-sm font-normal text-gray-900 placeholder:text-gray-400 focus:outline-none\"\n                  />\n\n                  <motion.button\n                    type=\"submit\"\n                    whileTap={{ scale: 0.96 }}\n                    className=\"text-md flex h-[38px] shrink-0 cursor-pointer items-center gap-1.5 bg-blue-200 pr-2.5 pl-3 font-medium text-blue-950 outline-1 -outline-offset-1 outline-black/10 transition-[background-color] duration-150 text-shadow-2xs hover:bg-blue-200/95 active:bg-blue-200\"\n                  >\n                    <span>{subscribeLabel}</span>\n                  </motion.button>\n                </div>\n\n                <p className=\"text-sm mt-2 leading-tight font-normal text-pretty whitespace-pre-line text-blue-100/60\">\n                  {subscribeTagline}\n                </p>\n              </form>\n            </div>\n          </motion.div>\n        </div>\n\n        <motion.div\n          variants={bottomBarItem}\n          className=\"mx-auto mt-4 max-w-[1440px] border-t border-blue-200/40\"\n        >\n          <div className=\"flex flex-col gap-3 py-4 text-[13px] sm:flex-row sm:items-center sm:justify-between sm:gap-4\">\n            <p className=\"text-md font-normal text-blue-100/80\">\n              {statusLabel}\n              <span className=\"ml-2 font-light text-gray-100\">\n                {statusValue}\n              </span>\n            </p>\n\n            <p className=\"text-md font-normal text-blue-100/80\">{copyright}</p>\n          </div>\n        </motion.div>\n      </motion.div>\n\n      <motion.div\n        variants={heroBrandVariant}\n        initial=\"hidden\"\n        whileInView=\"visible\"\n        viewport={{ once: true, amount: 0.2 }}\n        className=\"relative flex items-end justify-center overflow-hidden bg-[#4b6a9b] px-6 pt-6 sm:pt-8 md:pt-14\"\n        style={{ minHeight: 'clamp(140px, 20vw, 260px)' }}\n      >\n        <p\n          aria-hidden=\"true\"\n          className=\"translate-y-1 text-center font-sans leading-[0.82] font-bold tracking-[-0.02em] text-[#6d8fc0] select-none text-shadow-xs md:translate-y-8\"\n          style={{\n            fontSize: 'clamp(3rem, 15vw, 22rem)',\n            // marginBottom: 'clamp(-0.5rem, -2vw, -4rem)',\n          }}\n        >\n          {heroBrandName}\n        </p>\n      </motion.div>\n    </footer>\n  );\n}\n",
      "type": "registry:ui",
      "target": "components/ui/footer-14.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"
}
