'use client'; import { useState, useEffect } from 'react'; import { getTranslations, type Language } from '@/lib/languages'; export default function SecurityPageClient({ params }: { params: { lang: string } }) { const [isLoaded, setIsLoaded] = useState(false); const lang = params.lang as Language; const t = getTranslations(lang); useEffect(() => { setIsLoaded(true); }, []); const securityServices = [ { icon: '🛡️', color: 'from-red-500 to-pink-500', data: t.pages.security.ddosProtection, }, { icon: '🔥', color: 'from-orange-500 to-red-500', data: t.pages.security.firewall, }, { icon: '🔒', color: 'from-green-500 to-emerald-500', data: t.pages.security.ssl, }, ]; return (
{/* Header */}

{t.pages.security.title}

{t.pages.security.subtitle}

{t.pages.security.description}

{/* Security Services */}
{securityServices.map((service, index) => (
{service.icon}

{service.data.title}

{service.data.description}

    {service.data.features.map((feature, featureIndex) => (
  • {feature}
  • ))}
))}
{/* Security Stats */}
{[ { label: '攻击拦截', value: '99.9%', icon: '🛡️' }, { label: '响应时间', value: '<1ms', icon: '⚡' }, { label: '全球节点', value: '50+', icon: '🌍' }, { label: '防护带宽', value: '1Tbps', icon: '📊' }, ].map((stat, index) => (
{stat.icon}
{stat.value}
{stat.label}
))}
{/* Threat Map */}

实时威胁监控

今日拦截统计

{[ { type: 'DDoS 攻击', count: '1,234', color: 'bg-red-500' }, { type: 'SQL 注入', count: '567', color: 'bg-orange-500' }, { type: '恶意爬虫', count: '890', color: 'bg-yellow-500' }, { type: 'CC 攻击', count: '345', color: 'bg-pink-500' }, ].map((threat, index) => (
{threat.type}
{threat.count}
))}

防护状态

{[ { service: 'DDoS 防护', status: '正常', color: 'text-green-400', }, { service: '云防火墙', status: '正常', color: 'text-green-400', }, { service: 'SSL 证书', status: '正常', color: 'text-green-400', }, { service: '威胁检测', status: '正常', color: 'text-green-400', }, ].map((item, index) => (
{item.service} {item.status}
))}
); }