import { useState } from 'react' import { Send, Share2, AtSign, MessageCircle, MapPin, Phone, Mail, ChevronsUp } from 'lucide-react' function scrollToTop() { window.scrollTo({ top: 0, behavior: 'smooth' }) } /* curved top edge with a centered scroll-to-top button (matches the Figma) */ function FooterCurve() { return (
{/* white (page) above, navy below, with a smooth dip on the LEFT side */} {/* scroll-to-top button sitting in the dip (left side) */}
) } const NAVY = '#071d49' const GOLD = '#c9a227' /* round social buttons (gold filled, like the screenshot) */ const SOCIALS = [ { Icon: Send, name: 'تلگرام', href: '#' }, { Icon: Share2, name: 'لینکدین', href: '#' }, { Icon: AtSign, name: 'توییتر', href: '#' }, { Icon: MessageCircle, name: 'آپارات', href: '#' }, ] function SocialIcon({ Icon, name, href }: { Icon: typeof Send; name: string; href: string }) { const [hovered, setHovered] = useState(false) return ( setHovered(true)} onMouseLeave={() => setHovered(false)} style={{ width: 42, height: 42, borderRadius: '50%', flexShrink: 0, background: GOLD, color: NAVY, display: 'flex', alignItems: 'center', justifyContent: 'center', textDecoration: 'none', cursor: 'pointer', transition: 'transform 150ms, opacity 150ms', transform: hovered ? 'translateY(-3px)' : 'none', opacity: hovered ? 0.9 : 1, }} > ) } /* center nav — the navbar items */ const NAV_LINKS = [ { label: 'رادار آینده', href: '/radar' }, { label: 'آمار و داده', href: '#' }, { label: 'چندرسانه‌ای', href: '#' }, { label: 'در یک نگاه', href: '/at-a-glance' }, { label: 'شبکه خبرگان', href: '#' }, { label: 'درباره ما', href: '#' }, ] function NavItem({ href, label }: { href: string; label: string }) { const [hovered, setHovered] = useState(false) return ( setHovered(true)} onMouseLeave={() => setHovered(false)} style={{ display: 'flex', alignItems: 'center', gap: 8, padding: '6px 0', fontSize: 13.5, color: hovered ? '#fff' : 'rgba(255,255,255,0.6)', textDecoration: 'none', transition: 'color 150ms', flexDirection: 'row-reverse', justifyContent: 'flex-end', }} > {label} ) } /* contact rows */ const CONTACT = [ { Icon: MapPin, label: 'نشانی:', value: 'اصفهان، خیابان سعادت‌آباد' }, { Icon: Phone, label: 'شماره تماس:', value: '۰۳۱ - ۳۸۸۸۴۵۳۹', ltr: true }, { Icon: Mail, label: 'پست الکترونیک:', value: 'info@steelfutures.com', ltr: true, accent: true }, ] function NewsletterBox() { const [email, setEmail] = useState('') const [done, setDone] = useState(false) return (
عضویت در خبرنامه اندیشکده
setEmail(e.target.value)} placeholder="ایمیل خود را وارد کنید..." disabled={done} style={{ flex: 1, border: 'none', padding: '11px 14px', fontSize: 13, fontFamily: 'inherit', background: 'transparent', color: '#fff', outline: 'none', direction: 'rtl', minWidth: 0, }} />
) } export function Footer() { return ( ) }