From 9650e56dcf4c848de210faa9083ece1a17846ed0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BC=A0=E7=BF=94?= Date: Thu, 23 Apr 2026 21:30:52 +0800 Subject: [PATCH] =?UTF-8?q?refactor(hero-section):=20=E6=9B=BF=E6=8D=A2Sea?= =?UTF-8?q?lButton=E4=B8=BAButton=E7=BB=84=E4=BB=B6=E5=B9=B6=E7=AE=80?= =?UTF-8?q?=E5=8C=96=E7=82=B9=E5=87=BB=E8=BF=BD=E8=B8=AA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 移除SealButton组件,使用更通用的Button组件替代 删除冗余的trackServiceInterest调用,简化点击事件追踪 --- src/components/sections/hero-section-atoms.tsx | 18 +++++++----------- 1 file changed, 7 insertions(+), 11 deletions(-) diff --git a/src/components/sections/hero-section-atoms.tsx b/src/components/sections/hero-section-atoms.tsx index f2d97fe..7b295ca 100644 --- a/src/components/sections/hero-section-atoms.tsx +++ b/src/components/sections/hero-section-atoms.tsx @@ -3,12 +3,13 @@ import { useEffect, useState } from 'react'; import { motion } from 'framer-motion'; import { StaticLink } from '@/components/ui/static-link'; -import { RippleButton, SealButton } from '@/components/ui/ripple-button'; +import { RippleButton } from '@/components/ui/ripple-button'; +import { Button } from '@/components/ui/button'; import { MagneticButton, BlurReveal, CounterWithEffect } from '@/lib/animations'; import { COMPANY_INFO, STATS } from '@/lib/constants'; import { ArrowRight, Shield, Zap, Award } from 'lucide-react'; import { useReducedMotion } from '@/hooks/use-reduced-motion'; -import { trackButtonClick, trackServiceInterest } from '@/lib/analytics'; +import { trackButtonClick } from '@/lib/analytics'; interface HeroContentProps { isVisible: boolean; @@ -95,11 +96,6 @@ export function HeroDescription(_props: HeroContentProps) { export function HeroButtons({ isVisible }: HeroContentProps) { const shouldReduceMotion = useReducedMotion(); - const handleConsultClick = () => { - trackButtonClick('consult_now', 'hero_section'); - trackServiceInterest('consultation'); - }; - const handleLearnMoreClick = () => { trackButtonClick('learn_more', 'hero_section'); scrollTo('about'); @@ -113,12 +109,12 @@ export function HeroButtons({ isVisible }: HeroContentProps) { className="flex flex-col sm:flex-row items-center justify-center gap-4 mb-8" > - - +