From a75673fa272ce538710ba6af8ce755d82675595a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BC=A0=E7=BF=94?= Date: Mon, 23 Feb 2026 21:19:54 +0800 Subject: [PATCH] =?UTF-8?q?refactor(hero-section):=20=E7=A7=BB=E9=99=A4?= =?UTF-8?q?=E6=9C=AA=E4=BD=BF=E7=94=A8=E7=9A=84=E5=8A=A8=E7=94=BB=E5=AF=BC?= =?UTF-8?q?=E5=85=A5=E5=B9=B6=E4=BC=98=E5=8C=96=E6=A0=B7=E5=BC=8F=E7=B1=BB?= =?UTF-8?q?=E5=90=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 删除未使用的动画组件导入(FadeUp, StaggerContainer等) 将min-w-[180px]替换为更简洁的min-w-45 调整背景渐变类名从bg-gradient-to-b到bg-linear-to-b --- src/components/sections/hero-section.tsx | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/components/sections/hero-section.tsx b/src/components/sections/hero-section.tsx index 6820e9b..f889ed5 100644 --- a/src/components/sections/hero-section.tsx +++ b/src/components/sections/hero-section.tsx @@ -1,9 +1,9 @@ 'use client'; import { useEffect, useRef, useState } from 'react'; -import { motion, AnimatePresence } from 'framer-motion'; +import { motion } from 'framer-motion'; import { RippleButton, SealButton } from '@/components/ui/ripple-button'; -import { FadeUp, StaggerContainer, StaggerItem, CountUp, FloatingElement, SplitText, GradientText, MagneticButton, BlurReveal, CounterWithEffect } from '@/lib/animations'; +import { SplitText, GradientText, MagneticButton, BlurReveal, CounterWithEffect } from '@/lib/animations'; import { InkDecoration, InkBackground } from '@/components/ui/ink-decoration'; import { COMPANY_INFO, STATS } from '@/lib/constants'; import { ArrowRight, Shield, Zap, Award } from 'lucide-react'; @@ -64,7 +64,7 @@ export function HeroSection() {
@@ -115,7 +115,7 @@ export function HeroSection() { handleScrollTo('contact')} - className="min-w-[180px]" + className="min-w-45" > 立即咨询 @@ -126,7 +126,7 @@ export function HeroSection() { size="lg" variant="outline" onClick={() => handleScrollTo('about')} - className="min-w-[180px]" + className="min-w-45" > 了解更多