From 6dcbde28bcf6ab689f23fd4f7d72cbc193e0d9d6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BC=A0=E7=BF=94?= Date: Sun, 22 Feb 2026 15:18:19 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E6=9B=B4=E6=96=B0=20Hero=20=E5=8C=BA?= =?UTF-8?q?=E5=9F=9F=E6=A0=B7=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 统一使用 CSS 变量 - 增强背景发光效果 - 优化文字颜色层级 - 移除未使用的图标导入 - 统一深色模式样式 --- src/components/sections/hero-section.tsx | 33 ++++++++++-------------- 1 file changed, 13 insertions(+), 20 deletions(-) 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}