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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 19 |
</html>
|
|
|
|
| 1 |
+
<!DOCTYPE html>
|
| 2 |
+
<html lang="pt-BR">
|
| 3 |
+
<head>
|
| 4 |
+
<meta charset="UTF-8" />
|
| 5 |
+
<title>Vídeo Vertical 9:16</title>
|
| 6 |
+
<meta name="viewport" content="width=device-width, initial-scale=1, viewport-fit=cover" />
|
| 7 |
+
<style>
|
| 8 |
+
* {
|
| 9 |
+
margin: 0;
|
| 10 |
+
padding: 0;
|
| 11 |
+
box-sizing: border-box;
|
| 12 |
+
}
|
| 13 |
+
|
| 14 |
+
html, body {
|
| 15 |
+
width: 100%;
|
| 16 |
+
height: 100%;
|
| 17 |
+
background: #000;
|
| 18 |
+
overflow: hidden;
|
| 19 |
+
font-family: system-ui, sans-serif;
|
| 20 |
+
}
|
| 21 |
+
|
| 22 |
+
.page-wrapper {
|
| 23 |
+
position: fixed;
|
| 24 |
+
inset: 0;
|
| 25 |
+
background: #000;
|
| 26 |
+
}
|
| 27 |
+
|
| 28 |
+
/* CAPA EM 9:16 */
|
| 29 |
+
.cover {
|
| 30 |
+
position: absolute;
|
| 31 |
+
inset: 0;
|
| 32 |
+
background: #000;
|
| 33 |
+
display: flex;
|
| 34 |
+
align-items: center;
|
| 35 |
+
justify-content: center;
|
| 36 |
+
}
|
| 37 |
+
|
| 38 |
+
.cover img {
|
| 39 |
+
width: 100vw;
|
| 40 |
+
height: 100vh;
|
| 41 |
+
object-fit: contain; /* mantém 9:16 real */
|
| 42 |
+
background: #000;
|
| 43 |
+
display: block;
|
| 44 |
+
}
|
| 45 |
+
|
| 46 |
+
/* BOTÃO PLAY */
|
| 47 |
+
.play-button {
|
| 48 |
+
position: absolute;
|
| 49 |
+
top: 50%;
|
| 50 |
+
left: 50%;
|
| 51 |
+
transform: translate(-50%, -50%);
|
| 52 |
+
width: 85px;
|
| 53 |
+
height: 85px;
|
| 54 |
+
border-radius: 50%;
|
| 55 |
+
border: 3px solid #fff;
|
| 56 |
+
display: flex;
|
| 57 |
+
justify-content: center;
|
| 58 |
+
align-items: center;
|
| 59 |
+
background: rgba(0, 0, 0, 0.45);
|
| 60 |
+
cursor: pointer;
|
| 61 |
+
backdrop-filter: blur(4px);
|
| 62 |
+
}
|
| 63 |
+
|
| 64 |
+
.play-button::before {
|
| 65 |
+
content: "";
|
| 66 |
+
width: 0;
|
| 67 |
+
height: 0;
|
| 68 |
+
border-left: 28px solid #fff;
|
| 69 |
+
border-top: 18px solid transparent;
|
| 70 |
+
border-bottom: 18px solid transparent;
|
| 71 |
+
margin-left: 6px;
|
| 72 |
+
}
|
| 73 |
+
|
| 74 |
+
.play-text {
|
| 75 |
+
position: absolute;
|
| 76 |
+
bottom: 35px;
|
| 77 |
+
width: 100%;
|
| 78 |
+
text-align: center;
|
| 79 |
+
color: #fff;
|
| 80 |
+
font-size: 15px;
|
| 81 |
+
text-shadow: 0 0 8px rgba(0, 0, 0, 0.9);
|
| 82 |
+
}
|
| 83 |
+
|
| 84 |
+
/* VÍDEO 9:16 */
|
| 85 |
+
.video-container {
|
| 86 |
+
position: absolute;
|
| 87 |
+
inset: 0;
|
| 88 |
+
display: none;
|
| 89 |
+
background: #000;
|
| 90 |
+
justify-content: center;
|
| 91 |
+
align-items: center;
|
| 92 |
+
}
|
| 93 |
+
|
| 94 |
+
video {
|
| 95 |
+
width: 100vw;
|
| 96 |
+
height: 100vh;
|
| 97 |
+
object-fit: contain; /* preserva 9:16 */
|
| 98 |
+
background: #000;
|
| 99 |
+
}
|
| 100 |
+
</style>
|
| 101 |
+
</head>
|
| 102 |
+
<body>
|
| 103 |
+
|
| 104 |
+
<div class="page-wrapper">
|
| 105 |
+
|
| 106 |
+
<!-- CAPA 9:16 -->
|
| 107 |
+
<div class="cover" id="cover">
|
| 108 |
+
<img src="https://i.imgur.com/l6RMhSq.jpeg" alt="Capa do Vídeo" />
|
| 109 |
+
<div class="play-button" id="playButton"></div>
|
| 110 |
+
<div class="play-text">Toque para assistir com som 🔊</div>
|
| 111 |
+
</div>
|
| 112 |
+
|
| 113 |
+
<!-- VÍDEO 9:16 -->
|
| 114 |
+
<div class="video-container" id="videoContainer">
|
| 115 |
+
<video
|
| 116 |
+
id="videoPlayer"
|
| 117 |
+
src="https://dediagenciacriativa.com.br/wp-content/uploads/2026/01/FIbratech-Manifesto-Vertical-FINAL.mp4"
|
| 118 |
+
playsinline
|
| 119 |
+
webkit-playsinline
|
| 120 |
+
controls
|
| 121 |
+
preload="auto"
|
| 122 |
+
></video>
|
| 123 |
+
</div>
|
| 124 |
+
|
| 125 |
+
</div>
|
| 126 |
+
|
| 127 |
+
<script>
|
| 128 |
+
const cover = document.getElementById("cover");
|
| 129 |
+
const playButton = document.getElementById("playButton");
|
| 130 |
+
const videoContainer = document.getElementById("videoContainer");
|
| 131 |
+
const video = document.getElementById("videoPlayer");
|
| 132 |
+
|
| 133 |
+
async function fullscreen(el) {
|
| 134 |
+
try {
|
| 135 |
+
if (el.requestFullscreen) await el.requestFullscreen();
|
| 136 |
+
else if (el.webkitRequestFullscreen) el.webkitRequestFullscreen();
|
| 137 |
+
} catch (e) {
|
| 138 |
+
console.log("Fullscreen não disponível:", e);
|
| 139 |
+
}
|
| 140 |
+
}
|
| 141 |
+
|
| 142 |
+
playButton.addEventListener("click", async () => {
|
| 143 |
+
cover.style.display = "none";
|
| 144 |
+
videoContainer.style.display = "flex";
|
| 145 |
+
|
| 146 |
+
await fullscreen(video);
|
| 147 |
+
|
| 148 |
+
try {
|
| 149 |
+
await video.play();
|
| 150 |
+
} catch (e) {
|
| 151 |
+
console.log("Reprodução não iniciou automaticamente:", e);
|
| 152 |
+
}
|
| 153 |
+
});
|
| 154 |
+
</script>
|
| 155 |
+
|
| 156 |
+
</body>
|
| 157 |
</html>
|