fix: Add aspect-ratio to video container and preload metadata

This commit is contained in:
Paul Gauthier (aider) 2025-03-19 13:55:50 -07:00
parent 68d175f1c5
commit 5349c99c74
2 changed files with 2 additions and 1 deletions

View file

@ -193,6 +193,7 @@ nav {
box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
border-radius: 8px;
overflow: hidden;
aspect-ratio: 2656 / 2160;
}
.video-container video {

View file

@ -38,7 +38,7 @@
<div class="hero-video">
<div class="video-container">
<video autoplay loop muted playsinline>
<video autoplay loop muted playsinline preload="metadata">
<source src="/assets/shell-cmds-small.mp4" type="video/mp4">
Your browser does not support the video tag.
</video>