{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "footer-12",
  "dependencies": [
    "framer-motion",
    "lucide-react",
    "motion",
    "react-icons"
  ],
  "registryDependencies": [
    "button"
  ],
  "files": [
    {
      "path": "src/components/watermelon-ui/footer-12.tsx",
      "content": "import { type FormEvent, type ReactNode } from 'react';\nimport { motion, type Variants } from 'motion/react';\nimport {\n  FaArrowRight,\n  FaFacebookF,\n  FaInstagram,\n  FaLinkedinIn,\n  FaMoon,\n  FaSun,\n  FaXTwitter,\n} from 'react-icons/fa6';\nimport { ChevronDown } from 'lucide-react';\nimport LogoIcon from '@/assets/logo-icon';\n\nexport interface Footer12Link {\n  label: string;\n  href: string;\n}\n\nexport interface Footer12Column {\n  title: string;\n  links: Footer12Link[];\n}\n\nexport interface Footer12SocialLink {\n  label: string;\n  href: string;\n  icon: ReactNode;\n}\n\nexport interface Footer12Props {\n  newsletterTitle?: string;\n  inputPlaceholder?: string;\n  subscribeText?: string;\n  onSubscribe?: (email: string) => void;\n  columns?: Footer12Column[];\n  brandName?: string;\n  copyright?: string;\n  socialLinks?: Footer12SocialLink[];\n  languageLabel?: string;\n}\n\nconst columnsDefault: Footer12Column[] = [\n  {\n    title: 'SOLUTIONS',\n    links: [\n      { label: 'Transactional Emails', href: '#' },\n      { label: 'Marketing Emails', href: '#' },\n      { label: 'Email Automation', href: '#' },\n      { label: 'Email Builder', href: '#' },\n      { label: 'SMTP', href: '#' },\n    ],\n  },\n  {\n    title: 'DOCS',\n    links: [\n      { label: 'Getting Started', href: '#' },\n      { label: 'API Reference', href: '#' },\n      { label: 'Guides', href: '#' },\n      { label: 'Transactional Emails', 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: 'Terms & Conditions', href: '#' },\n      { label: 'Subprocessors', href: '#' },\n      { label: 'Privacy Policy', href: '#' },\n    ],\n  },\n];\n\nconst socialLinksDefault: Footer12SocialLink[] = [\n  { label: 'Facebook', href: '#', icon: <FaFacebookF /> },\n  { label: 'X', href: '#', icon: <FaXTwitter /> },\n  { label: 'Instagram', href: '#', icon: <FaInstagram /> },\n  { label: 'LinkedIn', href: '#', icon: <FaLinkedinIn /> },\n];\n\nconst footerContainer: Variants = {\n  hidden: { opacity: 0 },\n  visible: {\n    opacity: 1,\n    transition: {\n      delayChildren: 0.08,\n      staggerChildren: 0.1,\n    },\n  },\n};\n\nconst riseItem: Variants = {\n  hidden: { opacity: 0, y: 20, filter: 'blur(10px)' },\n  visible: {\n    opacity: 1,\n    y: 0,\n    filter: 'blur(0px)',\n    transition: { type: 'spring', duration: 0.65, bounce: 0 },\n  },\n};\n\nconst brandItem: Variants = {\n  hidden: { opacity: 0, y: 28, filter: 'blur(12px)' },\n  visible: {\n    opacity: 1,\n    y: 0,\n    filter: 'blur(0px)',\n    transition: { type: 'spring', duration: 0.85, bounce: 0 },\n  },\n};\n\n\nexport function Footer12({\n  newsletterTitle = 'Keep up to date with our quarterly newsletter, \"You’ve got mail.\"',\n  inputPlaceholder = 'Enter Your Email',\n  subscribeText = 'Subscribe',\n  onSubscribe,\n  columns = columnsDefault,\n  brandName = 'Melon',\n  copyright = '© 2026 Melon , Inc. All rights reserved.',\n  socialLinks = socialLinksDefault,\n  languageLabel = 'English',\n}: Footer12Props) {\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    <motion.footer\n      variants={footerContainer}\n      initial=\"hidden\"\n      whileInView=\"visible\"\n      viewport={{ once: true, amount: 0.28 }}\n      className=\"w-full overflow-hidden bg-neutral-800 px-6 py-10 font-sans text-stone-50 antialiased sm:px-10 lg:px-12\"\n    >\n      <div className=\"mx-auto flex min-h-[390px] w-full max-w-[1440px] flex-col justify-between\">\n        <div className=\"grid gap-10 lg:grid-cols-[minmax(250px,390px)_1fr] lg:gap-20\">\n          <motion.div variants={riseItem} className=\"max-w-[390px]\">\n            <h2 className=\"max-w-[330px] text-[18px] leading-[1.08] font-normal tracking-normal text-stone-50 sm:text-[19px]\">\n              {newsletterTitle}\n            </h2>\n\n            <form onSubmit={handleSubmit} className=\"mt-6 max-w-[390px]\">\n              <input\n                name=\"email\"\n                type=\"email\"\n                placeholder={inputPlaceholder}\n                className=\"h-[50px] w-full rounded-md bg-stone-300 px-6 text-sm font-normal text-neutral-900 outline outline-1 outline-black/10 transition-[background-color,outline-color] duration-200 placeholder:text-neutral-500 focus:bg-stone-100 focus:outline-white/40\"\n              />\n\n              <motion.button\n                type=\"submit\"\n                whileTap={{ scale: 0.96 }}\n                className=\"text-md mt-5 inline-flex min-h-10 cursor-pointer items-center gap-2 rounded-full bg-stone-200 px-5 font-medium text-neutral-800 shadow-[inset_0px_2px_2px_1px_rgba(255,255,255,1),inset_0_-2px_2px_1px_rgba(0,0,0,0.1)] outline-2 outline-stone-200 transition-[background-color,transform] duration-200 hover:bg-stone-200/90 hover:bg-white active:scale-[0.98]\"\n              >\n                <span>{subscribeText}</span>\n                <FaArrowRight className=\"size-4\" />\n              </motion.button>\n            </form>\n          </motion.div>\n\n          <motion.nav\n            variants={footerContainer}\n            aria-label=\"Footer navigation\"\n            className=\"grid grid-cols-2 gap-x-10 gap-y-8 sm:grid-cols-4 lg:pt-0\"\n          >\n            {columns.map((column) => (\n              <motion.div key={column.title} variants={riseItem}>\n                <h3 className=\"text-lg leading-none font-normal tracking-wide text-stone-50 uppercase\">\n                  {column.title}\n                </h3>\n                <ul className=\"mt-5 space-y-3\">\n                  {column.links.map((link) => (\n                    <li key={link.label}>\n                      <a\n                        href={link.href}\n                        className=\"text-sm leading-none font-light tracking-wide text-stone-50/90 transition-colors duration-200 hover:text-white\"\n                      >\n                        {link.label}\n                      </a>\n                    </li>\n                  ))}\n                </ul>\n              </motion.div>\n            ))}\n          </motion.nav>\n        </div>\n\n        <motion.div\n          variants={brandItem}\n          className=\"mx-auto mt-12 flex w-full items-center justify-center  overflow-hidden sm:mt-8 lg:mt-4\"\n        >\n          <div className=\"hidden shrink-0 md:block\">\n            <LogoIcon className=\"size-20 lg:size-60\" />\n          </div>\n          <svg\n            className=\"h-auto w-full flex-1 select-none\"\n            viewBox={`0 0 ${Math.max(brandName.length * 90, 400)} 110`}\n            preserveAspectRatio=\"xMidYMid meet\"\n            aria-label={brandName}\n          >\n            <text\n              x=\"50%\"\n              y=\"98%\"\n              dominantBaseline=\"alphabetic\"\n              textAnchor=\"middle\"\n              textLength=\"90%\"\n              lengthAdjust=\"spacing\"\n              className=\"fill-stone-50 font-sans font-normal tracking-wider\"\n              fontSize=\"130\"\n            >\n              {brandName}\n            </text>\n          </svg>\n        </motion.div>\n\n        <motion.div\n          variants={riseItem}\n          className=\"mt-9 grid gap-6 text-stone-50/95 md:grid-cols-3 md:items-center\"\n        >\n          <p className=\"text-md leading-none font-light text-stone-300\">\n            {copyright}\n          </p>\n\n          <div className=\"flex items-center gap-5 md:justify-center\">\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-center text-stone-200 transition-colors duration-200 hover:text-stone-50 md:min-h-6 md:min-w-6\"\n              >\n                <span className=\"md:text-md text-base\">{link.icon}</span>\n              </motion.a>\n            ))}\n          </div>\n\n          <div className=\"flex items-center gap-3 md:justify-end\">\n            <div className=\"flex h-7 items-center rounded-full bg-stone-50 p-0.5 shadow-[0_1px_0_rgba(255,255,255,0.4)_inset]\">\n              <button\n                type=\"button\"\n                className=\"flex h-full items-center gap-1.5 rounded-full bg-neutral-200 px-2.5 text-[10px] font-medium text-neutral-800 shadow-sm transition-colors\"\n              >\n                <FaSun className=\"h-[10px] w-[10px]\" />\n                <span>Light</span>\n              </button>\n              <button\n                type=\"button\"\n                className=\"flex h-full items-center gap-1.5 rounded-full px-2.5 text-[10px] font-medium text-neutral-500 transition-colors hover:text-neutral-800\"\n              >\n                <FaMoon className=\"h-[10px] w-[10px]\" />\n                <span>Dark</span>\n              </button>\n            </div>\n\n            <button\n              type=\"button\"\n              className=\"text-md inline-flex min-h-7 items-center gap-2 rounded-full bg-stone-50 px-4 font-normal text-neutral-700 shadow-[0_1px_0_rgba(255,255,255,0.4)_inset] transition-[background-color,transform] duration-200 hover:bg-white active:scale-[0.98]\"\n            >\n              <span>{languageLabel}</span>\n              <ChevronDown className=\"h-4 w-4\" />\n            </button>\n          </div>\n        </motion.div>\n      </div>\n    </motion.footer>\n  );\n}\n",
      "type": "registry:ui",
      "target": "components/ui/footer-12.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"
}
