'use client'; import { useEffect, useState, useRef } from 'react'; import { InsightCard } from '@/components/ui/insight-card'; import { Button } from '@/components/ui/button'; import { ArrowRight } from 'lucide-react'; interface Insight { id: string; title: string; excerpt: string; category: string; readTime: string; publishedAt: string; imageUrl?: string; href: string; featured?: boolean; } const MOCK_INSIGHTS: Insight[] = [ { id: '1', title: '2025年技术趋势:AI驱动的数字化转型', excerpt: '深入探讨人工智能如何重塑企业技术架构,以及如何把握AI时代的机遇', category: '技术趋势', readTime: '8 分钟', publishedAt: '2026-02-10', imageUrl: '/insights/ai-trend.jpg', href: '/insights/ai-trend-2025', featured: true, }, { id: '2', title: '微服务架构最佳实践指南', excerpt: '从单体应用到微服务的演进之路,包含实战案例和避坑指南', category: '架构设计', readTime: '12 分钟', publishedAt: '2026-02-08', imageUrl: '/insights/microservices.jpg', href: '/insights/microservices-best-practices', }, { id: '3', title: '云原生技术栈选型指南', excerpt: 'Kubernetes、Docker、Service Mesh等技术栈的深度对比与选型建议', category: '云原生', readTime: '10 分钟', publishedAt: '2026-02-05', imageUrl: '/insights/cloud-native.jpg', href: '/insights/cloud-native-stack-guide', }, ]; export function InsightsSection() { const [isVisible, setIsVisible] = useState(false); const sectionRef = useRef(null); useEffect(() => { const observer = new IntersectionObserver( ([entry]) => { if (entry?.isIntersecting) { setIsVisible(true); } }, { threshold: 0.1 } ); if (sectionRef.current) { observer.observe(sectionRef.current); } return () => observer.disconnect(); }, []); return (

技术洞察

分享前沿技术趋势、最佳实践和深度思考,助力企业数字化转型

{MOCK_INSIGHTS.map((insight) => ( ))}
); }