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