Files
Lycostorrent/app/templates/discover.html
2026-03-23 20:59:26 +01:00

130 lines
5.5 KiB
HTML

<!DOCTYPE html>
<html lang="fr">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Lycostorrent - Découvrir</title>
<!-- Chargement du thème (en premier pour éviter le flash) -->
<script src="/static/js/theme-loader.js"></script>
<!-- PWA Meta Tags -->
<meta name="theme-color" content="#e63946">
<meta name="description" content="Découvrez les nouveautés cinéma et TV">
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent">
<meta name="apple-mobile-web-app-title" content="Lycostorrent">
<!-- PWA Manifest -->
<link rel="manifest" href="/static/manifest.json">
<!-- Icons -->
<link rel="icon" type="image/png" sizes="192x192" href="/static/icons/icon-192x192.png">
<link rel="apple-touch-icon" href="/static/icons/icon-192x192.png">
<link rel="stylesheet" href="/static/css/style.css">
<link rel="stylesheet" href="/static/css/themes.css">
<link rel="stylesheet" href="/static/css/discover.css">
<link rel="stylesheet" href="/static/css/cache-info.css">
</head>
<body>
<div class="container">
<!-- Header -->
<header class="header">
<h1>🌟 Lycostorrent</h1>
<p class="subtitle">Découvrez les nouveautés cinéma & TV</p>
<nav class="main-nav" id="mainNav">
<!-- Navigation générée dynamiquement -->
</nav>
</header>
<!-- Catégories simplifiées : Films / Séries -->
<div class="discover-tabs">
<button class="discover-tab active" data-category="movies">🎬 Films récents</button>
<button class="discover-tab" data-category="tv">📺 Séries en cours</button>
</div>
<!-- Info cache -->
<div id="cacheInfo" class="cache-info hidden">
<span class="cache-badge">📦 Cache</span>
<span id="cacheTimestamp" class="cache-timestamp"></span>
<button id="refreshLiveBtn" class="btn-refresh" onclick="refreshLive()" title="Actualiser en direct">🔄</button>
</div>
<!-- Grille de résultats -->
<div class="discover-grid" id="discoverGrid">
<!-- Rempli dynamiquement -->
</div>
<!-- Loader -->
<div class="discover-loader hidden" id="discoverLoader">
<div class="spinner"></div>
<span>Chargement...</span>
</div>
<!-- Message d'état -->
<div class="discover-empty hidden" id="discoverEmpty">
<span class="empty-icon">🎬</span>
<p>Sélectionnez une catégorie pour découvrir les nouveautés</p>
</div>
<!-- Modal détails -->
<div class="modal-overlay hidden" id="detailModal">
<div class="modal-content detail-modal">
<button class="modal-close" onclick="closeDetailModal()"></button>
<div class="detail-header">
<img src="" alt="" class="detail-poster" id="detailPoster">
<div class="detail-info">
<h2 id="detailTitle"></h2>
<div class="detail-meta">
<span class="detail-year" id="detailYear"></span>
<span class="detail-rating" id="detailRating">⭐ --</span>
</div>
<p class="detail-overview" id="detailOverview"></p>
<div class="detail-genres" id="detailGenres"></div>
</div>
</div>
<!-- Bande-annonce YouTube -->
<div class="detail-trailer hidden" id="detailTrailer">
<h3>🎬 Bande-annonce</h3>
<div class="trailer-container">
<iframe id="trailerFrame" src="" frameborder="0" allowfullscreen
allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture">
</iframe>
</div>
</div>
<div class="detail-torrents">
<h3>🔍 Torrents disponibles</h3>
<div class="torrents-loading hidden" id="torrentsLoading">
<div class="spinner-small"></div>
<span>Recherche sur vos trackers...</span>
</div>
<div class="torrents-list" id="torrentsList">
<!-- Rempli dynamiquement -->
</div>
<div class="torrents-empty hidden" id="torrentsEmpty">
<p>Aucun torrent trouvé pour ce titre</p>
</div>
</div>
</div>
</div>
<!-- Footer -->
<footer class="app-footer">
<span>Lycostorrent v<span id="app-version">1.0.0</span></span>
<span class="tmdb-credit">Données fournies par <a href="https://www.themoviedb.org" target="_blank">TMDb</a></span>
</footer>
</div>
<script src="/static/js/discover.js"></script>
<script src="/static/js/nav.js"></script>
<script>
fetch('/api/version').then(r => r.json()).then(data => {
if (data.version) document.getElementById('app-version').textContent = data.version;
}).catch(() => {});
</script>
</body>
</html>