34 lines
1.1 KiB
TypeScript
34 lines
1.1 KiB
TypeScript
import React from 'react';
|
|
import { useTranslations } from 'next-intl';
|
|
import Scribble from '@/components/Scribble';
|
|
|
|
export default function VideoSection() {
|
|
const t = useTranslations('Home.video');
|
|
|
|
return (
|
|
<section className="relative h-[60vh] overflow-hidden">
|
|
<video
|
|
className="w-full h-full object-cover"
|
|
autoPlay
|
|
muted
|
|
loop
|
|
playsInline
|
|
>
|
|
<source src="/uploads/2024/12/making-of-metal-cable-on-factory-2023-11-27-04-55-16-utc-2.webm" type="video/mp4" />
|
|
</video>
|
|
<div className="absolute inset-0 bg-[#0a0a0a]/70 flex items-center justify-center">
|
|
<h2 className="text-3xl md:text-5xl font-bold text-white text-center max-w-4xl px-4 leading-tight">
|
|
{t.rich('title', {
|
|
future: (chunks) => (
|
|
<span className="relative inline-block mx-2">
|
|
<span className="relative z-10 italic">{chunks}</span>
|
|
<Scribble variant="underline" className="w-full h-full top-full left-0" />
|
|
</span>
|
|
)
|
|
})}
|
|
</h2>
|
|
</div>
|
|
</section>
|
|
);
|
|
}
|