{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "footer-2",
  "dependencies": [
    "lucide-react"
  ],
  "registryDependencies": [
    "button",
    "input"
  ],
  "files": [
    {
      "path": "src/components/watermelon-ui/footer-2.tsx",
      "content": "import React from \"react\";\nimport { Input } from \"@/components/ui/input\";\nimport { Button } from \"@/components/ui/button\";\n\nexport interface FooterLink {\n  label: string;\n  href: string;\n}\n\nexport interface FooterLinkGroup {\n  title: string;\n  links: FooterLink[];\n}\n\nexport interface SocialLink {\n  icon: React.ReactNode;\n  href: string;\n  label: string;\n}\n\nexport interface Footer2Props {\n  logo: React.ReactNode;\n  brandName: string;\n  tagline: string;\n  socialLinks: SocialLink[];\n  socialText: string;\n  linkGroups: FooterLinkGroup[];\n  newsletterTitle: string;\n  newsletterSubtitle: string;\n  newsletterPlaceholder?: string;\n  newsletterButtonText?: string;\n  copyright: string;\n  floatingIcon?: React.ReactNode;\n}\n\nexport function Footer2({\n  logo,\n  brandName,\n  tagline,\n  socialLinks,\n  socialText,\n  linkGroups,\n  newsletterTitle,\n  newsletterSubtitle,\n  newsletterPlaceholder = \"Enter email address\",\n  newsletterButtonText = \"Subscribe\",\n  copyright,\n  floatingIcon,\n}: Footer2Props) {\n  return (\n    <footer className=\"bg-background w-full  px-4 py-8 sm:px-6 lg:px-8\">\n      <div className=\"mx-auto flex max-w-7xl flex-col gap-4 sm:gap-6 lg:flex-row\">\n        <div className=\"bg-primary text-primary-foreground flex min-h-[400px] shrink-0 flex-col justify-between rounded-[2.5rem] p-10 sm:p-12 lg:w-[420px]\">\n          <div>\n            <div className=\"flex items-center gap-2\">\n              <div className=\"text-primary-foreground\">{logo}</div>\n              <span className=\"text-xl font-bold tracking-tight\">\n                {brandName}\n              </span>\n            </div>\n\n            <div className=\"mt-24 sm:mt-32\">\n              <h2 className=\"text-2xl leading-snug font-medium sm:text-3xl\">\n                {tagline}\n              </h2>\n            </div>\n          </div>\n\n          <div className=\"mt-16 flex items-center gap-4 sm:mt-24\">\n            <span className=\"text-md opacity-90\">{socialText}</span>\n            <div className=\"flex items-center gap-2\">\n              {socialLinks.map((social, idx) => (\n                <a\n                  key={idx}\n                  href={social.href}\n                  className=\"bg-background dark:bg-muted text-primary rounded-xl p-2.5 transition-colors\"\n                  aria-label={social.label}\n                >\n                  {social.icon}\n                </a>\n              ))}\n            </div>\n          </div>\n        </div>\n\n        <div className=\"bg-muted/50 relative flex flex-1 flex-col justify-between overflow-hidden rounded-[2.5rem] p-10 sm:p-12\">\n          {floatingIcon && (\n            <div className=\"text-muted-foreground/10 pointer-events-none absolute -top-12 -right-12 h-64 w-64 rotate-12\">\n              {floatingIcon}\n            </div>\n          )}\n\n          <div className=\"relative z-10 flex flex-wrap gap-16 sm:gap-24\">\n            {linkGroups.map((group, idx) => (\n              <div key={idx} className=\"space-y-6\">\n                <h3 className=\"text-muted-foreground text-lg\">{group.title}</h3>\n                <ul className=\"space-y-4\">\n                  {group.links.map((link, lIdx) => (\n                    <li key={lIdx}>\n                      <a\n                        href={link.href}\n                        className=\"hover:text-primary text-sm font-medium transition-colors\"\n                      >\n                        {link.label}\n                      </a>\n                    </li>\n                  ))}\n                </ul>\n              </div>\n            ))}\n          </div>\n\n          <div className=\"relative z-10 mt-24 flex flex-col items-start justify-between gap-8 xl:flex-row xl:items-end\">\n            <div className=\"text-muted-foreground order-2 text-xs xl:order-1\">\n              {copyright}\n            </div>\n\n            <div className=\"order-1 w-full space-y-4 sm:max-w-sm xl:order-2\">\n              <div className=\"space-y-1\">\n                <p className=\"text-muted-foreground text-sm font-medium\">\n                  {newsletterSubtitle}\n                </p>\n                <h3 className=\"text-foreground text-base font-semibold\">\n                  {newsletterTitle}\n                </h3>\n              </div>\n              <form\n                className=\"relative flex items-center\"\n                onSubmit={(e) => e.preventDefault()}\n              >\n                <Input\n                  type=\"email\"\n                  placeholder={newsletterPlaceholder}\n                  className=\"bg-muted focus-visible:ring-primary w-full rounded-full border-transparent py-6 pr-32 pl-6 shadow-[0_0_0_0.5px_rgba(0,0,0,0.03),0_2px_4px_0_rgba(0,0,0,0.05),inset_0_2px_0_0px_rgba(255,255,255,0.5)] outline-none focus-visible:border-none focus-visible:ring-1 dark:shadow-[0_0_0_0.5px_rgba(0,0,0,0.03),0_2px_4px_0_rgba(0,0,0,0.05),inset_0_2px_0_0px_rgba(255,255,255,0.1)]\"\n                />\n                <Button\n                  type=\"submit\"\n                  className=\"from-primary to-muted/40 border-primary absolute right-1.5 h-9 rounded-full bg-linear-to-b px-5 shadow-[0_0_0_0.5px_rgba(0,0,0,0.03),0_2px_4px_0_rgba(0,0,0,0.05),inset_0_1px_0_0px_rgba(255,255,255,0.5)]\"\n                >\n                  {newsletterButtonText}\n                </Button>\n              </form>\n            </div>\n          </div>\n        </div>\n      </div>\n    </footer>\n  );\n}\n",
      "type": "registry:ui",
      "target": "components/ui/footer-2.tsx"
    }
  ],
  "type": "registry:ui"
}
