From 83ea4572fe7198d059f115f992defb2652234a7f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BC=A0=E7=BF=94?= Date: Mon, 23 Feb 2026 08:07:24 +0800 Subject: [PATCH] =?UTF-8?q?refactor:=20=E9=87=8D=E6=9E=84=20HeroSection=20?= =?UTF-8?q?=E4=B8=BA=E5=8C=BB=E7=96=97=E5=81=A5=E5=BA=B7=E9=A3=8E=E6=A0=BC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 浅蓝渐变背景 - 专业蓝主色调 - 印章红数据强调 - 移除深色背景和科技感粒子效果 --- src/components/sections/hero-section.tsx | 96 ++++++++++++++---------- 1 file changed, 56 insertions(+), 40 deletions(-) diff --git a/src/components/sections/hero-section.tsx b/src/components/sections/hero-section.tsx index b383c3c..ca44909 100644 --- a/src/components/sections/hero-section.tsx +++ b/src/components/sections/hero-section.tsx @@ -4,7 +4,13 @@ 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 } from 'lucide-react'; +import { ArrowRight, Shield, Zap, Award } from 'lucide-react'; + +const features = [ + { icon: Shield, text: '安全可靠' }, + { icon: Zap, text: '高效便捷' }, + { icon: Award, text: '专业服务' }, +]; export function HeroSection() { const [isVisible, setIsVisible] = useState(false); @@ -56,23 +62,12 @@ export function HeroSection() {
-
-
-
-
- -
- - - - - - - - +
+ +
@@ -81,11 +76,10 @@ export function HeroSection() { initial={{ opacity: 0, y: 20 }} animate={isVisible ? { opacity: 1, y: 0 } : {}} transition={{ duration: 0.6 }} - className="mb-6" + className="mb-8" > - - - 科技创新 · 智慧未来 + + 数字印章 · 智连未来 @@ -93,54 +87,78 @@ 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-[var(--color-text-primary)] leading-tight tracking-tight mb-6" + className="text-5xl sm:text-6xl lg:text-7xl font-bold tracking-tight mb-6" > - {COMPANY_INFO.shortName} -
- 企业数字化转型服务商 + {COMPANY_INFO.shortName} + + + 企业数字化转型服务商 + - {COMPANY_INFO.description} + 融合金融科技专业品质与中国传统美学,为您打造卓越的数字体验 + + {features.map((feature, index) => ( +
+ + {feature.text} +
+ ))} +
+ -
+
{STATS.map((stat, index) => (
- -
); } @@ -174,14 +190,14 @@ function StatItem({ stat, index, shouldAnimate }: { animate={shouldAnimate ? { opacity: 1, y: 0 } : {}} transition={{ duration: 0.5, delay: index * 0.1 }} > -
+
{shouldAnimate ? ( ) : ( - `0${suffix}` + 0{suffix} )}
-
+
{stat.label}