{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "footer-23",
  "dependencies": [
    "framer-motion",
    "lucide-react",
    "motion"
  ],
  "files": [
    {
      "path": "src/components/watermelon-ui/footer-23.tsx",
      "content": "'use client';\n\nimport { type FormEvent } from 'react';\nimport { motion, type Variants } from 'motion/react';\nimport {\n  ArrowRight,\n} from 'lucide-react';\nimport LogoIcon from '@/assets/logo-icon';\n\ninterface LinkItem {\n  label: string;\n  href: string;\n}\n\ninterface NavColumn {\n  title: string;\n  links: LinkItem[];\n}\n\ninterface Footer23Props {\n  brandName?: string;\n  ctaHeading?: string;\n  ctaSubtitle?: string;\n  getDemoLabel?: string;\n  getDemoHref?: string;\n  signInLabel?: string;\n  signInHref?: string;\n  heroImage?: string;\n  heroAlt?: string;\n  emailPlaceholder?: string;\n  subscribeLabel?: string;\n  onSubscribe?: (email: string) => void;\n  columns?: NavColumn[];\n  language?: string;\n}\n\nconst defaultColumns: NavColumn[] = [\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: 'DOCS',\n    links: [\n      { label: 'Getting Started', href: '#' },\n      { label: 'API Reference', href: '#' },\n      { label: 'Guides', href: '#' },\n      { label: 'Transactional Emails', 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: 'Privacy Policy', href: '#' },\n      { label: 'Terms & Conditions', href: '#' },\n      { label: 'Subprocessors', href: '#' },\n    ],\n  },\n];\n\n\nconst sectionStagger: Variants = {\n  hidden: {},\n  visible: {\n    transition: { staggerChildren: 0.1, delayChildren: 0.05 },\n  },\n};\n\n\nconst riseClean: Variants = {\n  hidden: { opacity: 0, y: 22 },\n  visible: {\n    opacity: 1,\n    y: 0,\n    transition: { type: 'spring', stiffness: 220, damping: 28, mass: 0.9 },\n  },\n};\n\nconst imageReveal: Variants = {\n  hidden: { opacity: 0, scale: 1.05 },\n  visible: {\n    opacity: 1,\n    scale: 1,\n    transition: { duration: 1.1, ease: [0.22, 1, 0.36, 1] },\n  },\n};\n\n\nconst midStagger: Variants = {\n  hidden: {},\n  visible: {\n    transition: { staggerChildren: 0.08, delayChildren: 0.03 },\n  },\n};\n\nconst midItem: Variants = {\n  hidden: { opacity: 0, y: 16 },\n  visible: {\n    opacity: 1,\n    y: 0,\n    transition: { type: 'spring', stiffness: 260, damping: 30, mass: 0.8 },\n  },\n};\n\n\nconst linkCascade: Variants = {\n  hidden: {},\n  visible: { transition: { staggerChildren: 0.035 } },\n};\n\nconst linkTrickle: Variants = {\n  hidden: { opacity: 0, x: -6 },\n  visible: {\n    opacity: 1,\n    x: 0,\n    transition: { type: 'spring', stiffness: 350, damping: 30, mass: 0.6 },\n  },\n};\n\n\nconst btnPop: Variants = {\n  hidden: { opacity: 0, scale: 0.9 },\n  visible: {\n    opacity: 1,\n    scale: 1,\n    transition: { type: 'spring', stiffness: 420, damping: 22, mass: 0.6 },\n  },\n};\n\n\nconst wordmarkSlam: Variants = {\n  hidden: { opacity: 0, y: 60 },\n  visible: {\n    opacity: 1,\n    y: 0,\n    transition: { type: 'spring', stiffness: 100, damping: 22, mass: 1.8 },\n  },\n};\n\n\n\n\nexport default function Footer23({\n  brandName = 'Watermelon',\n  ctaHeading = 'Build your app in minutes',\n  ctaSubtitle = 'Start building with our free tools and test models directly in your app.',\n  getDemoLabel = 'GET A DEMO',\n  getDemoHref = '#',\n  signInLabel = 'SIGN IN FOR FREE',\n  signInHref = '#',\n  heroImage = 'https://assets.watermelon.sh/footer-23-bg.avif',\n  heroAlt = 'Person standing in a sunlit flower field at golden hour',\n  emailPlaceholder = 'Enter Your Email',\n  subscribeLabel = 'Subscribe',\n  onSubscribe,\n  columns = defaultColumns,\n}: Footer23Props) {\n  function handleSubmit(e: FormEvent<HTMLFormElement>) {\n    e.preventDefault();\n    const fd = new FormData(e.currentTarget);\n    onSubscribe?.(String(fd.get('email') ?? ''));\n  }\n\n  return (\n    <footer className=\"w-full overflow-hidden bg-stone-50 font-sans antialiased\">\n      {/* ── Top CTA section ─────────────────────────────────────────────── */}\n      <motion.div\n        variants={sectionStagger}\n        initial=\"hidden\"\n        whileInView=\"visible\"\n        viewport={{ once: true, amount: 0.2 }}\n        className=\"flex flex-col gap-6 px-6 pt-12 pb-8 sm:px-10 lg:flex-row lg:items-start lg:justify-between lg:gap-10 lg:px-14 xl:px-16\"\n      >\n        {/* Left: heading + subtitle */}\n        <motion.div\n          variants={riseClean}\n          className=\"flex flex-col gap-2 lg:max-w-md xl:max-w-lg\"\n        >\n          <h2 className=\"text-[clamp(1.75rem,4.5vw,2.5rem)] leading-[1.15] font-normal tracking-[-0.02em] text-zinc-900\">\n            {ctaHeading}\n          </h2>\n          <p className=\"text-md max-w-sm text-zinc-500\">{ctaSubtitle}</p>\n        </motion.div>\n\n        <motion.div\n          variants={sectionStagger}\n          className=\"flex flex-wrap items-end gap-3 lg:mt-1\"\n        >\n          <motion.a\n            variants={btnPop}\n            href={getDemoHref}\n            className=\"inline-flex min-h-10 items-center gap-2 border border-zinc-300 bg-stone-200 px-4 font-mono text-sm font-medium text-zinc-700 transition-[background-color,border-color,transform] duration-200 hover:border-zinc-400 hover:bg-stone-100 active:scale-[0.97]\"\n          >\n            {getDemoLabel}\n            <ArrowRight className=\"size-4 stroke-1\" />\n          </motion.a>\n          <motion.a\n            variants={btnPop}\n            href={signInHref}\n            className=\"inline-flex min-h-10 items-center gap-2 border border-zinc-300 bg-stone-200 px-4 font-mono text-sm font-medium text-zinc-700 transition-[background-color,border-color,transform] duration-200 hover:border-zinc-400 hover:bg-stone-100 active:scale-[0.97]\"\n          >\n            {signInLabel}\n            <ArrowRight className=\"size-4 stroke-1\" />\n          </motion.a>\n        </motion.div>\n      </motion.div>\n\n      {/* ── Wide landscape image ──────────────────────────────────────── */}\n      <motion.div\n        variants={imageReveal}\n        initial=\"hidden\"\n        whileInView=\"visible\"\n        viewport={{ once: true, amount: 0.15 }}\n        className=\"-oultine-offset-1 mx-6 overflow-hidden outline outline-black/20 sm:mx-10 lg:mx-14 xl:mx-16\"\n      >\n        <img\n          src={heroImage}\n          alt={heroAlt}\n          className=\"h-[220px] w-full object-cover object-bottom sm:h-[280px] md:h-[320px] lg:h-[360px]\"\n        />\n      </motion.div>\n\n      {/* ── Middle: brand + email form + nav columns ─────────────────── */}\n      <motion.div\n        variants={midStagger}\n        initial=\"hidden\"\n        whileInView=\"visible\"\n        viewport={{ once: true, amount: 0.12 }}\n        className=\"grid grid-cols-1 gap-6 md:gap-40 px-6 pt-8 pb-6 sm:px-10 md:grid-cols-[auto_1fr] lg:px-14 xl:px-16\"\n      >\n        {/* Left: logo + subscribe */}\n        <motion.div\n          variants={midItem}\n          className=\"flex flex-col gap-4 md:max-w-xs\"\n        >\n          {/* Brand */}\n          <div className=\"flex items-center gap-1.5\">\n            <LogoIcon className=\"size-8 text-zinc-500\" />\n            <span className=\"text-md font-medium text-zinc-900 uppercase select-none\">\n              {brandName}\n            </span>\n          </div>\n\n          {/* Subscribe form */}\n          <form onSubmit={handleSubmit} className=\"flex w-full max-w-xs gap-0\">\n            <label htmlFor=\"footer23-email\" className=\"sr-only\">\n              Email address\n            </label>\n            <input\n              id=\"footer23-email\"\n              name=\"email\"\n              type=\"email\"\n              placeholder={emailPlaceholder}\n              required\n              className=\"h-9 w-full border-2 border-zinc-300 bg-white px-3 text-[0.8125rem] text-zinc-900 placeholder:text-zinc-400 focus:border-zinc-500 focus:outline-none\"\n            />\n            <motion.button\n              type=\"submit\"\n              className=\"group mt-0 h-9 cursor-pointer border-2 border-l-0 border-zinc-300 bg-stone-100 px-3 text-sm font-normal text-zinc-700 transition-[background-color] hover:bg-stone-200 active:bg-stone-300\"\n            >\n              {subscribeLabel}\n            </motion.button>\n          </form>\n        </motion.div>\n\n        <motion.nav\n          variants={midStagger}\n          aria-label=\"Footer navigation\"\n          className=\"grid grid-cols-2 gap-x-6 gap-y-8 sm:grid-cols-4\"\n        >\n          {columns.map((col) => (\n            <motion.div\n              key={col.title}\n              variants={midItem}\n              className=\"flex flex-col gap-3\"\n            >\n              <h3 className=\"text-sm font-medium text-zinc-400 uppercase\">\n                {col.title}\n              </h3>\n              <motion.ul variants={linkCascade} className=\"flex flex-col gap-2\">\n                {col.links.map((link, i) => (\n                  <motion.li key={`${link.label}-${i}`} variants={linkTrickle}>\n                    <a\n                      href={link.href}\n                      className=\"text-sm leading-none font-medium text-zinc-600 transition-colors duration-150 hover:text-zinc-900\"\n                    >\n                      {link.label}\n                    </a>\n                  </motion.li>\n                ))}\n              </motion.ul>\n            </motion.div>\n          ))}\n        </motion.nav>\n      </motion.div>\n\n      <div className=\"relative overflow-hidden\">\n        <motion.div\n          variants={wordmarkSlam}\n          initial=\"hidden\"\n          whileInView=\"visible\"\n          viewport={{ once: true, amount: 0.3 }}\n          className=\"flex items-end overflow-hidden px-4 pt-2 sm:px-6 lg:px-8\"\n          aria-hidden=\"true\"\n        >\n          <svg\n            className=\"w-full select-none\"\n            viewBox={`0 0 ${Math.max(brandName.length * 95, 400)} 120`}\n            preserveAspectRatio=\"xMidYMid meet\"\n            aria-label={brandName}\n          >\n            <text\n              x=\"50%\"\n              y=\"100%\"\n              dominantBaseline=\"alphabetic\"\n              textAnchor=\"middle\"\n              textLength=\"100%\"\n              lengthAdjust=\"spacing\"\n              fontSize=\"150\"\n              fontWeight=\"500\"\n              fontFamily=\"sans-serif\"\n              fill=\"#1c1917\"\n            >\n              {brandName.toUpperCase()}\n            </text>\n          </svg>\n        </motion.div>\n      </div>\n    </footer>\n  );\n}\n",
      "type": "registry:ui",
      "target": "components/ui/footer-23.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"
}
