import React, { useEffect, useState } from 'react'; import { Row, Col, Typography, Button, Spin } from 'antd'; import { motion } from 'framer-motion'; import { RightOutlined, SearchOutlined, DatabaseOutlined, ThunderboltOutlined, CheckCircleOutlined, CloudServerOutlined } from '@ant-design/icons'; import { getServices } from '../api'; import { useNavigate } from 'react-router-dom'; const { Title, Paragraph } = Typography; const AIServices = () => { const [services, setServices] = useState([]); const [loading, setLoading] = useState(true); const navigate = useNavigate(); useEffect(() => { const fetchServices = async () => { try { const response = await getServices(); setServices(response.data); } catch (error) { console.error("Failed to fetch services:", error); } finally { setLoading(false); } }; fetchServices(); }, []); if (loading) { return (
Loading services...
); } return (
AI 全栈<span style={{ color: '#00f0ff', textShadow: '0 0 10px rgba(0,240,255,0.5)' }}>解决方案</span> 从数据处理到模型部署,我们为您提供一站式 AI 基础设施服务。
{services.map((item, index) => ( navigate(`/services/${item.id}`)} style={{ cursor: 'pointer' }} >
{/* HUD 装饰线 */}
{item.display_icon ? ( {item.title} ) : (
)}

{item.title}

{item.description}

{item.features_list && item.features_list.map((feat, i) => (
{feat}
))}
))} {/* 动态流程图优化 */}
<span className="neon-text-green">服务流程</span> {[ { title: '需求分析', icon: , desc: '深度沟通需求' }, { title: '数据准备', icon: , desc: '高效数据处理' }, { title: '模型训练', icon: , desc: '高性能算力' }, { title: '测试验证', icon: , desc: '多维精度测试' }, { title: '私有化部署', icon: , desc: '全栈落地部署' } ].map((step, i) => (
{step.icon}
{step.title}
{step.desc}
{/* 连接线 */} {i < 4 && (
)}
))}
); }; export default AIServices;