{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "footer-22",
  "dependencies": [
    "@hugeicons/core-free-icons",
    "@hugeicons/react",
    "framer-motion",
    "motion"
  ],
  "files": [
    {
      "path": "src/components/watermelon-ui/footer-22.tsx",
      "content": "'use client'\nimport { HugeiconsIcon } from '@hugeicons/react';\nimport { ArrowUpRight01Icon, ArrowRight01Icon } from '@hugeicons/core-free-icons';\nimport { motion, type Variants } from 'motion/react';\n\nexport interface LinkItem {\n    label: string;\n    href: string;\n}\n\nexport interface OfferColumn {\n    title: string;\n    links: LinkItem[];\n}\n\nexport interface Footer22Props {\n    brandName?: string;\n    offerColumns?: OfferColumn[];\n    newsletterHeadline?: string;\n    newsletterDescription?: string;\n    contactHeading?: string;\n    contactDescription?: string;\n    emailContact?: string;\n    bottomLinks?: LinkItem[];\n}\n\nconst staggerContainer: Variants = {\n    hidden: { opacity: 0 },\n    visible: {\n        opacity: 1,\n        transition: {\n            staggerChildren: 0.1,\n            delayChildren: 0.05,\n        },\n    },\n};\n\nconst riseItem: Variants = {\n    hidden: { opacity: 0, y: 20, filter: 'blur(4px)' },\n    visible: {\n        opacity: 1,\n        y: 0,\n        filter: 'blur(0px)',\n        transition: { type: 'spring', duration: 0.6, bounce: 0 },\n    },\n};\n\nconst gridItem: Variants = {\n    hidden: { opacity: 0, scale: 0.98 },\n    visible: {\n        opacity: 1,\n        scale: 1,\n        transition: { duration: 0.8, ease: 'easeOut' },\n    },\n};\n\nexport default function Footer22({\n    brandName = \"WATERMELON\",\n    offerColumns = [\n        {\n            title: \"OFFER\",\n            links: [\n                { label: \"Calendars\", href: \"#\" },\n                { label: \"Refills & accessories\", href: \"#\" },\n                { label: \"Notebooks\", href: \"#\" },\n                { label: \"Bundles\", href: \"#\" },\n            ]\n        },\n        {\n            title: \"OFFER\",\n            links: [\n                { label: \"Calendars\", href: \"#\" },\n                { label: \"Refills & accessories\", href: \"#\" },\n                { label: \"Notebooks\", href: \"#\" },\n                { label: \"Bundles\", href: \"#\" },\n            ]\n        },\n        {\n            title: \"OFFER\",\n            links: [\n                { label: \"Calendars\", href: \"#\" },\n                { label: \"Refills & accessories\", href: \"#\" },\n                { label: \"Notebooks\", href: \"#\" },\n                { label: \"Bundles\", href: \"#\" },\n            ]\n        },\n        {\n            title: \"OFFER\",\n            links: [\n                { label: \"Calendars\", href: \"#\" },\n                { label: \"Refills & accessories\", href: \"#\" },\n                { label: \"Notebooks\", href: \"#\" },\n                { label: \"Bundles\", href: \"#\" },\n            ]\n        }\n    ],\n    newsletterHeadline = \"Get 20% off the first Order\",\n    newsletterDescription = \"Sign up for our monthly newsletter. That's it!\",\n    contactHeading = \"Contact Us\",\n    contactDescription = \"Receive calm nature wrapped in moonlight silence.\",\n    emailContact = \"Watermelon@business.com\",\n    bottomLinks = [\n        { label: \"About\", href: \"#\" },\n        { label: \"Support\", href: \"#\" },\n        { label: \"Features\", href: \"#\" },\n        { label: \"Support\", href: \"#\" },\n    ]\n}: Footer22Props) {\n    return (\n        <motion.footer\n            variants={staggerContainer}\n            initial=\"hidden\"\n            whileInView=\"visible\"\n            viewport={{ once: true, amount: 0.15 }}\n            className=\"w-full bg-white dark:bg-[#0a0a0a] text-neutral-900 dark:text-neutral-100 font-sans transition-colors duration-300\"\n        >\n\n            {/* Top Section */}\n            <div className=\"max-w-[1440px] mx-auto px-6 md:px-12 lg:px-20 pt-20 pb-16\">\n                <div className=\"grid grid-cols-1 lg:grid-cols-12 gap-16 lg:gap-8\">\n\n                    {/* Left: Offer Columns */}\n                    <div className=\"lg:col-span-8 grid grid-cols-2 md:grid-cols-4 gap-8\">\n                        {offerColumns.map((col, idx) => (\n                            <motion.div key={idx} variants={riseItem} className=\"flex flex-col gap-6\">\n                                <h4 className=\"font-semibold text-[13px] tracking-wide uppercase text-neutral-900 dark:text-neutral-100\">\n                                    {col.title}\n                                </h4>\n                                <ul className=\"flex flex-col gap-3.5\">\n                                    {col.links.map((link, lIdx) => (\n                                        <li key={lIdx}>\n                                            <a href={link.href} className=\"text-[14px] text-neutral-600 dark:text-neutral-400 hover:text-neutral-900 dark:hover:text-white transition-colors\">\n                                                {link.label}\n                                            </a>\n                                        </li>\n                                    ))}\n                                </ul>\n                            </motion.div>\n                        ))}\n                    </div>\n\n                    {/* Right: Newsletter & Contact */}\n                    <motion.div variants={riseItem} className=\"lg:col-span-4 flex flex-col gap-10 lg:pl-10\">\n                        {/* Newsletter */}\n                        <div className=\"flex flex-col gap-3\">\n                            <h3 className=\"text-[22px] font-medium tracking-tight text-neutral-900 dark:text-neutral-100\">{newsletterHeadline}</h3>\n                            <p className=\"text-[15px] text-neutral-600 dark:text-neutral-400\">\n                                {newsletterDescription}\n                            </p>\n                        </div>\n\n                        {/* Contact Form */}\n                        <div className=\"flex flex-col gap-4\">\n                            <h3 className=\"text-[22px] font-medium tracking-tight text-neutral-900 dark:text-neutral-100\">{contactHeading}</h3>\n                            <form className=\"flex flex-col sm:flex-row items-stretch sm:items-center gap-2 w-full\" onSubmit={(e) => e.preventDefault()}>\n                                <input\n                                    type=\"email\"\n                                    placeholder=\"Enter your email\"\n                                    className=\"flex-1 min-w-0 bg-white dark:bg-transparent border border-neutral-300 dark:border-neutral-700 rounded-sm px-4 py-2.5 text-[15px] focus:outline-none focus:border-neutral-500 dark:focus:border-neutral-400 transition-colors\"\n                                    required\n                                />\n                                <button type=\"submit\" className=\"bg-[#1a1a1a] dark:bg-white text-white dark:text-black rounded-sm px-6 py-2.5 flex items-center justify-center gap-2 font-medium transition-transform hover:opacity-90 active:scale-95 shrink-0\">\n                                    Subscribe <HugeiconsIcon icon={ArrowRight01Icon} size={18} />\n                                </button>\n                            </form>\n                            <p className=\"text-[14px] text-neutral-600 dark:text-neutral-400 leading-relaxed max-w-[280px] mt-1\">\n                                {contactDescription}\n                            </p>\n                        </div>\n                    </motion.div>\n\n                </div>\n\n                {/* Middle Email/Reach Out Section */}\n                <motion.div variants={riseItem} className=\"pt-12 flex flex-col md:flex-row justify-between items-start md:items-end gap-12\">\n\n                    <div className=\"flex flex-col gap-4\">\n                        <span className=\"text-neutral-500 dark:text-neutral-400 text-lg md:text-xl font-normal\">Reach out at:</span>\n                        <a href={`mailto:${emailContact}`} className=\"text-2xl md:text-4xl lg:text-[40px] font-light text-neutral-800 dark:text-neutral-200 hover:text-black dark:hover:text-white flex items-center gap-3 group transition-colors\">\n                            {emailContact}\n                            <HugeiconsIcon icon={ArrowUpRight01Icon} size={24} className=\"text-neutral-500 group-hover:text-black dark:group-hover:text-white transition-colors\" />\n                        </a>\n                    </div>\n\n                    <div className=\"flex flex-wrap items-center gap-6 md:gap-10 pb-1\">\n                        {bottomLinks.map((link, idx) => (\n                            <a key={idx} href={link.href} className=\"text-[17px] text-neutral-600 dark:text-neutral-400 hover:text-neutral-900 dark:hover:text-white transition-colors\">\n                                {link.label}\n                            </a>\n                        ))}\n                    </div>\n\n                </motion.div>\n            </div>\n\n            {/* Bottom Banner with Pixel-Perfect Mosaic Grid */}\n            <motion.div variants={gridItem} className=\"relative w-full overflow-hidden bg-white dark:bg-[#0a0a0a]\">\n\n                {/* CSS Mosaic Grid Generation */}\n                <div className=\"absolute inset-0 flex flex-col w-full h-full\">\n                    {Array.from({ length: 12 }).map((_, r) => (\n                        <div key={r} className=\"flex-1 flex w-full\">\n                            {Array.from({ length: 48 }).map((_, c) => {\n                                // Deterministic pseudo-randomness for the mosaic pattern\n                                const hash = Math.sin(r * 12.9898 + c * 78.233) * 43758.5453;\n                                const rand = hash - Math.floor(hash);\n\n                                // Gradient mapping: top rows are lighter/transparent, bottom rows are solid cyan/blue\n                                const rowFactor = r / 11; // 0 to 1\n\n                                // Base opacity combines the random noise with the vertical gradient\n                                const opacity = (rand * 0.2) + (rowFactor * 0.85);\n\n                                return (\n                                    <div\n                                        key={c}\n                                        className=\"flex-1 border-r border-b border-transparent\"\n                                        style={{\n                                            backgroundColor: `rgba(89, 195, 224, ${opacity})`\n                                        }}\n                                    />\n                                )\n                            })}\n                        </div>\n                    ))}\n                </div>\n\n                {/* Big Text Container */}\n                <div className=\"relative flex items-center justify-center w-full py-2 md:py-3 px-1 md:px-2 z-10 overflow-hidden\">\n                    <span className=\"text-[13vw] md:text-[14vw] font-black text-white/90 dark:text-white/60 mix-blend-overlay tracking-tighter leading-none select-none text-center whitespace-nowrap\">\n                        {brandName.toUpperCase()}\n                    </span>\n                </div>\n\n            </motion.div>\n\n        </motion.footer>\n    );\n}",
      "type": "registry:ui",
      "target": "components/ui/footer-22.tsx"
    }
  ],
  "type": "registry:ui"
}
