kv-netflix/frontend/download.html
Khoa.vo 8253ff5b7a v1.0.10: Android TV D-pad navigation support
- Added full D-pad navigation for Android TV remote control
- Improved TV device detection (Fire TV, Shield, Google TV, etc.)
- Row-based navigation: Left/Right stay in row, Up/Down moves between rows
- Back button support for closing modals
- Enhanced focus styles for 10-foot viewing distance
- Separate Mobile and TV download options on download page
- Updated deploy script for dual APK releases
2025-12-25 07:26:06 +07:00

285 lines
No EOL
8.9 KiB
HTML

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport"
content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no, viewport-fit=cover">
<title>StreamFlix - Download App</title>
<link rel="icon" type="image/svg+xml" href="/assets/logo.svg">
<link rel="stylesheet" href="/styles/index.css">
<style>
:root {
--safe-top: env(safe-area-inset-top, 0px);
--safe-bottom: env(safe-area-inset-bottom, 0px);
}
body {
background-color: #000;
color: #fff;
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
margin: 0;
padding: 0;
overflow-x: hidden;
-webkit-font-smoothing: antialiased;
}
.download-container {
max-width: 800px;
margin: 0 auto;
padding: calc(40px + var(--safe-top)) 20px calc(40px + var(--safe-bottom));
text-align: center;
}
.logo-hero {
width: 120px;
height: 120px;
margin-bottom: 2rem;
animation: fadeInDown 0.8s ease-out;
}
h1 {
font-size: 2.5rem;
font-weight: 700;
margin-bottom: 1rem;
letter-spacing: -0.02em;
background: linear-gradient(135deg, #fff 0%, #a5a5a5 100%);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
animation: fadeInUp 0.8s ease-out 0.2s backwards;
}
p.subtitle {
font-size: 1.1rem;
color: #888;
margin-bottom: 3rem;
line-height: 1.5;
animation: fadeInUp 0.8s ease-out 0.4s backwards;
}
.platform-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
gap: 20px;
margin-bottom: 3rem;
animation: fadeInUp 0.8s ease-out 0.6s backwards;
}
.platform-card {
background: rgba(255, 255, 255, 0.08);
border: 1px solid rgba(255, 255, 255, 0.1);
border-radius: 20px;
padding: 30px;
text-align: center;
backdrop-filter: blur(10px);
transition: transform 0.3s ease, border-color 0.3s ease;
}
.platform-card:hover {
transform: translateY(-5px);
border-color: rgba(255, 255, 255, 0.3);
background: rgba(255, 255, 255, 0.12);
}
.platform-icon {
font-size: 3rem;
margin-bottom: 1rem;
display: block;
}
.platform-title {
font-size: 1.25rem;
font-weight: 600;
margin-bottom: 0.5rem;
color: #fff;
}
.platform-version {
font-size: 0.9rem;
color: #888;
margin-bottom: 1.5rem;
display: block;
}
.btn-download {
display: inline-block;
background: #fff;
color: #000;
padding: 12px 28px;
border-radius: 99px;
text-decoration: none;
font-weight: 600;
font-size: 1rem;
transition: all 0.2s ease;
}
.btn-download:hover {
background: #e0e0e0;
transform: scale(1.05);
}
.btn-secondary {
background: rgba(255, 255, 255, 0.15);
color: #fff;
}
.btn-secondary:hover {
background: rgba(255, 255, 255, 0.25);
}
.instructions {
margin-top: 1.5rem;
font-size: 0.9rem;
color: #aaa;
text-align: left;
background: rgba(0, 0, 0, 0.3);
padding: 15px;
border-radius: 12px;
}
.instructions ol {
padding-left: 20px;
margin: 0;
}
.instructions li {
margin-bottom: 8px;
}
.back-link {
position: fixed;
top: calc(20px + var(--safe-top));
left: 20px;
color: rgba(255, 255, 255, 0.6);
text-decoration: none;
background: rgba(0, 0, 0, 0.5);
backdrop-filter: blur(10px);
padding: 8px 16px;
border-radius: 20px;
font-size: 0.9rem;
font-weight: 500;
transition: color 0.2s;
z-index: 100;
}
.back-link:hover {
color: #fff;
background: rgba(255, 255, 255, 0.1);
}
/* PWA Install Prompt for iOS */
#ios-install-guide {
display: none;
/* Shown via JS detection */
}
@keyframes fadeInDown {
from {
opacity: 0;
transform: translateY(-20px);
}
to {
opacity: 1;
transform: translateY(0);
}
}
@keyframes fadeInUp {
from {
opacity: 0;
transform: translateY(20px);
}
to {
opacity: 1;
transform: translateY(0);
}
}
</style>
</head>
<body>
<a href="/" class="back-link">← Back to StreamFlix</a>
<div class="download-container">
<img src="/assets/logo.svg" alt="StreamFlix Logo" class="logo-hero">
<h1>Download StreamFlix</h1>
<p class="subtitle">Experience cinema-quality streaming on all your devices. Ad-free, high performance, and
built for privacy.</p>
<div class="platform-grid">
<!-- Android Mobile Card -->
<div class="platform-card">
<span class="platform-icon">📱</span>
<h2 class="platform-title">Android Mobile</h2>
<span class="platform-version">Phones & Tablets</span>
<a href="https://github.com/vndangkhoa/Streamflow/releases/latest/download/StreamFlix.apk"
class="btn-download" target="_blank">Download APK</a>
<div class="instructions">
<strong>How to install:</strong>
<ol>
<li>Download the APK file.</li>
<li>Open the file and select "Install".</li>
<li>If prompted, allow installation from "Unknown Sources".</li>
</ol>
</div>
</div>
<!-- Android TV Card -->
<div class="platform-card">
<span class="platform-icon">📺</span>
<h2 class="platform-title">Android TV</h2>
<span class="platform-version">Smart TVs & Streaming Devices</span>
<a href="https://github.com/vndangkhoa/Streamflow/releases/latest/download/StreamFlix-TV.apk"
class="btn-download" target="_blank">Download TV APK</a>
<div class="instructions">
<strong>Works with:</strong>
<ul style="padding-left: 20px; margin: 8px 0;">
<li>Android TV (Sony, Philips, TCL, etc.)</li>
<li>Google Chromecast with Google TV</li>
<li>NVIDIA Shield TV</li>
<li>Amazon Fire TV Stick</li>
<li>Xiaomi Mi Box</li>
</ul>
<strong>Install via USB:</strong>
<ol>
<li>Enable "Unknown Sources" in Settings → Security.</li>
<li>Use a file manager or ADB to install.</li>
</ol>
</div>
</div>
<!-- iOS Card -->
<div class="platform-card">
<span class="platform-icon">🍎</span>
<h2 class="platform-title">iOS & iPadOS</h2>
<span class="platform-version">Web App (PWA)</span>
<button class="btn-download btn-secondary"
onclick="document.getElementById('ios-instructions').scrollIntoView({behavior: 'smooth'})">Installation
Guide</button>
<div class="instructions" id="ios-instructions">
<strong>Add to Home Screen:</strong>
<ol>
<li>Open this page in <strong>Safari</strong> on your iPhone/iPad.</li>
<li>Tap the <strong>Share</strong> button (box with arrow up).</li>
<li>Scroll down and tap <strong>"Add to Home Screen"</strong>.</li>
<li>Tap "Add" in the top right.</li>
</ol>
</div>
</div>
</div>
<p style="color: #666; font-size: 0.8rem; margin-top: 40px;">
StreamFlix • Private Access Only
</p>
</div>
</body>
</html>