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}
{points.map((p, i) => (
-
{p}
))}
)
}
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) => (
))}
{/* 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 */}
)
}