Spaces:
Running
Running
Download index.html from FIBRATECH/somosafibratech: direct link, hf CLI and curl.
- Browser
- Download file 3.62 kB
-
https://huggingface.co/spaces/FIBRATECH/somosafibratech/resolve/main/index.html
- Command line
-
hf download hf://spaces/FIBRATECH/somosafibratech/index.html
-
curl -L -o index.html https://huggingface.co/spaces/FIBRATECH/somosafibratech/resolve/main/index.html
3.62 kB
| <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> | |