Files
asset-homepage/components/HeroSection.tsx

45 lines
1.1 KiB
TypeScript
Raw Normal View History

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-29 16:23:10 +08:00
<section className="relative w-full" style={{ overflow: 'hidden' }}>
2026-01-28 17:55:01 +08:00
<video
autoPlay
loop
muted
playsInline
className="absolute inset-0 w-full h-full object-cover"
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
<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
}}
>
<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>
);
}