Spaces:
Running
Running
Download index.html from Reginaldo520/telesorte: direct link, hf CLI and curl.
- Browser
- Download file 12.9 kB
-
https://huggingface.co/spaces/Reginaldo520/telesorte/resolve/main/index.html
- Command line
-
hf download hf://spaces/Reginaldo520/telesorte/index.html
-
curl -L -o index.html https://huggingface.co/spaces/Reginaldo520/telesorte/resolve/main/index.html
12.9 kB
| <html lang="pt-br"> | |
| <head> | |
| <meta charset="UTF-8" /> | |
| <meta name="viewport" content="width=device-width, initial-scale=1.0"/> | |
| <title>SorteMax LATAM</title> | |
| <script src="https://cdn.tailwindcss.com"></script> | |
| <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css"> | |
| <style> | |
| @keyframes float { | |
| 0% { transform: translateY(0px); } | |
| 50% { transform: translateY(-10px); } | |
| 100% { transform: translateY(0px); } | |
| } | |
| @keyframes pulse { | |
| 0% { transform: scale(1); } | |
| 50% { transform: scale(1.1); } | |
| 100% { transform: scale(1); } | |
| } | |
| .lottery-ball { | |
| width: 50px; | |
| height: 50px; | |
| border-radius: 50%; | |
| display: flex; | |
| align-items: center; | |
| justify-content: center; | |
| font-weight: bold; | |
| box-shadow: 0 4px 8px rgba(0,0,0,0.2); | |
| animation: float 3s infinite ease-in-out; | |
| } | |
| .lottery-ball:nth-child(1) { animation-delay: 0s; background: #FF5252; color: white; } | |
| .lottery-ball:nth-child(2) { animation-delay: 0.3s; background: #4CAF50; color: white; } | |
| .lottery-ball:nth-child(3) { animation-delay: 0.6s; background: #2196F3; color: white; } | |
| .confetti { | |
| position: absolute; | |
| width: 10px; | |
| height: 10px; | |
| background-color: #f00; | |
| opacity: 0; | |
| } | |
| .jackpot-text { | |
| background: linear-gradient(45deg, #FFD700, #FFA500, #FFD700); | |
| -webkit-background-clip: text; | |
| -webkit-text-fill-color: transparent; | |
| text-shadow: 0 2px 4px rgba(0,0,0,0.1); | |
| } | |
| .product-card { | |
| transition: all 0.3s ease; | |
| } | |
| .product-card:hover { | |
| transform: translateY(-5px); | |
| box-shadow: 0 10px 20px rgba(0,0,0,0.1); | |
| } | |
| </style> | |
| </head> | |
| <body class="bg-gradient-to-b from-gray-100 to-gray-200 min-h-screen"> | |
| <div class="container mx-auto px-4 py-8 max-w-3xl"> | |
| <!-- Header with Logo and Jackpot --> | |
| <header class="text-center mb-10"> | |
| <div class="relative"> | |
| <div class="absolute -top-8 -left-8 w-24 h-24 bg-yellow-400 rounded-full opacity-20"></div> | |
| <div class="absolute -bottom-8 -right-8 w-24 h-24 bg-blue-400 rounded-full opacity-20"></div> | |
| <div class="relative z-10"> | |
| <i class="fas fa-gem text-6xl text-purple-600 mb-4" style="animation: pulse 2s infinite;"></i> | |
| <h1 class="text-4xl font-extrabold mb-2 jackpot-text">SorteMax LATAM</h1> | |
| <p class="text-gray-600 mb-1">O maior prêmio da América Latina</p> | |
| <div class="bg-white inline-block px-4 py-2 rounded-full shadow-md mt-2"> | |
| <span class="font-bold text-xl text-red-600">Prêmio atual:</span> | |
| <span class="font-bold text-2xl ml-2 text-green-600">US$100.000</span> | |
| </div> | |
| </div> | |
| </div> | |
| </header> | |
| <!-- Lottery Ticket Section --> | |
| <section class="bg-white rounded-xl shadow-lg p-6 mb-8 relative overflow-hidden"> | |
| <div class="absolute top-0 left-0 w-full h-2 bg-gradient-to-r from-purple-500 to-pink-500"></div> | |
| <h2 class="text-2xl font-bold text-gray-800 mb-4 flex items-center"> | |
| <i class="fas fa-ticket-alt text-purple-500 mr-2"></i> Compre seu bilhete | |
| </h2> | |
| <p class="text-gray-600 mb-6">Por apenas <span class="font-bold text-green-600">US$5</span> você concorre a prêmios incríveis!</p> | |
| <div class="flex justify-center space-x-4 mb-6" id="balls-container"> | |
| <!-- Lottery balls will appear here --> | |
| </div> | |
| <button onclick="comprarBilhete()" class="w-full bg-gradient-to-r from-purple-600 to-blue-600 text-white py-3 rounded-lg font-bold hover:from-purple-700 hover:to-blue-700 transition-all duration-300 shadow-lg hover:shadow-xl flex items-center justify-center"> | |
| <i class="fas fa-shopping-cart mr-2"></i> Comprar bilhete por US$5 | |
| </button> | |
| <div id="numeros" class="mt-4 text-center"></div> | |
| </section> | |
| <!-- Rewards Section --> | |
| <section class="bg-white rounded-xl shadow-lg p-6 mb-8"> | |
| <h2 class="text-2xl font-bold text-gray-800 mb-4 flex items-center"> | |
| <i class="fas fa-gift text-red-500 mr-2"></i> Troque seus pontos | |
| </h2> | |
| <p class="text-gray-600 mb-4">Acumule pontos e troque por prêmios exclusivos!</p> | |
| <div class="grid grid-cols-1 md:grid-cols-3 gap-4" id="produtos"> | |
| <!-- Product cards will appear here --> | |
| </div> | |
| <div class="mt-6 bg-blue-50 p-4 rounded-lg"> | |
| <div class="flex items-center"> | |
| <i class="fas fa-coins text-yellow-500 text-2xl mr-3"></i> | |
| <div> | |
| <h3 class="font-bold text-gray-800">Seus pontos</h3> | |
| <p class="text-gray-600">Você tem <span class="font-bold text-blue-600">0</span> pontos acumulados</p> | |
| </div> | |
| </div> | |
| </div> | |
| </section> | |
| <!-- Language Selector --> | |
| <section class="bg-white rounded-xl shadow-lg p-6"> | |
| <h2 class="text-2xl font-bold text-gray-800 mb-4 flex items-center"> | |
| <i class="fas fa-globe-americas text-green-500 mr-2"></i> Idioma | |
| </h2> | |
| <select onchange="trocarIdioma(this.value)" class="w-full border-2 border-gray-200 rounded-lg p-3 focus:outline-none focus:ring-2 focus:ring-purple-500 focus:border-transparent"> | |
| <option value="pt">Português</option> | |
| <option value="es">Español</option> | |
| <option value="en">English</option> | |
| <option value="fr">Français</option> | |
| </select> | |
| </section> | |
| <!-- Footer --> | |
| <footer class="mt-10 text-center text-gray-500 text-sm"> | |
| <div class="flex justify-center space-x-4 mb-2"> | |
| <a href="#" class="hover:text-purple-600"><i class="fab fa-facebook"></i></a> | |
| <a href="#" class="hover:text-blue-400"><i class="fab fa-twitter"></i></a> | |
| <a href="#" class="hover:text-pink-500"><i class="fab fa-instagram"></i></a> | |
| </div> | |
| <p>© 2023 SorteMax LATAM. Todos os direitos reservados.</p> | |
| <p class="mt-1">Jogue com responsabilidade. +18 anos.</p> | |
| </footer> | |
| </div> | |
| <script> | |
| // Products data | |
| const produtos = [ | |
| { | |
| name: "Fone Bluetooth JBL", | |
| points: 50, | |
| store: "Mercado Livre", | |
| image: "headphones" | |
| }, | |
| { | |
| name: "Carregador Portátil", | |
| points: 30, | |
| store: "Shopee", | |
| image: "battery-full" | |
| }, | |
| { | |
| name: "Suporte de Celular", | |
| points: 20, | |
| store: "Amazon", | |
| image: "mobile-alt" | |
| } | |
| ]; | |
| // Render products | |
| const produtosContainer = document.getElementById("produtos"); | |
| produtosContainer.innerHTML = produtos.map(p => ` | |
| <div class="product-card bg-white border border-gray-100 rounded-lg p-4 shadow-md"> | |
| <div class="text-center mb-3"> | |
| <i class="fas fa-${p.image} text-4xl text-purple-500"></i> | |
| </div> | |
| <h3 class="font-bold text-gray-800 text-center">${p.name}</h3> | |
| <p class="text-gray-600 text-sm text-center mb-2">${p.store}</p> | |
| <div class="text-center mt-3"> | |
| <span class="bg-yellow-100 text-yellow-800 px-3 py-1 rounded-full text-sm font-medium">${p.points} pontos</span> | |
| </div> | |
| <button class="w-full mt-4 bg-gray-100 hover:bg-gray-200 text-gray-800 py-2 rounded-lg font-medium text-sm transition-colors"> | |
| Resgatar | |
| </button> | |
| </div> | |
| `).join(""); | |
| // Buy ticket function | |
| function comprarBilhete() { | |
| const ballsContainer = document.getElementById("balls-container"); | |
| ballsContainer.innerHTML = ''; | |
| // Generate 3 random numbers | |
| const numeros = Array.from({length: 3}, () => Math.floor(100000 + Math.random() * 899999)); | |
| // Create animated balls | |
| numeros.forEach((num, index) => { | |
| const ball = document.createElement('div'); | |
| ball.className = 'lottery-ball'; | |
| ball.textContent = num.toString().substring(0, 5); // Show first 5 digits | |
| ballsContainer.appendChild(ball); | |
| }); | |
| // Show numbers | |
| document.getElementById("numeros").innerHTML = ` | |
| <div class="bg-green-50 p-3 rounded-lg"> | |
| <p class="text-green-800 font-medium">Seus números da sorte: <span class="font-bold">${numeros.join(", ")}</span></p> | |
| <p class="text-sm text-gray-600 mt-1">Boa sorte! O sorteio será realizado em 2 dias.</p> | |
| </div> | |
| `; | |
| // Simulate purchase | |
| setTimeout(() => { | |
| // Create confetti effect | |
| createConfetti(); | |
| // Show success message | |
| const notification = document.createElement('div'); | |
| notification.className = 'fixed top-4 right-4 bg-green-500 text-white px-4 py-2 rounded-lg shadow-lg z-50 animate-bounce'; | |
| notification.innerHTML = '<i class="fas fa-check-circle mr-2"></i> Bilhete comprado com sucesso!'; | |
| document.body.appendChild(notification); | |
| // Remove notification after 3 seconds | |
| setTimeout(() => { | |
| notification.remove(); | |
| }, 3000); | |
| }, 1500); | |
| } | |
| // Language change function | |
| function trocarIdioma(idioma) { | |
| const textos = { | |
| pt: { | |
| titulo: "SorteMax LATAM", | |
| botao: "Comprar bilhete por US$5", | |
| bilhete: "Seus números da sorte:", | |
| premio: "Prêmio atual:", | |
| pontos: "Seus pontos", | |
| footer: "Jogue com responsabilidade. +18 anos." | |
| }, | |
| es: { | |
| titulo: "SorteMax LATAM", | |
| botao: "Comprar boleto por US$5", | |
| bilhete: "Tus números de la suerte:", | |
| premio: "Premio actual:", | |
| pontos: "Tus puntos", | |
| footer: "Juega con responsabilidad. +18 años." | |
| }, | |
| en: { | |
| titulo: "SorteMax LATAM", | |
| botao: "Buy ticket for US$5", | |
| bilhete: "Your lucky numbers:", | |
| premio: "Current prize:", | |
| pontos: "Your points", | |
| footer: "Play responsibly. +18 years." | |
| }, | |
| fr: { | |
| titulo: "SorteMax LATAM", | |
| botao: "Acheter un billet pour US$5", | |
| bilhete: "Vos numéros porte-bonheur:", | |
| premio: "Prix actuel:", | |
| pontos: "Vos points", | |
| footer: "Jouez de manière responsable. +18 ans." | |
| } | |
| }; | |
| // Update all texts | |
| document.querySelector("h1").innerText = textos[idioma].titulo; | |
| document.querySelector("button").innerText = textos[idioma].botao; | |
| document.querySelector("footer p:last-child").innerText = textos[idioma].footer; | |
| // Update other elements that might have text | |
| const elements = document.querySelectorAll("[data-translate]"); | |
| elements.forEach(el => { | |
| const key = el.getAttribute("data-translate"); | |
| if(textos[idioma][key]) { | |
| el.innerText = textos[idioma][key]; | |
| } | |
| }); | |
| } | |
| // Confetti effect | |
| function createConfetti() { | |
| const colors = ['#FF5252', '#FFD700', '#4CAF50', '#2196F3', '#9C27B0']; | |
| for(let i = 0; i < 50; i++) { | |
| const confetti = document.createElement('div'); | |
| confetti.className = 'confetti'; | |
| confetti.style.backgroundColor = colors[Math.floor(Math.random() * colors.length)]; | |
| confetti.style.left = Math.random() * 100 + 'vw'; | |
| confetti.style.top = -10 + 'px'; | |
| confetti.style.transform = `rotate(${Math.random() * 360}deg)`; | |
| document.body.appendChild(confetti); | |
| const animationDuration = Math.random() * 3 + 2; | |
| confetti.style.animation = `fall ${animationDuration}s linear forwards`; | |
| // Add animation | |
| const keyframes = ` | |
| @keyframes fall { | |
| to { | |
| transform: translateY(100vh) rotate(${Math.random() * 360}deg); | |
| opacity: 0; | |
| } | |
| } | |
| `; | |
| const styleElement = document.createElement('style'); | |
| styleElement.innerHTML = keyframes; | |
| document.head.appendChild(styleElement); | |
| // Remove confetti after animation | |
| setTimeout(() => { | |
| confetti.remove(); | |
| styleElement.remove(); | |
| }, animationDuration * 1000); | |
| } | |
| } | |
| </script> | |
| <p style="border-radius: 8px; text-align: center; font-size: 12px; color: #fff; margin-top: 16px;position: fixed; left: 8px; bottom: 8px; z-index: 10; background: rgba(0, 0, 0, 0.8); padding: 4px 8px;">Made with <img src="https://enzostvs-deepsite.hf.space/logo.svg" alt="DeepSite Logo" style="width: 16px; height: 16px; vertical-align: middle;display:inline-block;margin-right:3px;filter:brightness(0) invert(1);"><a href="https://enzostvs-deepsite.hf.space" style="color: #fff;text-decoration: underline;" target="_blank" >DeepSite</a> - 🧬 <a href="https://enzostvs-deepsite.hf.space?remix=Reginaldo520/telesorte" style="color: #fff;text-decoration: underline;" target="_blank" >Remix</a></p></body> | |
| </html> |