"use client" import Link from "next/link" import { Button } from "@/components/ui/button" import { Input } from "@/components/ui/input" import { Github, Linkedin, Mail, ArrowRight, Sparkles, Heart } from "lucide-react" import { useRef, useState, useEffect } from "react" const footerLinks = [ { title: "Services", links: [ { name: "Web Development", href: "/services" }, { name: "App Development", href: "/services" }, { name: "UI/UX Design", href: "/services" }, { name: "SEO Optimization", href: "/services" }, ], }, { title: "Company", links: [ { name: "About Us", href: "/about" }, { name: "Portfolio", href: "/portfolio" }, { name: "Blog", href: "/blog" }, { name: "Contact", href: "/contact" }, ], }, { title: "Legal", links: [ { name: "Privacy Policy", href: "/privacy" }, { name: "Terms of Service", href: "/terms" }, { name: "Cookie Policy", href: "/cookies" }, ], }, ] const socialLinks = [ { icon: Github, href: "#", label: "GitHub", color: "hover:text-white" }, { icon: Linkedin, href: "#", label: "LinkedIn", color: "hover:text-blue-400" }, { icon: Mail, href: "mailto:hello@nexaflow.dev", label: "Email", color: "hover:text-primary" }, ] export function Footer() { const [email, setEmail] = useState("") const [isSubscribed, setIsSubscribed] = useState(false) const sectionRef = useRef(null) const [isVisible, setIsVisible] = useState(false) useEffect(() => { const observer = new IntersectionObserver( ([entry]) => { if (entry.isIntersecting) { setIsVisible(true) } }, { threshold: 0.1 } ) if (sectionRef.current) { observer.observe(sectionRef.current) } return () => observer.disconnect() }, []) const handleSubscribe = (e: React.FormEvent) => { e.preventDefault() if (email) { setIsSubscribed(true) setEmail("") setTimeout(() => setIsSubscribed(false), 3000) } } return ( ) }