257 lines
6.6 KiB
HTML
257 lines
6.6 KiB
HTML
<!DOCTYPE html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
<title>{{ build.build_name }} — Download</title>
|
|
<meta property="og:type" content="website">
|
|
<meta property="og:site_name" content="KittyRec">
|
|
<meta property="og:title" content="{{ build.build_name }}">
|
|
<meta property="og:description" content="⬇ Download now · {% if build.size >= 1073741824 %}{{ '%.1f'|format(build.size / 1073741824) }} GB{% else %}{{ '%.0f'|format(build.size / 1048576) }} MB{% endif %} · {{ build.download_count }} download{{ 's' if build.download_count != 1 }}">
|
|
<meta property="og:image" content="https://kittyrec.tabbycluster.net/public/embed_thumb.png">
|
|
<meta property="og:image:width" content="1920">
|
|
<meta property="og:image:height" content="1080">
|
|
<meta name="theme-color" content="#7c3aed">
|
|
<meta name="twitter:card" content="summary_large_image">
|
|
<meta name="twitter:title" content="{{ build.build_name }}">
|
|
<meta name="twitter:description" content="⬇ Download now · {% if build.size >= 1073741824 %}{{ '%.1f'|format(build.size / 1073741824) }} GB{% else %}{{ '%.0f'|format(build.size / 1048576) }} MB{% endif %}">
|
|
<meta name="twitter:image" content="https://kittyrec.tabbycluster.net/public/embed_thumb.png">
|
|
<style>
|
|
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
|
|
|
|
body {
|
|
font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
|
|
min-height: 100vh;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
padding: 24px;
|
|
background: #0a0612 url('/public/dl_bg.jpg') center/cover no-repeat fixed;
|
|
position: relative;
|
|
}
|
|
|
|
body::before {
|
|
content: '';
|
|
position: fixed;
|
|
inset: 0;
|
|
background:
|
|
linear-gradient(to bottom, rgba(6,2,14,0.55) 0%, rgba(6,2,14,0.3) 40%, rgba(6,2,14,0.7) 100%);
|
|
z-index: 0;
|
|
}
|
|
|
|
.wrap {
|
|
position: relative;
|
|
z-index: 1;
|
|
width: 100%;
|
|
max-width: 460px;
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 0;
|
|
}
|
|
|
|
.badge {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 6px;
|
|
background: rgba(124,58,237,0.18);
|
|
border: 1px solid rgba(124,58,237,0.35);
|
|
backdrop-filter: blur(8px);
|
|
-webkit-backdrop-filter: blur(8px);
|
|
border-radius: 20px;
|
|
padding: 5px 12px 5px 8px;
|
|
font-size: 11px;
|
|
font-weight: 600;
|
|
letter-spacing: 0.06em;
|
|
text-transform: uppercase;
|
|
color: #c084fc;
|
|
margin-bottom: 18px;
|
|
width: fit-content;
|
|
}
|
|
|
|
.badge-dot {
|
|
width: 7px; height: 7px;
|
|
border-radius: 50%;
|
|
background: #a855f7;
|
|
box-shadow: 0 0 6px #a855f7;
|
|
animation: pulse 2s ease-in-out infinite;
|
|
}
|
|
|
|
@keyframes pulse {
|
|
0%, 100% { opacity: 1; }
|
|
50% { opacity: 0.4; }
|
|
}
|
|
|
|
h1 {
|
|
font-size: 34px;
|
|
font-weight: 800;
|
|
color: #fff;
|
|
line-height: 1.15;
|
|
letter-spacing: -0.02em;
|
|
margin-bottom: 8px;
|
|
text-shadow: 0 2px 20px rgba(0,0,0,0.6);
|
|
word-break: break-word;
|
|
}
|
|
|
|
.sub {
|
|
font-size: 14px;
|
|
color: rgba(255,255,255,0.45);
|
|
margin-bottom: 28px;
|
|
}
|
|
|
|
.card {
|
|
background: rgba(15, 7, 28, 0.72);
|
|
border: 1px solid rgba(255,255,255,0.08);
|
|
backdrop-filter: blur(20px);
|
|
-webkit-backdrop-filter: blur(20px);
|
|
border-radius: 20px;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.stats {
|
|
display: grid;
|
|
grid-template-columns: 1fr 1fr 1fr;
|
|
border-bottom: 1px solid rgba(255,255,255,0.06);
|
|
}
|
|
|
|
.stat {
|
|
padding: 18px 20px;
|
|
border-right: 1px solid rgba(255,255,255,0.06);
|
|
}
|
|
.stat:last-child { border-right: none; }
|
|
|
|
.stat-label {
|
|
font-size: 10px;
|
|
font-weight: 600;
|
|
letter-spacing: 0.08em;
|
|
text-transform: uppercase;
|
|
color: rgba(255,255,255,0.3);
|
|
margin-bottom: 4px;
|
|
}
|
|
|
|
.stat-value {
|
|
font-size: 15px;
|
|
font-weight: 700;
|
|
color: #e9d5ff;
|
|
}
|
|
|
|
.dl-section {
|
|
padding: 22px 24px 24px;
|
|
}
|
|
|
|
.btn-download {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
gap: 10px;
|
|
width: 100%;
|
|
padding: 15px 20px;
|
|
background: linear-gradient(135deg, #7c3aed 0%, #6d28d9 100%);
|
|
color: #fff;
|
|
text-decoration: none;
|
|
border-radius: 12px;
|
|
font-size: 15px;
|
|
font-weight: 700;
|
|
letter-spacing: 0.01em;
|
|
border: 1px solid rgba(255,255,255,0.12);
|
|
box-shadow: 0 4px 24px rgba(124,58,237,0.4), inset 0 1px 0 rgba(255,255,255,0.15);
|
|
transition: transform 0.15s, box-shadow 0.15s, background 0.15s;
|
|
}
|
|
|
|
.btn-download:hover {
|
|
transform: translateY(-2px);
|
|
box-shadow: 0 8px 32px rgba(124,58,237,0.55), inset 0 1px 0 rgba(255,255,255,0.18);
|
|
background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
|
|
}
|
|
|
|
.btn-download:active {
|
|
transform: translateY(0);
|
|
box-shadow: 0 2px 12px rgba(124,58,237,0.3);
|
|
}
|
|
|
|
.btn-download svg {
|
|
flex-shrink: 0;
|
|
opacity: 0.9;
|
|
}
|
|
|
|
.sha-row {
|
|
margin-top: 14px;
|
|
display: flex;
|
|
align-items: flex-start;
|
|
gap: 8px;
|
|
}
|
|
|
|
.sha-label {
|
|
font-size: 10px;
|
|
font-weight: 600;
|
|
letter-spacing: 0.06em;
|
|
text-transform: uppercase;
|
|
color: rgba(255,255,255,0.2);
|
|
white-space: nowrap;
|
|
padding-top: 1px;
|
|
}
|
|
|
|
.sha-val {
|
|
font-size: 10px;
|
|
font-family: 'Consolas', 'SF Mono', monospace;
|
|
color: rgba(255,255,255,0.18);
|
|
word-break: break-all;
|
|
line-height: 1.5;
|
|
}
|
|
|
|
</style>
|
|
</head>
|
|
<body>
|
|
<div class="wrap">
|
|
<div class="badge" id="badge">
|
|
<span class="badge-dot"></span>
|
|
<span id="badge-text">KittyRec</span>
|
|
</div>
|
|
<h1>{{ build.build_name }}</h1>
|
|
<div class="sub">Ready to download</div>
|
|
|
|
<div class="card">
|
|
<div class="stats">
|
|
<div class="stat">
|
|
<div class="stat-label">Size</div>
|
|
<div class="stat-value">
|
|
{% if build.size >= 1073741824 %}
|
|
{{ "%.1f"|format(build.size / 1073741824) }} GB
|
|
{% else %}
|
|
{{ "%.0f"|format(build.size / 1048576) }} MB
|
|
{% endif %}
|
|
</div>
|
|
</div>
|
|
<div class="stat">
|
|
<div class="stat-label">Date</div>
|
|
<div class="stat-value">{{ build.date }}</div>
|
|
</div>
|
|
<div class="stat">
|
|
<div class="stat-label">Downloads</div>
|
|
<div class="stat-value">{{ build.download_count }}</div>
|
|
</div>
|
|
</div>
|
|
<div class="dl-section">
|
|
<a class="btn-download" href="{{ dl_url }}" download="{{ build.build_name }}.zip">
|
|
<svg width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round">
|
|
<path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"/>
|
|
<polyline points="7 10 12 15 17 10"/>
|
|
<line x1="12" y1="15" x2="12" y2="3"/>
|
|
</svg>
|
|
Download KittyRec
|
|
</a>
|
|
<div class="sha-row">
|
|
<span class="sha-label">SHA-256</span>
|
|
<span class="sha-val">{{ build.sha256 }}</span>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
</div>
|
|
<script>
|
|
fetch('/admin/api/public_stats').then(r=>r.json()).then(d=>{
|
|
if(d.online>0) document.getElementById('badge-text').textContent=d.online+' Online';
|
|
}).catch(()=>{});
|
|
</script>
|
|
</body>
|
|
</html>
|