Add video background to landing hero and lower text position

This commit is contained in:
2026-03-09 16:28:48 -05:00
parent 2f6fabe64e
commit 9a36eb84e8
2 changed files with 34 additions and 1 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 945 KiB

View File

@ -16,6 +16,11 @@
<!-- Minimalist Hero --> <!-- Minimalist Hero -->
<header class="hero-minimal"> <header class="hero-minimal">
<video autoplay muted loop playsinline class="hero-video">
<source src="/videopromo.mp4" type="video/mp4">
</video>
<div class="hero-overlay"></div>
<div class="hero-content"> <div class="hero-content">
<h1 class="hero-title" data-aos="fade-up"> <h1 class="hero-title" data-aos="fade-up">
{{ t('landing.hero.title') }} {{ t('landing.hero.title') }}
@ -227,12 +232,40 @@ const scrollToInstall = () => {
/* Hero */ /* Hero */
.hero-minimal { .hero-minimal {
height: 90vh; position: relative;
height: 100vh;
display: flex; display: flex;
align-items: center; align-items: center;
justify-content: center; justify-content: center;
text-align: center; text-align: center;
padding: 0 24px; padding: 0 24px;
overflow: hidden;
}
.hero-video {
position: absolute;
top: 50%;
left: 50%;
min-width: 100%;
min-height: 100%;
width: auto;
height: auto;
z-index: -2;
transform: translate(-50%, -50%);
object-fit: cover;
}
.hero-overlay {
position: absolute;
inset: 0;
background: radial-gradient(circle, rgba(0,0,0,0.4) 0%, rgba(0,0,0,0.8) 100%);
z-index: -1;
}
.hero-content {
position: relative;
z-index: 1;
padding-top: 80px; /* Lower the text */
} }
.hero-title { .hero-title {