diff --git a/src/components/sections/hero-section.tsx b/src/components/sections/hero-section.tsx index 6c1f2cb..b383c3c 100644 --- a/src/components/sections/hero-section.tsx +++ b/src/components/sections/hero-section.tsx @@ -4,14 +4,7 @@ import { useEffect, useRef, useState } from 'react'; import { motion } from 'framer-motion'; import { Button } from '@/components/ui/button'; import { COMPANY_INFO, STATS } from '@/lib/constants'; -import { ArrowRight, Sparkles, Code2, Cloud, Shield, BarChart3 } from 'lucide-react'; - -const iconMap = { - Code: Code2, - Cloud: Cloud, - BarChart3: BarChart3, - Shield: Shield, -}; +import { ArrowRight, Sparkles } from 'lucide-react'; export function HeroSection() { const [isVisible, setIsVisible] = useState(false); @@ -63,16 +56,16 @@ export function HeroSection() {
-
-
-
+
+
+
- + @@ -90,7 +83,7 @@ export function HeroSection() { transition={{ duration: 0.6 }} className="mb-6" > - + 科技创新 · 智慧未来 @@ -100,18 +93,18 @@ export function HeroSection() { initial={{ opacity: 0, y: 20 }} animate={isVisible ? { opacity: 1, y: 0 } : {}} transition={{ duration: 0.6, delay: 0.1 }} - className="text-4xl sm:text-5xl lg:text-6xl font-bold text-gray-900 dark:text-white leading-tight tracking-tight mb-6" + className="text-4xl sm:text-5xl lg:text-6xl font-bold text-[var(--color-text-primary)] leading-tight tracking-tight mb-6" > {COMPANY_INFO.shortName}
- 企业数字化转型服务商 + 企业数字化转型服务商 {COMPANY_INFO.description} @@ -145,7 +138,7 @@ export function HeroSection() { initial={{ opacity: 0, y: 20 }} animate={isVisible ? { opacity: 1, y: 0 } : {}} transition={{ duration: 0.6, delay: 0.4 }} - className="pt-12 border-t border-gray-200 dark:border-gray-800" + className="pt-12 border-t border-[var(--color-border-primary)]" >
{STATS.map((stat, index) => ( @@ -161,7 +154,7 @@ export function HeroSection() {
-
+
); } @@ -188,7 +181,7 @@ function StatItem({ stat, index, shouldAnimate }: { `0${suffix}` )} -
+
{stat.label}