Spaces:
Running
Running
Download index.html from dssc5s65c/celestial-compass: direct link, hf CLI and curl.
- Browser
- Download file 11.7 kB
-
https://huggingface.co/spaces/dssc5s65c/celestial-compass/resolve/main/index.html
- Command line
-
hf download hf://spaces/dssc5s65c/celestial-compass/index.html
-
curl -L -o index.html https://huggingface.co/spaces/dssc5s65c/celestial-compass/resolve/main/index.html
11.7 kB
| <html lang="pt-BR"> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
| <title>Celestial Compass</title> | |
| <link rel="preconnect" href="https://fonts.googleapis.com"> | |
| <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin> | |
| <link href="https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap" rel="stylesheet"> | |
| <script src="https://cdn.tailwindcss.com"></script> | |
| <script src="https://unpkg.com/feather-icons"></script> | |
| <style> | |
| html { | |
| scroll-snap-type: y mandatory; | |
| scroll-behavior: smooth; | |
| } | |
| body { | |
| font-family: 'Poppins', sans-serif; | |
| background: linear-gradient(135deg, #e0f2fe 0%, #bae6fd 50%, #7dd3fc 100%); | |
| overscroll-behavior-y: none; | |
| } | |
| .video-container { | |
| scroll-snap-align: start; | |
| height: 100dvh; | |
| } | |
| .video-wrapper { | |
| position: relative; | |
| height: 100%; | |
| display: flex; | |
| justify-content: center; | |
| align-items: center; | |
| background-color: #000; | |
| } | |
| video { | |
| width: 100%; | |
| height: 100%; | |
| object-fit: contain; | |
| } | |
| .verse-overlay { | |
| position: absolute; | |
| top: 15%; | |
| left: 0; | |
| right: 0; | |
| padding: 20px; | |
| color: white; | |
| text-align: center; | |
| text-shadow: 0 2px 4px rgba(0,0,0,0.5); | |
| background: rgba(0,0,0,0.3); | |
| backdrop-filter: blur(5px); | |
| border-radius: 0 0 10px 10px; | |
| } | |
| .action-buttons { | |
| position: absolute; | |
| bottom: 20%; | |
| right: 20px; | |
| display: flex; | |
| flex-direction: column; | |
| gap: 20px; | |
| z-index: 10; | |
| } | |
| .action-btn { | |
| background: rgba(255,255,255,0.2); | |
| backdrop-filter: blur(5px); | |
| border: none; | |
| border-radius: 50%; | |
| width: 50px; | |
| height: 50px; | |
| display: flex; | |
| justify-content: center; | |
| align-items: center; | |
| color: white; | |
| cursor: pointer; | |
| transition: all 0.3s; | |
| } | |
| .action-btn:hover { | |
| transform: scale(1.1); | |
| background: rgba(255,255,255,0.3); | |
| } | |
| .welcome-screen { | |
| position: fixed; | |
| top: 0; | |
| left: 0; | |
| right: 0; | |
| bottom: 0; | |
| display: flex; | |
| flex-direction: column; | |
| justify-content: center; | |
| align-items: center; | |
| background: linear-gradient(135deg, rgba(224,242,254,0.9) 0%, rgba(186,230,253,0.9) 50%, rgba(125,211,252,0.9) 100%); | |
| z-index: 100; | |
| padding: 20px; | |
| text-align: center; | |
| color: #1e3a8a; | |
| } | |
| .activate-btn { | |
| margin-top: 30px; | |
| padding: 15px 30px; | |
| background: #1e3a8a; | |
| color: white; | |
| border: none; | |
| border-radius: 50px; | |
| font-size: 1.2rem; | |
| font-weight: 600; | |
| cursor: pointer; | |
| display: flex; | |
| align-items: center; | |
| gap: 10px; | |
| box-shadow: 0 4px 20px rgba(30, 58, 138, 0.3); | |
| animation: pulse 2s infinite; | |
| } | |
| .heart { | |
| position: absolute; | |
| pointer-events: none; | |
| animation: float 4s ease-in-out forwards; | |
| } | |
| @keyframes pulse { | |
| 0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(30, 58, 138, 0.7); } | |
| 70% { transform: scale(1.05); box-shadow: 0 0 0 15px rgba(30, 58, 138, 0); } | |
| 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(30, 58, 138, 0); } | |
| } | |
| @keyframes float { | |
| 0% { transform: translateY(0) scale(1); opacity: 1; } | |
| 100% { transform: translateY(-100px) scale(0.5); opacity: 0; } | |
| } | |
| .title { | |
| position: fixed; | |
| top: 0; | |
| left: 0; | |
| right: 0; | |
| padding: 15px; | |
| background: rgba(255,255,255,0.8); | |
| backdrop-filter: blur(10px); | |
| z-index: 50; | |
| text-align: center; | |
| font-weight: 600; | |
| color: #1e3a8a; | |
| box-shadow: 0 2px 10px rgba(0,0,0,0.1); | |
| } | |
| </style> | |
| </head> | |
| <body> | |
| <div class="title">Celestial Compass</div> | |
| <div class="welcome-screen" id="welcomeScreen"> | |
| <h1 class="text-3xl font-bold mb-4">✨ Bem-vindo ao Celestial Compass ✨</h1> | |
| <p class="mb-2">Um lugar criado para iluminar seu dia com mensagens e vídeos cheios de fé, esperança e amor.</p> | |
| <p class="mb-2">Aqui não há competição, apenas inspiração.</p> | |
| <p class="mb-2">Cada vídeo é uma semente espiritual — uma palavra de Deus enviada ao seu coração.</p> | |
| <p class="mb-6">🌿 Deixe o Espírito Santo guiar cada toque, cada curtida, cada momento.</p> | |
| <p class="mb-6">Clique em ▶️ Ativar Som e mergulhe nessa jornada de paz, onde a fé se move em imagens e o amor de Cristo fala através de cada vídeo.</p> | |
| <p class="text-xl font-semibold">💫 Celestial Compass — o seu tempo com Deus em forma de vídeo.</p> | |
| <button class="activate-btn" id="activateBtn"> | |
| <i data-feather="volume-2"></i> Ativar Som | |
| </button> | |
| </div> | |
| <div class="video-container"> | |
| <div class="video-wrapper"> | |
| <video playsinline loop preload="auto"> | |
| <source src="https://assets.mixkit.co/videos/preview/mixkit-woman-praying-in-a-church-with-candles-17714-large.mp4" type="video/mp4"> | |
| </video> | |
| <div class="verse-overlay"> | |
| <p class="text-xl font-medium">"O Senhor é meu pastor; nada me faltará."</p> | |
| <p class="text-sm">— Salmos 23:1</p> | |
| </div> | |
| <div class="action-buttons"> | |
| <button class="action-btn" onclick="downloadVideo(this)"> | |
| <i data-feather="download"></i> | |
| </button> | |
| <button class="action-btn" onclick="likeVideo(this)"> | |
| <i data-feather="heart"></i> | |
| </button> | |
| </div> | |
| </div> | |
| </div> | |
| <div class="video-container"> | |
| <div class="video-wrapper"> | |
| <video playsinline loop preload="auto"> | |
| <source src="https://assets.mixkit.co/videos/preview/mixkit-hands-of-a-man-reading-the-bible-17713-large.mp4" type="video/mp4"> | |
| </video> | |
| <div class="verse-overlay"> | |
| <p class="text-xl font-medium">"Tudo posso naquele que me fortalece."</p> | |
| <p class="text-sm">— Filipenses 4:13</p> | |
| </div> | |
| <div class="action-buttons"> | |
| <button class="action-btn" onclick="downloadVideo(this)"> | |
| <i data-feather="download"></i> | |
| </button> | |
| <button class="action-btn" onclick="likeVideo(this)"> | |
| <i data-feather="heart"></i> | |
| </button> | |
| </div> | |
| </div> | |
| </div> | |
| <div class="video-container"> | |
| <div class="video-wrapper"> | |
| <video playsinline loop preload="auto"> | |
| <source src="https://assets.mixkit.co/videos/preview/mixkit-bible-and-rosary-on-a-wooden-table-17710-large.mp4" type="video/mp4"> | |
| </video> | |
| <div class="verse-overlay"> | |
| <p class="text-xl font-medium">"Porque Deus é amor."</p> | |
| <p class="text-sm">— 1 João 4:8</p> | |
| </div> | |
| <div class="action-buttons"> | |
| <button class="action-btn" onclick="downloadVideo(this)"> | |
| <i data-feather="download"></i> | |
| </button> | |
| <button class="action-btn" onclick="likeVideo(this)"> | |
| <i data-feather="heart"></i> | |
| </button> | |
| </div> | |
| </div> | |
| </div> | |
| <script> | |
| document.addEventListener('DOMContentLoaded', function() { | |
| feather.replace(); | |
| const welcomeScreen = document.getElementById('welcomeScreen'); | |
| const activateBtn = document.getElementById('activateBtn'); | |
| const videos = document.querySelectorAll('video'); | |
| // Hide welcome screen and start videos when activate button is clicked | |
| activateBtn.addEventListener('click', function() { | |
| welcomeScreen.style.display = 'none'; | |
| videos.forEach(video => { | |
| video.muted = false; | |
| }); | |
| // Play the first video that's in view | |
| playVisibleVideo(); | |
| }); | |
| // Handle scroll to play/pause videos | |
| window.addEventListener('scroll', function() { | |
| playVisibleVideo(); | |
| }); | |
| function playVisibleVideo() { | |
| videos.forEach(video => { | |
| const rect = video.getBoundingClientRect(); | |
| const isVisible = (rect.top >= 0 && rect.bottom <= window.innerHeight); | |
| if (isVisible) { | |
| video.play(); | |
| } else { | |
| video.pause(); | |
| } | |
| }); | |
| } | |
| // Initial setup: mute all videos | |
| videos.forEach(video => { | |
| video.muted = true; | |
| }); | |
| }); | |
| function likeVideo(button) { | |
| // Change button color | |
| button.style.color = '#ef4444'; | |
| // Create floating hearts | |
| for (let i = 0; i < 5; i++) { | |
| createHeart(button); | |
| } | |
| // Reset button color after animation | |
| setTimeout(() => { | |
| button.style.color = 'white'; | |
| }, 1000); | |
| } | |
| function createHeart(button) { | |
| const heart = document.createElement('div'); | |
| heart.className = 'heart'; | |
| heart.innerHTML = '<i data-feather="heart" style="color: #ef4444;"></i>'; | |
| feather.replace(heart); | |
| const rect = button.getBoundingClientRect(); | |
| heart.style.left = (rect.left + rect.width/2 - 12) + 'px'; | |
| heart.style.top = (rect.top - 12) + 'px'; | |
| document.body.appendChild(heart); | |
| // Remove heart after animation | |
| setTimeout(() => { | |
| heart.remove(); | |
| }, 4000); | |
| } | |
| function downloadVideo(button) { | |
| const videoContainer = button.closest('.video-wrapper'); | |
| const video = videoContainer.querySelector('video'); | |
| const source = video.querySelector('source').src; | |
| // Create a temporary link to download the video | |
| const a = document.createElement('a'); | |
| a.href = source; | |
| a.download = 'celestial-compass-video.mp4'; | |
| document.body.appendChild(a); | |
| a.click(); | |
| document.body.removeChild(a); | |
| // Add feedback animation | |
| button.style.transform = 'scale(1.2)'; | |
| setTimeout(() => { | |
| button.style.transform = 'scale(1)'; | |
| }, 300); | |
| } | |
| </script> | |
| </body> | |
| </html> | |