Spaces:
Running
Running
Download index.html from luis35/miane-streaming: direct link, hf CLI and curl.
- Browser
- Download file 46.1 kB
-
https://huggingface.co/spaces/luis35/miane-streaming/resolve/main/index.html
- Command line
-
hf download hf://spaces/luis35/miane-streaming/index.html
-
curl -L -o index.html https://huggingface.co/spaces/luis35/miane-streaming/resolve/main/index.html
46.1 kB
| <html lang="pt-BR"> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
| <title>Miane Streaming - Assista filmes e séries online</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> | |
| @import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap'); | |
| body { | |
| font-family: 'Poppins', sans-serif; | |
| background-color: #000; | |
| color: white; | |
| scroll-behavior: smooth; | |
| } | |
| .gradient-bg { | |
| background: linear-gradient(135deg, #0f0c29, #302b63, #24243e); | |
| } | |
| .movie-card:hover { | |
| transform: scale(1.05); | |
| transition: all 0.3s ease; | |
| z-index: 10; | |
| } | |
| .navbar { | |
| background: rgba(0, 0, 0, 0.7); | |
| backdrop-filter: blur(10px); | |
| } | |
| .hero-section { | |
| height: 80vh; | |
| background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('https://image.tmdb.org/t/p/original/9dKCd55IuTT5QRs989m9Qlb7d2B.jpg'); | |
| background-size: cover; | |
| background-position: center; | |
| } | |
| .login-modal, .add-content-modal { | |
| background: rgba(0, 0, 0, 0.9); | |
| backdrop-filter: blur(10px); | |
| } | |
| .btn-primary { | |
| background: linear-gradient(45deg, #E50914, #B81D24); | |
| } | |
| .btn-primary:hover { | |
| background: linear-gradient(45deg, #B81D24, #E50914); | |
| } | |
| .btn-secondary { | |
| background: linear-gradient(45deg, #1A237E, #0D47A1); | |
| } | |
| .btn-secondary:hover { | |
| background: linear-gradient(45deg, #0D47A1, #1A237E); | |
| } | |
| ::-webkit-scrollbar { | |
| width: 8px; | |
| height: 8px; | |
| } | |
| ::-webkit-scrollbar-track { | |
| background: #000; | |
| } | |
| ::-webkit-scrollbar-thumb { | |
| background: #E50914; | |
| border-radius: 10px; | |
| } | |
| .dropdown:hover .dropdown-menu { | |
| display: block; | |
| } | |
| </style> | |
| </head> | |
| <body> | |
| <!-- Navbar --> | |
| <nav class="navbar fixed top-0 w-full z-50 py-4 px-6 flex justify-between items-center"> | |
| <div class="flex items-center"> | |
| <h1 class="text-3xl font-bold text-red-600">MIANE <span class="text-blue-500">STREAMING</span></h1> | |
| </div> | |
| <div class="hidden md:flex space-x-6"> | |
| <a href="#home" class="text-white hover:text-red-500">Início</a> | |
| <a href="#movies" class="text-white hover:text-red-500">Filmes</a> | |
| <a href="#series" class="text-white hover:text-red-500">Séries</a> | |
| <a href="#popular" class="text-white hover:text-red-500">Popular</a> | |
| <a href="#new" class="text-white hover:text-red-500">Novidades</a> | |
| </div> | |
| <div class="flex items-center space-x-4"> | |
| <div class="relative dropdown"> | |
| <button class="flex items-center space-x-2 text-white"> | |
| <i class="fas fa-user"></i> | |
| <span class="hidden md:inline">Perfil</span> | |
| <i class="fas fa-caret-down"></i> | |
| </button> | |
| <div class="dropdown-menu absolute hidden right-0 mt-2 w-48 bg-gray-900 rounded-md shadow-lg py-1 z-50"> | |
| <a href="#" class="block px-4 py-2 text-white hover:bg-gray-800" id="login-btn">Login</a> | |
| <a href="#" class="block px-4 py-2 text-white hover:bg-gray-800" id="register-btn">Registrar</a> | |
| <a href="#" class="block px-4 py-2 text-white hover:bg-gray-800" id="add-content-btn">Adicionar Conteúdo</a> | |
| </div> | |
| </div> | |
| <button class="md:hidden text-white" id="mobile-menu-btn"> | |
| <i class="fas fa-bars text-2xl"></i> | |
| </button> | |
| </div> | |
| </nav> | |
| <!-- Mobile Menu --> | |
| <div class="fixed inset-0 bg-black z-40 hidden" id="mobile-menu"> | |
| <div class="flex justify-end p-6"> | |
| <button class="text-white text-2xl" id="close-mobile-menu"> | |
| <i class="fas fa-times"></i> | |
| </button> | |
| </div> | |
| <div class="flex flex-col items-center space-y-8 mt-20"> | |
| <a href="#home" class="text-white text-xl hover:text-red-500">Início</a> | |
| <a href="#movies" class="text-white text-xl hover:text-red-500">Filmes</a> | |
| <a href="#series" class="text-white text-xl hover:text-red-500">Séries</a> | |
| <a href="#popular" class="text-white text-xl hover:text-red-500">Popular</a> | |
| <a href="#new" class="text-white text-xl hover:text-red-500">Novidades</a> | |
| <div class="flex flex-col items-center space-y-4 mt-8"> | |
| <button class="text-white text-xl hover:text-red-500" id="mobile-login-btn">Login</button> | |
| <button class="text-white text-xl hover:text-red-500" id="mobile-register-btn">Registrar</button> | |
| <button class="text-white text-xl hover:text-red-500" id="mobile-add-content-btn">Adicionar Conteúdo</button> | |
| </div> | |
| </div> | |
| </div> | |
| <!-- Hero Section --> | |
| <section class="hero-section flex items-center pt-16" id="home"> | |
| <div class="container mx-auto px-6"> | |
| <div class="max-w-2xl"> | |
| <h1 class="text-5xl font-bold mb-4">Vikings: Valhalla</h1> | |
| <p class="text-lg mb-6">A nova série de sucesso que continua a saga dos lendários guerros nórdicos em suas jornadas épicas.</p> | |
| <div class="flex space-x-4"> | |
| <button class="btn-primary px-6 py-3 rounded-md font-semibold flex items-center space-x-2"> | |
| <i class="fas fa-play"></i> | |
| <span>Assistir</span> | |
| </button> | |
| <button class="bg-gray-800 bg-opacity-70 text-white px-6 py-3 rounded-md font-semibold flex items-center space-x-2"> | |
| <i class="fas fa-info-circle"></i> | |
| <span>Mais informações</span> | |
| </button> | |
| </div> | |
| </div> | |
| </div> | |
| </section> | |
| <!-- Content Sections --> | |
| <div class="container mx-auto px-6 py-12"> | |
| <!-- Popular Movies --> | |
| <section class="mb-16" id="movies"> | |
| <h2 class="text-2xl font-bold mb-6 flex items-center"> | |
| <i class="fas fa-film text-red-500 mr-3"></i> | |
| Filmes Populares | |
| </h2> | |
| <div class="grid grid-cols-2 sm:grid-cols-3 md:grid-cols-4 lg:grid-cols-5 gap-6" id="popular-movies"> | |
| <!-- Movie cards will be added here by JavaScript --> | |
| </div> | |
| </section> | |
| <!-- Popular Series --> | |
| <section class="mb-16" id="series"> | |
| <h2 class="text-2xl font-bold mb-6 flex items-center"> | |
| <i class="fas fa-tv text-blue-500 mr-3"></i> | |
| Séries Populares | |
| </h2> | |
| <div class="grid grid-cols-2 sm:grid-cols-3 md:grid-cols-4 lg:grid-cols-5 gap-6" id="popular-series"> | |
| <!-- Series cards will be added here by JavaScript --> | |
| </div> | |
| </section> | |
| <!-- New Releases --> | |
| <section class="mb-16" id="new"> | |
| <h2 class="text-2xl font-bold mb-6 flex items-center"> | |
| <i class="fas fa-star text-yellow-500 mr-3"></i> | |
| Lançamentos Recentes | |
| </h2> | |
| <div class="grid grid-cols-2 sm:grid-cols-3 md:grid-cols-4 lg:grid-cols-5 gap-6" id="new-releases"> | |
| <!-- New releases will be added here by JavaScript --> | |
| </div> | |
| </section> | |
| <!-- Recommended For You --> | |
| <section class="mb-16" id="popular"> | |
| <h2 class="text-2xl font-bold mb-6 flex items-center"> | |
| <i class="fas fa-thumbs-up text-green-500 mr-3"></i> | |
| Recomendados para Você | |
| </h2> | |
| <div class="grid grid-cols-2 sm:grid-cols-3 md:grid-cols-4 lg:grid-cols-5 gap-6" id="recommended"> | |
| <!-- Recommended content will be added here by JavaScript --> | |
| </div> | |
| </section> | |
| </div> | |
| <!-- Login Modal --> | |
| <div class="fixed inset-0 flex items-center justify-center z-50 hidden" id="login-modal"> | |
| <div class="login-modal p-8 rounded-lg w-full max-w-md"> | |
| <div class="flex justify-between items-center mb-6"> | |
| <h2 class="text-2xl font-bold">Login</h2> | |
| <button class="text-white text-2xl" id="close-login-modal">×</button> | |
| </div> | |
| <form id="login-form"> | |
| <div class="mb-4"> | |
| <label for="login-email" class="block mb-2">Email</label> | |
| <input type="email" id="login-email" class="w-full px-4 py-2 bg-gray-800 border border-gray-700 rounded-md text-white" required> | |
| </div> | |
| <div class="mb-6"> | |
| <label for="login-password" class="block mb-2">Senha</label> | |
| <input type="password" id="login-password" class="w-full px-4 py-2 bg-gray-800 border border-gray-700 rounded-md text-white" required> | |
| </div> | |
| <button type="submit" class="btn-primary w-full py-2 rounded-md font-semibold mb-4">Entrar</button> | |
| <p class="text-center">Não tem uma conta? <a href="#" class="text-blue-400 hover:underline" id="show-register">Registre-se</a></p> | |
| </form> | |
| </div> | |
| </div> | |
| <!-- Register Modal --> | |
| <div class="fixed inset-0 flex items-center justify-center z-50 hidden" id="register-modal"> | |
| <div class="login-modal p-8 rounded-lg w-full max-w-md"> | |
| <div class="flex justify-between items-center mb-6"> | |
| <h2 class="text-2xl font-bold">Registrar</h2> | |
| <button class="text-white text-2xl" id="close-register-modal">×</button> | |
| </div> | |
| <form id="register-form"> | |
| <div class="mb-4"> | |
| <label for="register-name" class="block mb-2">Nome</label> | |
| <input type="text" id="register-name" class="w-full px-4 py-2 bg-gray-800 border border-gray-700 rounded-md text-white" required> | |
| </div> | |
| <div class="mb-4"> | |
| <label for="register-email" class="block mb-2">Email</label> | |
| <input type="email" id="register-email" class="w-full px-4 py-2 bg-gray-800 border border-gray-700 rounded-md text-white" required> | |
| </div> | |
| <div class="mb-6"> | |
| <label for="register-password" class="block mb-2">Senha</label> | |
| <input type="password" id="register-password" class="w-full px-4 py-2 bg-gray-800 border border-gray-700 rounded-md text-white" required> | |
| </div> | |
| <button type="submit" class="btn-primary w-full py-2 rounded-md font-semibold mb-4">Registrar</button> | |
| <p class="text-center">Já tem uma conta? <a href="#" class="text-blue-400 hover:underline" id="show-login">Faça login</a></p> | |
| </form> | |
| </div> | |
| </div> | |
| <!-- Add Content Modal --> | |
| <div class="fixed inset-0 flex items-center justify-center z-50 hidden" id="add-content-modal"> | |
| <div class="add-content-modal p-8 rounded-lg w-full max-w-2xl"> | |
| <div class="flex justify-between items-center mb-6"> | |
| <h2 class="text-2xl font-bold">Adicionar Conteúdo</h2> | |
| <button class="text-white text-2xl" id="close-add-content-modal">×</button> | |
| </div> | |
| <form id="add-content-form"> | |
| <div class="grid grid-cols-1 md:grid-cols-2 gap-6"> | |
| <div> | |
| <div class="mb-4"> | |
| <label for="content-title" class="block mb-2">Título</label> | |
| <input type="text" id="content-title" class="w-full px-4 py-2 bg-gray-800 border border-gray-700 rounded-md text-white" required> | |
| </div> | |
| <div class="mb-4"> | |
| <label for="content-type" class="block mb-2">Tipo</label> | |
| <select id="content-type" class="w-full px-4 py-2 bg-gray-800 border border-gray-700 rounded-md text-white" required> | |
| <option value="">Selecione...</option> | |
| <option value="movie">Filme</option> | |
| <option value="series">Série</option> | |
| </select> | |
| </div> | |
| <div class="mb-4"> | |
| <label for="content-genre" class="block mb-2">Gênero</label> | |
| <select id="content-genre" class="w-full px-4 py-2 bg-gray-800 border border-gray-700 rounded-md text-white" required> | |
| <option value="">Selecione...</option> | |
| <option value="action">Ação</option> | |
| <option value="comedy">Comédia</option> | |
| <option value="drama">Drama</option> | |
| <option value="horror">Terror</option> | |
| <option value="scifi">Ficção Científica</option> | |
| <option value="fantasy">Fantasia</option> | |
| <option value="romance">Romance</option> | |
| <option value="thriller">Suspense</option> | |
| </select> | |
| </div> | |
| <div class="mb-4"> | |
| <label for="content-year" class="block mb-2">Ano</label> | |
| <input type="number" id="content-year" class="w-full px-4 py-2 bg-gray-800 border border-gray-700 rounded-md text-white" required> | |
| </div> | |
| </div> | |
| <div> | |
| <div class="mb-4"> | |
| <label for="content-description" class="block mb-2">Descrição</label> | |
| <textarea id="content-description" rows="4" class="w-full px-4 py-2 bg-gray-800 border border-gray-700 rounded-md text-white" required></textarea> | |
| </div> | |
| <div class="mb-4"> | |
| <label for="content-image" class="block mb-2">URL da Imagem</label> | |
| <input type="url" id="content-image" class="w-full px-4 py-2 bg-gray-800 border border-gray-700 rounded-md text-white" required> | |
| </div> | |
| <div class="mb-4"> | |
| <label for="content-video" class="block mb-2">URL do Vídeo (Embed)</label> | |
| <input type="url" id="content-video" class="w-full px-4 py-2 bg-gray-800 border border-gray-700 rounded-md text-white"> | |
| </div> | |
| </div> | |
| </div> | |
| <button type="submit" class="btn-secondary w-full py-2 rounded-md font-semibold mt-4">Adicionar Conteúdo</button> | |
| </form> | |
| </div> | |
| </div> | |
| <!-- Player Modal --> | |
| <div class="fixed inset-0 flex items-center justify-center z-50 hidden" id="player-modal"> | |
| <div class="w-full h-full bg-black"> | |
| <div class="absolute top-4 right-4 z-50"> | |
| <button class="text-white text-3xl" id="close-player-modal">×</button> | |
| </div> | |
| <div class="h-full w-full flex items-center justify-center"> | |
| <iframe id="player-iframe" class="w-full h-full" src="" frameborder="0" allowfullscreen></iframe> | |
| </div> | |
| </div> | |
| </div> | |
| <!-- Footer --> | |
| <footer class="bg-gray-900 py-12"> | |
| <div class="container mx-auto px-6"> | |
| <div class="grid grid-cols-1 md:grid-cols-4 gap-8"> | |
| <div> | |
| <h3 class="text-xl font-bold mb-4 text-red-500">MIANE STREAMING</h3> | |
| <p class="text-gray-400">A melhor plataforma de streaming com os melhores filmes e séries.</p> | |
| </div> | |
| <div> | |
| <h4 class="text-lg font-semibold mb-4">Links</h4> | |
| <ul class="space-y-2"> | |
| <li><a href="#" class="text-gray-400 hover:text-white">Termos de Serviço</a></li> | |
| <li><a href="#" class="text-gray-400 hover:text-white">Política de Privacidade</a></li> | |
| <li><a href="#" class="text-gray-400 hover:text-white">Ajuda</a></li> | |
| <li><a href="#" class="text-gray-400 hover:text-white">FAQ</a></li> | |
| </ul> | |
| </div> | |
| <div> | |
| <h4 class="text-lg font-semibold mb-4">Contato</h4> | |
| <ul class="space-y-2"> | |
| <li class="text-gray-400"><i class="fas fa-phone mr-2"></i> (17) 99225-4730</li> | |
| <li class="text-gray-400"><i class="fas fa-envelope mr-2"></i> luismian56@gmail.com</li> | |
| </ul> | |
| </div> | |
| <div> | |
| <h4 class="text-lg font-semibold mb-4">Redes Sociais</h4> | |
| <div class="flex space-x-4"> | |
| <a href="#" class="text-gray-400 hover:text-white text-2xl"><i class="fab fa-facebook"></i></a> | |
| <a href="#" class="text-gray-400 hover:text-white text-2xl"><i class="fab fa-twitter"></i></a> | |
| <a href="#" class="text-gray-400 hover:text-white text-2xl"><i class="fab fa-instagram"></i></a> | |
| <a href="#" class="text-gray-400 hover:text-white text-2xl"><i class="fab fa-youtube"></i></a> | |
| </div> | |
| </div> | |
| </div> | |
| <div class="border-t border-gray-800 mt-8 pt-8 text-center text-gray-500"> | |
| <p>© 2023 Miane Streaming. Todos os direitos reservados. Desenvolvido por Miane Company.</p> | |
| <p class="mt-2">CEO: Luis Henrique Miane dos Santos</p> | |
| </div> | |
| </div> | |
| </footer> | |
| <script> | |
| // Sample data for movies and series | |
| const contentData = { | |
| movies: [ | |
| { | |
| id: 1, | |
| title: "Vingadores: Ultimato", | |
| year: 2019, | |
| genre: "Ação", | |
| description: "Os Vingadores se reúnem para derrotar Thanos e restaurar a ordem no universo.", | |
| image: "https://image.tmdb.org/t/p/w500/q6725aR8Zs4IwGMXzZT8aC8lh41.jpg", | |
| video: "https://www.youtube.com/embed/g6ng8iy-l0U", | |
| type: "movie" | |
| }, | |
| { | |
| id: 2, | |
| title: "John Wick 4", | |
| year: 2023, | |
| genre: "Ação", | |
| description: "John Wick descobre um caminho para derrotar a Alta Cúpula. Mas para ganhar sua liberdade, ele deve enfrentar um novo inimigo.", | |
| image: "https://image.tmdb.org/t/p/w500/r2NcIZ1FPMlxCty3vRITVTgkp8Y.jpg", | |
| video: "https://www.youtube.com/embed/qEVUtrk8_B4", | |
| type: "movie" | |
| }, | |
| { | |
| id: 3, | |
| title: "Avatar: O Caminho da Água", | |
| year: 2022, | |
| genre: "Ficção Científica", | |
| description: "Jake Sully vive com sua nova família em Pandora. Quando uma ameaça familiar retorna, ele deve trabalhar com Neytiri para proteger seu mundo.", | |
| image: "https://image.tmdb.org/t/p/w500/4JNGgF8sGNEeYv8s0o9E1Yx1VxH.jpg", | |
| video: "https://www.youtube.com/embed/M8azgHMC3Ts", | |
| type: "movie" | |
| }, | |
| { | |
| id: 4, | |
| title: "Homem-Aranha: Sem Volta para Casa", | |
| year: 2021, | |
| genre: "Ação", | |
| description: "Peter Parker pede ajuda ao Doutor Estranho para que todos esqueçam sua identidade como Homem-Aranha.", | |
| image: "https://image.tmdb.org/t/p/w500/fVzXp3NwovUlLe7fvoRynCmBPNc.jpg", | |
| video: "https://www.youtube.com/embed/CyiiEJRZjSU", | |
| type: "movie" | |
| }, | |
| { | |
| id: 5, | |
| title: "Duna", | |
| year: 2021, | |
| genre: "Ficção Científica", | |
| description: "Paul Atreides viaja para o planeta mais perigoso do universo para garantir o futuro de seu povo.", | |
| image: "https://image.tmdb.org/t/p/w500/8gLhuqQ2Noj8xLYvlyb5pI4TQxP.jpg", | |
| video: "https://www.youtube.com/embed/dnBpZuSUISQ", | |
| type: "movie" | |
| } | |
| ], | |
| series: [ | |
| { | |
| id: 6, | |
| title: "The Last of Us", | |
| year: 2023, | |
| genre: "Drama", | |
| description: "Joel e Ellie, uma dupla conectada pela brutalidade do mundo em que vivem, atravessam os EUA em busca de esperança.", | |
| image: "https://image.tmdb.org/t/p/w500/uKvVjHNqB5VmOrdxqAt2F7J78ED.jpg", | |
| video: "https://www.youtube.com/embed/uLtkt8BonwM", | |
| type: "series" | |
| }, | |
| { | |
| id: 7, | |
| title: "Stranger Things", | |
| year: 2016, | |
| genre: "Ficção Científica", | |
| description: "Quando um garoto desaparece, uma pequena cidade descobre um mistério envolvendo experimentos secretos e forças sobrenaturais.", | |
| image: "https://image.tmdb.org/t/p/w500/49WJfeN0moxb9IPfGn8AIqMGskD.jpg", | |
| video: "https://www.youtube.com/embed/b9EkMc79ZSU", | |
| type: "series" | |
| }, | |
| { | |
| id: 8, | |
| title: "The Mandalorian", | |
| year: 2019, | |
| genre: "Ficção Científica", | |
| description: "As aventuras de um caçador de recompensas Mandaloriano enquanto viaja pelos territórios mais inóspitos da galáxia.", | |
| image: "https://image.tmdb.org/t/p/w500/sWgBv7LV2PRoQgJwEuSDS45X5NW.jpg", | |
| video: "https://www.youtube.com/embed/eW7Twd85m2g", | |
| type: "series" | |
| }, | |
| { | |
| id: 9, | |
| title: "The Witcher", | |
| year: 2019, | |
| genre: "Fantasia", | |
| description: "Geralt de Rívia, um caçador de monstros mutante, viaja em busca de seu destino em um mundo turbulento.", | |
| image: "https://image.tmdb.org/t/p/w500/7vjaCdMw15FEbXyLQTVa04URsPm.jpg", | |
| video: "https://www.youtube.com/embed/ndl1W4ltcmg", | |
| type: "series" | |
| }, | |
| { | |
| id: 10, | |
| title: "House of the Dragon", | |
| year: 2022, | |
| genre: "Fantasia", | |
| description: "A história da Casa Targaryen, 200 anos antes dos eventos de Game of Thrones.", | |
| image: "https://image.tmdb.org/t/p/w500/1X4h40fcB4WWUmIBK0auT4zRBAV.jpg", | |
| video: "https://www.youtube.com/embed/DotnJ7tTA34", | |
| type: "series" | |
| } | |
| ], | |
| newReleases: [ | |
| { | |
| id: 11, | |
| title: "Super Mario Bros: O Filme", | |
| year: 2023, | |
| genre: "Animação", | |
| description: "Mario embarca em uma aventura épica com Luigi para salvar o Reino dos Cogumelos da tirania de Bowser.", | |
| image: "https://image.tmdb.org/t/p/w500/i9XdxHsF1xJq3jvZQoFCFgKpMvT.jpg", | |
| video: "https://www.youtube.com/embed/wkn-Gb-Fhac", | |
| type: "movie" | |
| }, | |
| { | |
| id: 12, | |
| title: "Guardiões da Galáxia Vol. 3", | |
| year: 2023, | |
| genre: "Ação", | |
| description: "Os Guardiões da Galáxia protegem um dos seus enquanto o futuro da equipe está em risco.", | |
| image: "https://image.tmdb.org/t/p/w500/5YZbUmjbMa3ClvSW1Wj3D6XGolb.jpg", | |
| video: "https://www.youtube.com/embed/u3V5KDHRQvk", | |
| type: "movie" | |
| }, | |
| { | |
| id: 13, | |
| title: "Creed III", | |
| year: 2023, | |
| genre: "Drama", | |
| description: "Adonis Creed enfrenta um adversário que compartilha um passado ligado à sua família.", | |
| image: "https://image.tmdb.org/t/p/w500/9uKGJ2bQd3qYYxrp8CYxXJZwmZm.jpg", | |
| video: "https://www.youtube.com/embed/AHmCH7iB_IM", | |
| type: "movie" | |
| }, | |
| { | |
| id: 14, | |
| title: "Shazam! Fúria dos Deuses", | |
| year: 2023, | |
| genre: "Ação", | |
| description: "Billy Batson e seus irmãos adotivos são desafiados pelas filhas de Atlas.", | |
| image: "https://image.tmdb.org/t/p/w500/4VZjmOL9s5JVSX4xKZc5zr0QHwB.jpg", | |
| video: "https://www.youtube.com/embed/Zi88i4CpHe4", | |
| type: "movie" | |
| }, | |
| { | |
| id: 15, | |
| title: "Ant-Man e a Vespa: Quantumania", | |
| year: 2023, | |
| genre: "Ação", | |
| description: "Scott Lang e Hope van Dyne são puxados para o Reino Quântico e enfrentam Kang, o Conquistador.", | |
| image: "https://image.tmdb.org/t/p/w500/8mnW5S1FxqlEsQJQK1kSGR5LqO6.jpg", | |
| video: "https://www.youtube.com/embed/ZlNFpri-Y40", | |
| type: "movie" | |
| } | |
| ], | |
| recommended: [ | |
| { | |
| id: 16, | |
| title: "The Batman", | |
| year: 2022, | |
| genre: "Ação", | |
| description: "Batman investiga a corrupção em Gotham City enquanto persegue o Charada, um assassino em série.", | |
| image: "https://image.tmdb.org/t/p/w500/seyWFgGInaLqW7nOZvu0VhCQN1I.jpg", | |
| video: "https://www.youtube.com/embed/rsQEor4y2hg", | |
| type: "movie" | |
| }, | |
| { | |
| id: 17, | |
| title: "Top Gun: Maverick", | |
| year: 2022, | |
| genre: "Ação", | |
| description: "Pete 'Maverick' Mitchell retorna para treinar uma nova geração de pilotos de caça.", | |
| image: "https://image.tmdb.org/t/p/w500/jTrXwK56EoLHHsQk3Xgjtg5jb4S.jpg", | |
| video: "https://www.youtube.com/embed/giXco2jaZ_4", | |
| type: "movie" | |
| }, | |
| { | |
| id: 18, | |
| title: "Everything Everywhere All at Once", | |
| year: 2022, | |
| genre: "Ficção Científica", | |
| description: "Uma mulher chinesa-americana descobre que deve conectar-se com versões paralelas de si mesma.", | |
| image: "https://image.tmdb.org/t/p/w500/w3LxiVYdWWRvEVUrl5wlc3AYAA3.jpg", | |
| video: "https://www.youtube.com/embed/wxN1T1uxQ2g", | |
| type: "movie" | |
| }, | |
| { | |
| id: 19, | |
| title: "Wednesday", | |
| year: 2022, | |
| genre: "Comédia", | |
| description: "Wednesday Addams é enviada para a Academia Nevermore, onde tenta dominar seus poderes psíquicos.", | |
| image: "https://image.tmdb.org/t/p/w500/jeGtaMwGxPmQN5xM4AvnUG3QeXz.jpg", | |
| video: "https://www.youtube.com/embed/R1bxOi1GJyM", | |
| type: "series" | |
| }, | |
| { | |
| id: 20, | |
| title: "The Boys", | |
| year: 2019, | |
| genre: "Ação", | |
| description: "Uma equipe de vigilantes luta contra super-heróis corruptos que abusam de seus poderes.", | |
| image: "https://image.tmdb.org/t/p/w500/stTEycfG9928HYxSD9NBdH8irOw.jpg", | |
| video: "https://www.youtube.com/embed/tcrNsIaQkb4", | |
| type: "series" | |
| } | |
| ] | |
| }; | |
| // User data | |
| let users = []; | |
| let currentUser = null; | |
| // DOM elements | |
| const popularMoviesEl = document.getElementById('popular-movies'); | |
| const popularSeriesEl = document.getElementById('popular-series'); | |
| const newReleasesEl = document.getElementById('new-releases'); | |
| const recommendedEl = document.getElementById('recommended'); | |
| const loginModal = document.getElementById('login-modal'); | |
| const registerModal = document.getElementById('register-modal'); | |
| const addContentModal = document.getElementById('add-content-modal'); | |
| const playerModal = document.getElementById('player-modal'); | |
| const loginBtn = document.getElementById('login-btn'); | |
| const registerBtn = document.getElementById('register-btn'); | |
| const addContentBtn = document.getElementById('add-content-btn'); | |
| const showRegister = document.getElementById('show-register'); | |
| const showLogin = document.getElementById('show-login'); | |
| const mobileMenuBtn = document.getElementById('mobile-menu-btn'); | |
| const mobileMenu = document.getElementById('mobile-menu'); | |
| const closeMobileMenu = document.getElementById('close-mobile-menu'); | |
| const mobileLoginBtn = document.getElementById('mobile-login-btn'); | |
| const mobileRegisterBtn = document.getElementById('mobile-register-btn'); | |
| const mobileAddContentBtn = document.getElementById('mobile-add-content-btn'); | |
| const closeLoginModal = document.getElementById('close-login-modal'); | |
| const closeRegisterModal = document.getElementById('close-register-modal'); | |
| const closeAddContentModal = document.getElementById('close-add-content-modal'); | |
| const closePlayerModal = document.getElementById('close-player-modal'); | |
| const loginForm = document.getElementById('login-form'); | |
| const registerForm = document.getElementById('register-form'); | |
| const addContentForm = document.getElementById('add-content-form'); | |
| const playerIframe = document.getElementById('player-iframe'); | |
| // Initialize the app | |
| function init() { | |
| renderContent(); | |
| setupEventListeners(); | |
| } | |
| // Render content to the page | |
| function renderContent() { | |
| // Popular Movies | |
| popularMoviesEl.innerHTML = contentData.movies.map(movie => createContentCard(movie)).join(''); | |
| // Popular Series | |
| popularSeriesEl.innerHTML = contentData.series.map(series => createContentCard(series)).join(''); | |
| // New Releases | |
| newReleasesEl.innerHTML = contentData.newReleases.map(item => createContentCard(item)).join(''); | |
| // Recommended | |
| recommendedEl.innerHTML = contentData.recommended.map(item => createContentCard(item)).join(''); | |
| // Add event listeners to all watch buttons | |
| document.querySelectorAll('.watch-btn').forEach(btn => { | |
| btn.addEventListener('click', function(e) { | |
| e.preventDefault(); | |
| const contentId = parseInt(this.getAttribute('data-id')); | |
| playContent(contentId); | |
| }); | |
| }); | |
| // Add event listeners to all info buttons | |
| document.querySelectorAll('.info-btn').forEach(btn => { | |
| btn.addEventListener('click', function(e) { | |
| e.preventDefault(); | |
| const contentId = parseInt(this.getAttribute('data-id')); | |
| showContentInfo(contentId); | |
| }); | |
| }); | |
| // Add event listeners to all download buttons | |
| document.querySelectorAll('.download-btn').forEach(btn => { | |
| btn.addEventListener('click', function(e) { | |
| e.preventDefault(); | |
| const contentId = parseInt(this.getAttribute('data-id')); | |
| downloadContent(contentId); | |
| }); | |
| }); | |
| } | |
| // Create a content card | |
| function createContentCard(content) { | |
| return ` | |
| <div class="movie-card relative group rounded-lg overflow-hidden bg-gray-800"> | |
| <img src="${content.image}" alt="${content.title}" class="w-full h-64 object-cover"> | |
| <div class="absolute inset-0 bg-gradient-to-t from-black to-transparent opacity-0 group-hover:opacity-100 transition-opacity duration-300 flex flex-col justify-end p-4"> | |
| <h3 class="text-white font-semibold">${content.title} (${content.year})</h3> | |
| <p class="text-gray-300 text-sm">${content.genre}</p> | |
| <div class="flex space-x-2 mt-3"> | |
| <button class="watch-btn bg-red-600 hover:bg-red-700 text-white px-3 py-1 rounded text-sm" data-id="${content.id}"> | |
| <i class="fas fa-play mr-1"></i> Assistir | |
| </button> | |
| <button class="info-btn bg-blue-600 hover:bg-blue-700 text-white px-3 py-1 rounded text-sm" data-id="${content.id}"> | |
| <i class="fas fa-info-circle mr-1"></i> Info | |
| </button> | |
| <button class="download-btn bg-green-600 hover:bg-green-700 text-white px-3 py-1 rounded text-sm" data-id="${content.id}"> | |
| <i class="fas fa-download mr-1"></i> Baixar | |
| </button> | |
| </div> | |
| </div> | |
| </div> | |
| `; | |
| } | |
| // Play content | |
| function playContent(contentId) { | |
| // Find the content by ID | |
| let content = null; | |
| // Check all content arrays | |
| for (let key in contentData) { | |
| const found = contentData[key].find(item => item.id === contentId); | |
| if (found) { | |
| content = found; | |
| break; | |
| } | |
| } | |
| if (content && content.video) { | |
| playerIframe.src = content.video.replace("watch?v=", "embed/"); | |
| playerModal.classList.remove('hidden'); | |
| document.body.style.overflow = 'hidden'; | |
| } else { | |
| alert('Conteúdo não disponível para reprodução no momento.'); | |
| } | |
| } | |
| // Show content info | |
| function showContentInfo(contentId) { | |
| // Find the content by ID | |
| let content = null; | |
| // Check all content arrays | |
| for (let key in contentData) { | |
| const found = contentData[key].find(item => item.id === contentId); | |
| if (found) { | |
| content = found; | |
| break; | |
| } | |
| } | |
| if (content) { | |
| alert(`${content.title} (${content.year})\n\nGênero: ${content.genre}\n\n${content.description}`); | |
| } | |
| } | |
| // Download content | |
| function downloadContent(contentId) { | |
| if (!currentUser) { | |
| alert('Você precisa fazer login para baixar conteúdo.'); | |
| loginModal.classList.remove('hidden'); | |
| return; | |
| } | |
| // Find the content by ID | |
| let content = null; | |
| // Check all content arrays | |
| for (let key in contentData) { | |
| const found = contentData[key].find(item => item.id === contentId); | |
| if (found) { | |
| content = found; | |
| break; | |
| } | |
| } | |
| if (content) { | |
| alert(`Iniciando download de ${content.title}...\n\n(Esta é uma demonstração. Em um sistema real, o download começaria.)`); | |
| } | |
| } | |
| // Setup event listeners | |
| function setupEventListeners() { | |
| // Login/Register buttons | |
| loginBtn.addEventListener('click', () => loginModal.classList.remove('hidden')); | |
| registerBtn.addEventListener('click', () => registerModal.classList.remove('hidden')); | |
| addContentBtn.addEventListener('click', () => { | |
| if (!currentUser) { | |
| alert('Você precisa fazer login para adicionar conteúdo.'); | |
| loginModal.classList.remove('hidden'); | |
| } else { | |
| addContentModal.classList.remove('hidden'); | |
| } | |
| }); | |
| // Mobile menu buttons | |
| mobileMenuBtn.addEventListener('click', () => mobileMenu.classList.remove('hidden')); | |
| closeMobileMenu.addEventListener('click', () => mobileMenu.classList.add('hidden')); | |
| mobileLoginBtn.addEventListener('click', () => { | |
| mobileMenu.classList.add('hidden'); | |
| loginModal.classList.remove('hidden'); | |
| }); | |
| mobileRegisterBtn.addEventListener('click', () => { | |
| mobileMenu.classList.add('hidden'); | |
| registerModal.classList.remove('hidden'); | |
| }); | |
| mobileAddContentBtn.addEventListener('click', () => { | |
| mobileMenu.classList.add('hidden'); | |
| if (!currentUser) { | |
| alert('Você precisa fazer login para adicionar conteúdo.'); | |
| loginModal.classList.remove('hidden'); | |
| } else { | |
| addContentModal.classList.remove('hidden'); | |
| } | |
| }); | |
| // Show register/login links | |
| showRegister.addEventListener('click', (e) => { | |
| e.preventDefault(); | |
| loginModal.classList.add('hidden'); | |
| registerModal.classList.remove('hidden'); | |
| }); | |
| showLogin.addEventListener('click', (e) => { | |
| e.preventDefault(); | |
| registerModal.classList.add('hidden'); | |
| loginModal.classList.remove('hidden'); | |
| }); | |
| // Close modals | |
| closeLoginModal.addEventListener('click', () => { | |
| loginModal.classList.add('hidden'); | |
| document.body.style.overflow = 'auto'; | |
| }); | |
| closeRegisterModal.addEventListener('click', () => { | |
| registerModal.classList.add('hidden'); | |
| document.body.style.overflow = 'auto'; | |
| }); | |
| closeAddContentModal.addEventListener('click', () => { | |
| addContentModal.classList.add('hidden'); | |
| document.body.style.overflow = 'auto'; | |
| }); | |
| closePlayerModal.addEventListener('click', () => { | |
| playerModal.classList.add('hidden'); | |
| playerIframe.src = ''; | |
| document.body.style.overflow = 'auto'; | |
| }); | |
| // Form submissions | |
| loginForm.addEventListener('submit', (e) => { | |
| e.preventDefault(); | |
| const email = document.getElementById('login-email').value; | |
| const password = document.getElementById('login-password').value; | |
| // Check if user exists | |
| const user = users.find(u => u.email === email && u.password === password); | |
| if (user) { | |
| currentUser = user; | |
| alert(`Bem-vindo de volta, ${user.name}!`); | |
| loginModal.classList.add('hidden'); | |
| document.body.style.overflow = 'auto'; | |
| loginForm.reset(); | |
| } else { | |
| alert('Email ou senha incorretos.'); | |
| } | |
| }); | |
| registerForm.addEventListener('submit', (e) => { | |
| e.preventDefault(); | |
| const name = document.getElementById('register-name').value; | |
| const email = document.getElementById('register-email').value; | |
| const password = document.getElementById('register-password').value; | |
| // Check if email already exists | |
| if (users.some(u => u.email === email)) { | |
| alert('Este email já está em uso.'); | |
| return; | |
| } | |
| // Add new user | |
| const newUser = { name, email, password }; | |
| users.push(newUser); | |
| currentUser = newUser; | |
| alert(`Cadastro realizado com sucesso, ${name}!`); | |
| registerModal.classList.add('hidden'); | |
| document.body.style.overflow = 'auto'; | |
| registerForm.reset(); | |
| }); | |
| addContentForm.addEventListener('submit', (e) => { | |
| e.preventDefault(); | |
| if (!currentUser) return; | |
| const title = document.getElementById('content-title').value; | |
| const type = document.getElementById('content-type').value; | |
| const genre = document.getElementById('content-genre').value; | |
| const year = document.getElementById('content-year').value; | |
| const description = document.getElementById('content-description').value; | |
| const image = document.getElementById('content-image').value; | |
| const video = document.getElementById('content-video').value; | |
| // Create new content object | |
| const newContent = { | |
| id: Date.now(), // Use timestamp as ID | |
| title, | |
| year: parseInt(year), | |
| genre, | |
| description, | |
| image, | |
| video, | |
| type | |
| }; | |
| // Add to appropriate array | |
| if (type === 'movie') { | |
| contentData.movies.push(newContent); | |
| } else { | |
| contentData.series.push(newContent); | |
| } | |
| // Also add to new releases | |
| contentData.newReleases.unshift(newContent); | |
| alert(`"${title}" adicionado com sucesso!`); | |
| addContentModal.classList.add('hidden'); | |
| document.body.style.overflow = 'auto'; | |
| addContentForm.reset(); | |
| // Re-render content | |
| renderContent(); | |
| }); | |
| // Close modals when clicking outside | |
| window.addEventListener('click', (e) => { | |
| if (e.target === loginModal) { | |
| loginModal.classList.add('hidden'); | |
| document.body.style.overflow = 'auto'; | |
| } | |
| if (e.target === registerModal) { | |
| registerModal.classList.add('hidden'); | |
| document.body.style.overflow = 'auto'; | |
| } | |
| if (e.target === addContentModal) { | |
| addContentModal.classList.add('hidden'); | |
| document.body.style.overflow = 'auto'; | |
| } | |
| if (e.target === playerModal) { | |
| playerModal.classList.add('hidden'); | |
| playerIframe.src = ''; | |
| document.body.style.overflow = 'auto'; | |
| } | |
| }); | |
| } | |
| // Initialize the app when DOM is loaded | |
| document.addEventListener('DOMContentLoaded', init); | |
| </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=luis35/miane-streaming" style="color: #fff;text-decoration: underline;" target="_blank" >Remix</a></p></body> | |
| </html> |