'use client'; import { motion } from 'framer-motion'; import { useLocale } from '@/lib/i18n/locale-context'; import { cn } from '@/lib/utils'; import { ParticleCanvas } from './ParticleCanvas'; import { Typewriter } from './Typewriter'; import { Counter } from '@/components/ui/Counter'; const fadeUp = (delay = 0) => ({ initial: { opacity: 0, y: 28 }, animate: { opacity: 1, y: 0 }, transition: { duration: 0.7, ease: [0.22, 1, 0.36, 1], delay }, }); export function Hero() { const { t, locale } = useLocale(); return ( {/* Particle network background */} {/* Edge fade so particles don't fight section seams */} {/* Availability chip */} {t.hero.availability} {/* Eyebrow */} {t.hero.eyebrow} {/* Name */} {t.hero.name} {/* Headline */} {t.hero.headlineLead}{' '} {t.hero.headlineAccent} {' '} {t.hero.headlineTrail} {/* Role typewriter */} {/* Sub */} {t.hero.sub} {/* CTAs */} {t.hero.ctaPrimary} {t.hero.ctaSecondary} {/* Metrics */} {t.hero.metrics.map((m, i) => ( {m.label} ))} {/* Scroll cue */} {t.hero.scroll} ); } function Arrow({ locale }: { locale: 'fa' | 'en' }) { return ( ); }