Skip to content

Commit d2f80fa

Browse files
committed
fix(video): made sure the video in the homepage takes up the entire container; fixed gaps on the sides
1 parent 40d682a commit d2f80fa

File tree

1 file changed

+11
-10
lines changed

1 file changed

+11
-10
lines changed

app/page.tsx

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -144,16 +144,17 @@ export default function Home() {
144144
transition={{ duration: 0.5 }}
145145
className="overflow-hidden rounded-2xl sm:rounded-3xl border border-border bg-white/40 backdrop-blur-sm shadow-xl"
146146
>
147-
<video
148-
className="w-full h-auto aspect-video"
149-
controls
150-
playsInline
151-
preload="metadata"
152-
poster=""
153-
>
154-
<source src="/video/VideoIntroduction.mp4" type="video/mp4" />
155-
Your browser does not support the video tag.
156-
</video>
147+
<div className="aspect-video w-full bg-black">
148+
<video
149+
className="block h-full w-full object-cover"
150+
controls
151+
playsInline
152+
preload="metadata"
153+
>
154+
<source src="/video/VideoIntroduction.mp4" type="video/mp4" />
155+
Your browser does not support the video tag.
156+
</video>
157+
</div>
157158
</motion.div>
158159

159160
{/* Rankings Table */}

0 commit comments

Comments
 (0)