Preparar o mesmo efeito que é feito no site do Enzo em https://www.en-zo.dev/ quando passa o cursor sobre o vídeo que se encontra no meio da tela. Alternar o vídeo com a imagem disponível em https://marcelovicente.prof/img/capa_01.png
Browse files- index.html +3 -3
- style.css +26 -0
index.html
CHANGED
|
@@ -271,13 +271,14 @@
|
|
| 271 |
<section class="container mx-auto px-4 py-12 max-w-6xl">
|
| 272 |
<!-- Video Section -->
|
| 273 |
<div id="form-section" class="bg-white rounded-xl shadow-lg p-8 card-hover mb-8 relative">
|
| 274 |
-
<div class="
|
| 275 |
<video class="w-full h-full object-cover" autoplay loop muted playsinline>
|
| 276 |
<source src="https://marcelovicente.prof/live1947/acesso/videos/aovivo.mp4" type="video/mp4">
|
| 277 |
Your browser does not support the video tag.
|
| 278 |
</video>
|
|
|
|
| 279 |
</div>
|
| 280 |
-
|
| 281 |
<div class="h-6"></div>
|
| 282 |
<div class="text-center">
|
| 283 |
<h2 class="text-3xl md:text-4xl font-bold text-gray-800 mb-6">Sua participação é essencial <i class="fas fa-hand-paper ml-2"></i></h2>
|
|
@@ -618,7 +619,6 @@ const countdownInterval = setInterval(function() {
|
|
| 618 |
});
|
| 619 |
});
|
| 620 |
</script>
|
| 621 |
-
<script src="https://huggingface.co/deepsite/deepsite-badge.js"></script>
|
| 622 |
</body>
|
| 623 |
</html>
|
| 624 |
|
|
|
|
| 271 |
<section class="container mx-auto px-4 py-12 max-w-6xl">
|
| 272 |
<!-- Video Section -->
|
| 273 |
<div id="form-section" class="bg-white rounded-xl shadow-lg p-8 card-hover mb-8 relative">
|
| 274 |
+
<div class="video-container" style="width: 50%; margin: 0 auto;">
|
| 275 |
<video class="w-full h-full object-cover" autoplay loop muted playsinline>
|
| 276 |
<source src="https://marcelovicente.prof/live1947/acesso/videos/aovivo.mp4" type="video/mp4">
|
| 277 |
Your browser does not support the video tag.
|
| 278 |
</video>
|
| 279 |
+
<img src="https://marcelovicente.prof/img/capa_01.png" alt="Prof. Marcelo Vicente" class="video-overlay">
|
| 280 |
</div>
|
| 281 |
+
<!-- Espaçamento de uma linha após o video -->
|
| 282 |
<div class="h-6"></div>
|
| 283 |
<div class="text-center">
|
| 284 |
<h2 class="text-3xl md:text-4xl font-bold text-gray-800 mb-6">Sua participação é essencial <i class="fas fa-hand-paper ml-2"></i></h2>
|
|
|
|
| 619 |
});
|
| 620 |
});
|
| 621 |
</script>
|
|
|
|
| 622 |
</body>
|
| 623 |
</html>
|
| 624 |
|
style.css
CHANGED
|
@@ -1,8 +1,34 @@
|
|
|
|
|
| 1 |
body {
|
| 2 |
padding: 2rem;
|
| 3 |
font-family: -apple-system, BlinkMacSystemFont, "Arial", sans-serif;
|
| 4 |
}
|
| 5 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 6 |
h1 {
|
| 7 |
font-size: 16px;
|
| 8 |
margin-top: 0;
|
|
|
|
| 1 |
+
|
| 2 |
body {
|
| 3 |
padding: 2rem;
|
| 4 |
font-family: -apple-system, BlinkMacSystemFont, "Arial", sans-serif;
|
| 5 |
}
|
| 6 |
|
| 7 |
+
.video-container {
|
| 8 |
+
position: relative;
|
| 9 |
+
border-radius: 0.5rem;
|
| 10 |
+
overflow: hidden;
|
| 11 |
+
transition: all 0.3s ease;
|
| 12 |
+
}
|
| 13 |
+
|
| 14 |
+
.video-overlay {
|
| 15 |
+
position: absolute;
|
| 16 |
+
top: 0;
|
| 17 |
+
left: 0;
|
| 18 |
+
width: 100%;
|
| 19 |
+
height: 100%;
|
| 20 |
+
object-fit: cover;
|
| 21 |
+
opacity: 1;
|
| 22 |
+
transition: opacity 0.3s ease;
|
| 23 |
+
}
|
| 24 |
+
|
| 25 |
+
.video-container:hover .video-overlay {
|
| 26 |
+
opacity: 0;
|
| 27 |
+
}
|
| 28 |
+
|
| 29 |
+
.video-container video {
|
| 30 |
+
display: block;
|
| 31 |
+
}
|
| 32 |
h1 {
|
| 33 |
font-size: 16px;
|
| 34 |
margin-top: 0;
|