2026-01-27 17:26:30 +08:00
|
|
|
'use client';
|
|
|
|
|
|
2026-01-28 17:55:01 +08:00
|
|
|
import HeroTitle from './HeroTitle';
|
|
|
|
|
import HeroButtons from './HeroButtons';
|
2026-01-27 17:26:30 +08:00
|
|
|
|
|
|
|
|
export default function HeroSection() {
|
2026-01-28 17:55:01 +08:00
|
|
|
|
2026-01-27 17:26:30 +08:00
|
|
|
return (
|
2026-01-28 17:55:01 +08:00
|
|
|
<section className="relative w-full" style={{ overflow: 'hidden' }} suppressHydrationWarning>
|
|
|
|
|
{/* Background Video */}
|
|
|
|
|
<video
|
|
|
|
|
autoPlay
|
|
|
|
|
loop
|
|
|
|
|
muted
|
|
|
|
|
playsInline
|
|
|
|
|
className="absolute inset-0 w-full h-full object-cover"
|
2026-01-29 09:48:05 +08:00
|
|
|
style={{
|
|
|
|
|
zIndex: 0,
|
|
|
|
|
objectFit: 'cover',
|
|
|
|
|
objectPosition: 'center center',
|
|
|
|
|
minWidth: '100%',
|
|
|
|
|
minHeight: '100%',
|
|
|
|
|
transform: 'scale(1.1)'
|
|
|
|
|
}}
|
2026-01-28 17:55:01 +08:00
|
|
|
>
|
|
|
|
|
<source src="/hero-background.mp4" type="video/mp4" />
|
|
|
|
|
</video>
|
|
|
|
|
|
2026-01-27 17:26:30 +08:00
|
|
|
{/* .header - 背景容器 */}
|
|
|
|
|
<div
|
2026-01-28 17:55:01 +08:00
|
|
|
className="flex flex-col items-start justify-center flex-shrink-0 relative"
|
2026-01-27 17:26:30 +08:00
|
|
|
style={{
|
|
|
|
|
background: 'linear-gradient(to left, rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.55))',
|
2026-01-28 17:55:01 +08:00
|
|
|
padding: '114px 85px 164px 85px',
|
|
|
|
|
minHeight: '670px',
|
|
|
|
|
zIndex: 1
|
2026-01-27 17:26:30 +08:00
|
|
|
}}
|
2026-01-28 17:55:01 +08:00
|
|
|
suppressHydrationWarning
|
2026-01-27 17:26:30 +08:00
|
|
|
>
|
|
|
|
|
{/* .frame-21 - 主内容容器 */}
|
|
|
|
|
<div className="flex flex-col gap-[60px] flex-shrink-0 w-[926px] relative">
|
2026-01-28 17:55:01 +08:00
|
|
|
<HeroTitle />
|
|
|
|
|
<HeroButtons />
|
2026-01-27 17:26:30 +08:00
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</section>
|
|
|
|
|
);
|
|
|
|
|
}
|