"use client"; import { ArrowRightOutlined, BulbOutlined, EnvironmentOutlined, FacebookOutlined, InstagramOutlined, LinkedinOutlined, MailOutlined, PhoneOutlined, TeamOutlined, TrophyOutlined, TwitterOutlined } from '@ant-design/icons'; import { Typography } from 'antd'; import { motion } from 'framer-motion'; import React, { useEffect, useState } from 'react'; import styles from './Footer.module.css'; const { Paragraph } = Typography; const Footer: React.FC = () => { const [expandedSections, setExpandedSections] = useState<{ [key: string]: boolean }>({}); const [isMobile, setIsMobile] = useState(false); useEffect(() => { const checkMobile = () => { setIsMobile(window.innerWidth <= 768); }; checkMobile(); window.addEventListener('resize', checkMobile); return () => window.removeEventListener('resize', checkMobile); }, []); const containerVariants = { hidden: { opacity: 0 }, visible: { opacity: 1, transition: { staggerChildren: 0.1 } } }; const itemVariants = { hidden: { y: 20, opacity: 0 }, visible: { y: 0, opacity: 1, transition: { duration: 0.5 } } }; const toggleSection = (sectionKey: string) => { if (isMobile) { setExpandedSections(prev => ({ ...prev, [sectionKey]: !prev[sectionKey] })); } }; const footerSections = [ { key: 'company', title: 'Company', icon: , links: [ { href: '/about', text: 'About Us' }, { href: '/services', text: 'Our Services' }, { href: '/projects', text: 'Portfolio' }, { href: '/contact', text: 'Contact Us' } ] }, { key: 'services', title: 'Services', icon: , links: [ { href: '/services#webdev', text: 'Web Development' }, { href: '/services#mobile', text: 'Mobile Apps' }, { href: '/services#ai', text: 'AI Solutions' }, { href: '/services#cloud', text: 'Cloud Services' } ] }, { key: 'resources', title: 'Resources', icon: , links: [ { href: '/blog', text: 'Blog & Insights' }, { href: '/case-studies', text: 'Case Studies' }, { href: '/whitepapers', text: 'Whitepapers' }, { href: '/webinars', text: 'Webinars' } ] }, { key: 'contact', title: 'Contact Info', icon: , links: [ { href: 'mailto:info@techmaster.com', text: 'info@techmaster.com' }, { href: 'tel:+15551234567', text: '+1 (555) 123-4567' }, { href: '#', text: 'San Francisco, CA' }, { href: '/support', text: '24/7 Support' } ] } ]; const getLinkIcon = (href: string) => { if (href.startsWith('mailto:')) return ; if (href.startsWith('tel:')) return ; if (href.includes('support')) return ; if (href.includes('San Francisco')) return ; return ; }; return ( ); }; export default Footer;