AwsLinker/app/components/products/ProductsServerComponent.tsx

209 lines
13 KiB
TypeScript
Raw Normal View History

2025-09-16 17:19:58 +08:00
import Link from 'next/link';
import ServerHeader from '@/app/components/ServerHeader';
import Footer from '@/app/components/Footer';
import { productsTranslations } from '@/translations/products';
import ProductsClientComponent from './ProductsClientComponent';
interface ProductsServerComponentProps {
locale: string;
}
export default function ProductsServerComponent({ locale }: ProductsServerComponentProps) {
// 获取当前语言的翻译
const t = productsTranslations[locale as keyof typeof productsTranslations] || productsTranslations['zh-CN'];
return (
<div className="min-h-screen bg-gray-50">
<ServerHeader
language={locale}
translations={t}
locale={locale}
/>
<main>
{/* Hero Section */}
<section className="bg-gradient-to-br from-blue-50 via-white to-purple-50 py-20">
<div className="container mx-auto px-6 text-center">
<h1 className="text-5xl font-bold text-gray-900 mb-6 leading-tight">
{t.title}
</h1>
<p className="text-xl text-gray-600 mb-8 max-w-3xl mx-auto">
{t.subtitle}
</p>
</div>
</section>
{/* Products Section */}
<ProductsClientComponent
categories={t.categories}
contactText={t.contact}
locale={locale}
/>
{/* 技术优势 */}
<section className="py-20 bg-gray-50">
<div className="container mx-auto px-6">
<div className="text-center mb-16">
<h2 className="text-4xl font-bold text-gray-900 mb-4"></h2>
<p className="text-xl text-gray-600 max-w-3xl mx-auto">
AWS官方合作伙伴
</p>
</div>
<div className="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-8">
<div className="text-center">
<div className="w-16 h-16 bg-blue-100 rounded-full flex items-center justify-center mx-auto mb-4">
<svg className="w-8 h-8 text-blue-600" fill="none" stroke="currentColor" viewBox="0 0 24 24">
<path strokeLinecap="round" strokeLinejoin="round" strokeWidth={2} d="M9 12l2 2 4-4m5.618-4.016A11.955 11.955 0 0112 2.944a11.955 11.955 0 01-8.618 3.04A12.02 12.02 0 003 9c0 5.591 3.824 10.29 9 11.622 5.176-1.332 9-6.03 9-11.622 0-1.042-.133-2.052-.382-3.016z" />
</svg>
</div>
<h3 className="text-xl font-semibold text-gray-900 mb-2"></h3>
<p className="text-gray-600">99.9%</p>
</div>
<div className="text-center">
<div className="w-16 h-16 bg-green-100 rounded-full flex items-center justify-center mx-auto mb-4">
<svg className="w-8 h-8 text-green-600" fill="none" stroke="currentColor" viewBox="0 0 24 24">
<path strokeLinecap="round" strokeLinejoin="round" strokeWidth={2} d="M13 10V3L4 14h7v7l9-11h-7z" />
</svg>
</div>
<h3 className="text-xl font-semibold text-gray-900 mb-2"></h3>
<p className="text-gray-600">SSD存储</p>
</div>
<div className="text-center">
<div className="w-16 h-16 bg-purple-100 rounded-full flex items-center justify-center mx-auto mb-4">
<svg className="w-8 h-8 text-purple-600" fill="none" stroke="currentColor" viewBox="0 0 24 24">
<path strokeLinecap="round" strokeLinejoin="round" strokeWidth={2} d="M4.318 6.318a4.5 4.5 0 000 6.364L12 20.364l7.682-7.682a4.5 4.5 0 00-6.364-6.364L12 7.636l-1.318-1.318a4.5 4.5 0 00-6.364 0z" />
</svg>
</div>
<h3 className="text-xl font-semibold text-gray-900 mb-2">7x24支持</h3>
<p className="text-gray-600"></p>
</div>
<div className="text-center">
<div className="w-16 h-16 bg-orange-100 rounded-full flex items-center justify-center mx-auto mb-4">
<svg className="w-8 h-8 text-orange-600" fill="none" stroke="currentColor" viewBox="0 0 24 24">
<path strokeLinecap="round" strokeLinejoin="round" strokeWidth={2} d="M12 8c-1.657 0-3 .895-3 2s1.343 2 3 2 3 .895 3 2-1.343 2-3 2m0-8c1.11 0 2.08.402 2.599 1M12 8V7m0 1v8m0 0v1m0-1c-1.11 0-2.08-.402-2.599-1" />
</svg>
</div>
<h3 className="text-xl font-semibold text-gray-900 mb-2"></h3>
<p className="text-gray-600"></p>
</div>
</div>
</div>
</section>
{/* 客户案例 */}
<section className="py-20">
<div className="container mx-auto px-6">
<div className="text-center mb-16">
<h2 className="text-4xl font-bold text-gray-900 mb-4"></h2>
<p className="text-xl text-gray-600">500+</p>
</div>
<div className="grid grid-cols-1 md:grid-cols-3 gap-8">
<div className="bg-white rounded-xl shadow-lg p-8 hover:shadow-xl transition-shadow duration-300">
<div className="text-center mb-6">
<div className="w-20 h-20 bg-blue-100 rounded-full flex items-center justify-center mx-auto mb-4">
<span className="text-2xl font-bold text-blue-600">E</span>
</div>
<h3 className="text-xl font-semibold text-gray-900"></h3>
<p className="text-gray-600"></p>
</div>
<p className="text-gray-700 mb-4">
&ldquo;使CDN服务访60%&rdquo;
</p>
<div className="text-sm text-gray-500">
<span className="font-semibold">:</span> 40% |
<span className="font-semibold ml-2">:</span> 60%
</div>
</div>
<div className="bg-white rounded-xl shadow-lg p-8 hover:shadow-xl transition-shadow duration-300">
<div className="text-center mb-6">
<div className="w-20 h-20 bg-green-100 rounded-full flex items-center justify-center mx-auto mb-4">
<span className="text-2xl font-bold text-green-600">F</span>
</div>
<h3 className="text-xl font-semibold text-gray-900"></h3>
<p className="text-gray-600"></p>
</div>
<p className="text-gray-700 mb-4">
&ldquo;&rdquo;
</p>
<div className="text-sm text-gray-500">
<span className="font-semibold">:</span> |
<span className="font-semibold ml-2">:</span> 99.99%
</div>
</div>
<div className="bg-white rounded-xl shadow-lg p-8 hover:shadow-xl transition-shadow duration-300">
<div className="text-center mb-6">
<div className="w-20 h-20 bg-purple-100 rounded-full flex items-center justify-center mx-auto mb-4">
<span className="text-2xl font-bold text-purple-600">G</span>
</div>
<h3 className="text-xl font-semibold text-gray-900"></h3>
<p className="text-gray-600"></p>
</div>
<p className="text-gray-700 mb-4">
&ldquo;&rdquo;
</p>
<div className="text-sm text-gray-500">
<span className="font-semibold">:</span> 10 |
<span className="font-semibold ml-2">:</span> &lt;50ms
</div>
</div>
</div>
</div>
</section>
{/* CTA Section */}
<section className="bg-gradient-to-r from-blue-600 to-purple-600 py-20">
<div className="container mx-auto px-6 text-center">
<h2 className="text-4xl font-bold text-white mb-6">
</h2>
<p className="text-xl text-blue-100 mb-8 max-w-2xl mx-auto">
</p>
<div className="flex flex-col sm:flex-row gap-4 justify-center mb-8">
<Link
href={locale === 'zh-CN' ? '/contact' : `/${locale}/contact`}
className="bg-white text-blue-600 px-8 py-4 rounded-lg font-semibold hover:bg-gray-100 transition-colors duration-300"
>
</Link>
<Link
href={locale === 'zh-CN' ? '/support' : `/${locale}/support`}
className="border-2 border-white text-white px-8 py-4 rounded-lg font-semibold hover:bg-white hover:text-blue-600 transition-colors duration-300"
>
</Link>
</div>
<div className="grid grid-cols-2 md:grid-cols-4 gap-8 max-w-4xl mx-auto">
<div className="text-center">
<div className="text-3xl font-bold text-white mb-2">500+</div>
<div className="text-blue-100"></div>
</div>
<div className="text-center">
<div className="text-3xl font-bold text-white mb-2">99.9%</div>
<div className="text-blue-100"></div>
</div>
<div className="text-center">
<div className="text-3xl font-bold text-white mb-2">7x24</div>
<div className="text-blue-100"></div>
</div>
<div className="text-center">
<div className="text-3xl font-bold text-white mb-2">5+</div>
<div className="text-blue-100"></div>
</div>
</div>
</div>
</section>
</main>
<Footer translations={t} />
</div>
);
}