import React, { useState } from 'react' import { ChevronRight, Server, Shield, Headphones, Phone, Mail, MapPin, CheckCircle2 } from 'lucide-react' import { useLanguage } from '../contexts/LanguageContext.jsx' import { useReveal } from '../components/useReveal.js' const serviceIcons = [Server, Shield, Headphones] function ServiceCard({ icon: Icon, title, description, points }) { const ref = useReveal() return (

{title}

{description}

) } export default function Home() { const { t } = useLanguage() const [formState, setFormState] = useState({ name: '', company: '', message: '' }) const [submitted, setSubmitted] = useState(false) const aboutRef = useReveal() const contactRef = useReveal() const services = t('services.items') const stats = [t('about.stat1'), t('about.stat2'), t('about.stat3')] const handleSubmit = (e) => { e.preventDefault() setSubmitted(true) } return (
{/* Hero */}
IT-аутсорсинг · Безопасность · Поддержка

{t('hero.title')}

{t('hero.subtitle')}

{/* Services */}

{t('services.title')}

{t('services.subtitle')}

{services.map((svc, i) => ( ))}
{/* About */}

{t('about.title')}

{t('about.text1')}

{t('about.text2')}

{stats.map((s, i) => (
{s.value}
{s.label}
))}
{/* Partners */}

{t('partners.title')}

{t('partners.subtitle')}

{[ { name: 'RU-CENTER', sub: 'Руцентр' }, { name: 'REG.RU', sub: 'Регистратор доменов' }, { name: 'МТВ', sub: 'Телекоммуникации' }, { name: 'КОНТУР', sub: 'Электронная отчётность' }, ].map(p => (
{p.name} {p.sub}
))}
{/* Contact */}

{t('contact.title')}

{t('contact.subtitle')}

{t('contact.phone')}
{t('contact.phones').map((phone, i) => ( {phone} ))}
{t('contact.email')}
info@sag24.ru
{t('contact.address')}
{t('contact.addressValue')}
{submitted ? (

{t('contact.formSuccess')}

) : (
setFormState({ ...formState, name: e.target.value })} className="w-full bg-white/10 border border-white/10 rounded-lg px-4 py-3 text-white placeholder-slate-400 focus:outline-none focus:border-blue-500 transition-colors text-sm" /> setFormState({ ...formState, company: e.target.value })} className="w-full bg-white/10 border border-white/10 rounded-lg px-4 py-3 text-white placeholder-slate-400 focus:outline-none focus:border-blue-500 transition-colors text-sm" />