test(unit): expand unit tests and fix stress test robustness
- Add comprehensive useFocusTrap tests (edge cases, disabled elements, empty containers) - Add useSwipeGesture tests (haptic feedback, touch events, disabled state, effect deps) - Enhance animations.test.tsx with Framer Motion mock and component tests - Fix stress-test.js body.length undefined error when requests fail - Fix home-content-v14.tsx for consistency - Clean up generated performance test summary files
This commit is contained in:
@@ -106,29 +106,21 @@ function HeroSection({ heroData, stats }: {
|
||||
|
||||
<div className="max-w-container mx-auto px-4 sm:px-6 lg:px-10 relative z-10 w-full py-24 sm:py-32 md:py-40 lg:py-48">
|
||||
<div className="max-w-4xl">
|
||||
{/* 品牌标识:Logo + 公司名 */}
|
||||
{/* 品牌标识:Logo 本身已包含印章 + 公司名 + NOVALON */}
|
||||
<motion.div
|
||||
initial={{ opacity: 0, y: 20 }}
|
||||
animate={{ opacity: 1, y: 0 }}
|
||||
transition={{ duration: 0.6, delay: 0, ease: EASE_OUT }}
|
||||
className="flex items-center gap-3 mb-8"
|
||||
className="mb-8"
|
||||
>
|
||||
<Image
|
||||
src="/logo.svg"
|
||||
alt={`${COMPANY_INFO.name} Logo`}
|
||||
width={192}
|
||||
height={48}
|
||||
className="h-10 w-auto sm:h-12"
|
||||
width={224}
|
||||
height={56}
|
||||
className="h-12 w-auto sm:h-14"
|
||||
priority
|
||||
/>
|
||||
<div className="flex flex-col">
|
||||
<span className="text-sm sm:text-base font-semibold text-ink leading-tight">
|
||||
{COMPANY_INFO.name}
|
||||
</span>
|
||||
<span className="text-[10px] sm:text-xs tracking-[0.2em] text-text-muted uppercase">
|
||||
NOVALON
|
||||
</span>
|
||||
</div>
|
||||
</motion.div>
|
||||
|
||||
{/* 主标题:大胆、直接 */}
|
||||
|
||||
Reference in New Issue
Block a user