Upload files to "templates"
This commit is contained in:
372
templates/base.html
Normal file
372
templates/base.html
Normal file
@@ -0,0 +1,372 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>{% block title %}KittyRec INDEV{% endblock %}</title>
|
||||
<link rel="icon" type="image/x-icon" href="/static/favicon.ico">
|
||||
<link rel="icon" type="image/png" sizes="32x32" href="/static/kittyrec_icon.png">
|
||||
<link rel="apple-touch-icon" href="/static/kittyrec_icon.png">
|
||||
<link rel="stylesheet" href="/static/admin/admin.css">
|
||||
<style>
|
||||
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
|
||||
|
||||
:root {
|
||||
--bg: #0b0b14;
|
||||
--bg2: #12121f;
|
||||
--bg3: #1a1a2e;
|
||||
--bg4: #222240;
|
||||
--border: #2a2a4a;
|
||||
--purple: #7c3aed;
|
||||
--purple-l: #a855f7;
|
||||
--teal: #06b6d4;
|
||||
--pink: #ec4899;
|
||||
--green: #10b981;
|
||||
--yellow: #f59e0b;
|
||||
--red: #ef4444;
|
||||
--text: #e2e8f0;
|
||||
--text2: #94a3b8;
|
||||
--text3: #475569;
|
||||
--radius: 10px;
|
||||
--shadow: 0 4px 24px rgba(0,0,0,0.6);
|
||||
}
|
||||
|
||||
html, body { height: 100%; }
|
||||
body {
|
||||
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
|
||||
background: var(--bg);
|
||||
color: var(--text);
|
||||
min-height: 100vh;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
}
|
||||
|
||||
/* ── Nav ── */
|
||||
nav {
|
||||
background: rgba(18,18,31,.92);
|
||||
border-bottom: 1px solid var(--border);
|
||||
padding: 0 1.75rem;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
height: 52px;
|
||||
gap: 1.25rem;
|
||||
position: sticky;
|
||||
top: 0;
|
||||
z-index: 100;
|
||||
backdrop-filter: blur(12px);
|
||||
-webkit-backdrop-filter: blur(12px);
|
||||
}
|
||||
.nav-brand {
|
||||
font-weight: 800;
|
||||
font-size: 1rem;
|
||||
color: var(--text);
|
||||
text-decoration: none;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: .5rem;
|
||||
letter-spacing: -.3px;
|
||||
}
|
||||
.nav-brand .cat { width: 32px; height: 32px; }
|
||||
.nav-brand .indev {
|
||||
font-size: .6rem;
|
||||
font-weight: 700;
|
||||
letter-spacing: 1px;
|
||||
color: var(--purple-l);
|
||||
background: rgba(124,58,237,.12);
|
||||
border: 1px solid rgba(124,58,237,.25);
|
||||
padding: 1px 5px;
|
||||
border-radius: 3px;
|
||||
}
|
||||
.nav-links { display: flex; gap: 2px; margin-left: auto; }
|
||||
.nav-links a {
|
||||
color: var(--text3);
|
||||
text-decoration: none;
|
||||
font-size: .825rem;
|
||||
font-weight: 500;
|
||||
padding: .35rem .8rem;
|
||||
border-radius: 6px;
|
||||
transition: color .12s, background .12s;
|
||||
}
|
||||
.nav-links a:hover { color: var(--text); background: var(--bg3); }
|
||||
.nav-links a.active { color: var(--text); background: var(--bg3); }
|
||||
|
||||
/* ── Layout ── */
|
||||
main { flex: 1; padding: 2rem 1.5rem; max-width: 1200px; margin: 0 auto; width: 100%; }
|
||||
.page-header { margin-bottom: 2rem; }
|
||||
.page-header h1 { font-size: 1.75rem; font-weight: 800; letter-spacing: -.5px; }
|
||||
.page-header p { color: var(--text2); margin-top: .35rem; font-size: .9rem; }
|
||||
|
||||
/* ── Cards ── */
|
||||
.card {
|
||||
background: var(--bg2);
|
||||
border: 1px solid var(--border);
|
||||
border-radius: var(--radius);
|
||||
padding: 1.5rem;
|
||||
box-shadow: var(--shadow);
|
||||
}
|
||||
.card-title {
|
||||
font-size: .75rem;
|
||||
font-weight: 700;
|
||||
letter-spacing: 1px;
|
||||
text-transform: uppercase;
|
||||
color: var(--text3);
|
||||
margin-bottom: 1rem;
|
||||
}
|
||||
|
||||
/* ── Stats grid ── */
|
||||
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 1rem; margin-bottom: 2rem; }
|
||||
.stat-card {
|
||||
background: var(--bg2);
|
||||
border: 1px solid var(--border);
|
||||
border-radius: var(--radius);
|
||||
padding: 1.25rem 1.5rem;
|
||||
position: relative;
|
||||
overflow: hidden;
|
||||
}
|
||||
.stat-card::before {
|
||||
content: '';
|
||||
position: absolute;
|
||||
inset: 0;
|
||||
background: linear-gradient(135deg, var(--accent-color, var(--purple)) 0%, transparent 60%);
|
||||
opacity: .07;
|
||||
}
|
||||
.stat-card .label { font-size: .75rem; font-weight: 600; text-transform: uppercase; letter-spacing: .8px; color: var(--text3); margin-bottom: .4rem; }
|
||||
.stat-card .value { font-size: 2.25rem; font-weight: 800; line-height: 1; }
|
||||
.stat-card .sub { font-size: .78rem; color: var(--text2); margin-top: .3rem; }
|
||||
.stat-card.green { --accent-color: var(--green); }
|
||||
.stat-card.purple { --accent-color: var(--purple); }
|
||||
.stat-card.teal { --accent-color: var(--teal); }
|
||||
.stat-card.yellow { --accent-color: var(--yellow); }
|
||||
.stat-card.green .value { color: var(--green); }
|
||||
.stat-card.purple .value { color: var(--purple-l); }
|
||||
.stat-card.teal .value { color: var(--teal); }
|
||||
.stat-card.yellow .value { color: var(--yellow); }
|
||||
|
||||
/* ── Tables ── */
|
||||
.table-wrap { overflow-x: auto; }
|
||||
table { width: 100%; border-collapse: collapse; font-size: .875rem; }
|
||||
thead th {
|
||||
text-align: left;
|
||||
font-size: .7rem;
|
||||
font-weight: 700;
|
||||
letter-spacing: .8px;
|
||||
text-transform: uppercase;
|
||||
color: var(--text3);
|
||||
padding: .6rem 1rem;
|
||||
border-bottom: 1px solid var(--border);
|
||||
}
|
||||
tbody tr { border-bottom: 1px solid var(--bg3); transition: background .1s; }
|
||||
tbody tr:last-child { border-bottom: none; }
|
||||
tbody tr:hover { background: var(--bg3); }
|
||||
td { padding: .7rem 1rem; vertical-align: middle; }
|
||||
|
||||
/* ── Badges ── */
|
||||
.badge {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
gap: 4px;
|
||||
padding: 2px 8px;
|
||||
border-radius: 999px;
|
||||
font-size: .7rem;
|
||||
font-weight: 700;
|
||||
letter-spacing: .4px;
|
||||
text-transform: uppercase;
|
||||
}
|
||||
.badge-green { background: rgba(16,185,129,.15); color: var(--green); border: 1px solid rgba(16,185,129,.25); }
|
||||
.badge-purple { background: rgba(124,58,237,.15); color: var(--purple-l); border: 1px solid rgba(124,58,237,.25); }
|
||||
.badge-teal { background: rgba(6,182,212,.15); color: var(--teal); border: 1px solid rgba(6,182,212,.25); }
|
||||
.badge-red { background: rgba(239,68,68,.15); color: var(--red); border: 1px solid rgba(239,68,68,.25); }
|
||||
.badge-gray { background: rgba(71,85,105,.2); color: var(--text2); border: 1px solid var(--border); }
|
||||
.badge-yellow { background: rgba(245,158,11,.15); color: var(--yellow); border: 1px solid rgba(245,158,11,.25); }
|
||||
.dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; display: inline-block; }
|
||||
|
||||
/* ── Buttons ── */
|
||||
.btn {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
gap: .35rem;
|
||||
padding: .45rem .9rem;
|
||||
border-radius: 7px;
|
||||
border: none;
|
||||
font-size: .8rem;
|
||||
font-weight: 600;
|
||||
cursor: pointer;
|
||||
text-decoration: none;
|
||||
transition: opacity .15s, transform .1s;
|
||||
white-space: nowrap;
|
||||
}
|
||||
.btn:hover { opacity: .85; transform: translateY(-1px); }
|
||||
.btn:active { transform: translateY(0); opacity: 1; }
|
||||
.btn-primary { background: var(--purple); color: #fff; }
|
||||
.btn-teal { background: var(--teal); color: #000; }
|
||||
.btn-green { background: var(--green); color: #fff; }
|
||||
.btn-red { background: var(--red); color: #fff; }
|
||||
.btn-ghost { background: var(--bg4); color: var(--text); border: 1px solid var(--border); }
|
||||
.btn-sm { padding: .3rem .65rem; font-size: .75rem; border-radius: 5px; }
|
||||
|
||||
/* ── Forms ── */
|
||||
.form-group { margin-bottom: 1.25rem; }
|
||||
label { display: block; font-size: .8rem; font-weight: 600; color: var(--text2); margin-bottom: .4rem; }
|
||||
input[type=text], input[type=password], input[type=number], select, textarea {
|
||||
width: 100%;
|
||||
background: var(--bg3);
|
||||
border: 1px solid var(--border);
|
||||
border-radius: 7px;
|
||||
color: var(--text);
|
||||
padding: .6rem .85rem;
|
||||
font-size: .875rem;
|
||||
outline: none;
|
||||
transition: border-color .15s;
|
||||
font-family: inherit;
|
||||
}
|
||||
input:focus, select:focus, textarea:focus { border-color: var(--purple); }
|
||||
select option { background: var(--bg3); }
|
||||
|
||||
/* ── Alert ── */
|
||||
.alert {
|
||||
padding: .75rem 1rem;
|
||||
border-radius: 7px;
|
||||
font-size: .85rem;
|
||||
margin-bottom: 1.25rem;
|
||||
}
|
||||
.alert-red { background: rgba(239,68,68,.1); border: 1px solid rgba(239,68,68,.3); color: var(--red); }
|
||||
.alert-green { background: rgba(16,185,129,.1); border: 1px solid rgba(16,185,129,.3); color: var(--green); }
|
||||
|
||||
/* ── Modal ── */
|
||||
.modal-backdrop {
|
||||
display: none;
|
||||
position: fixed; inset: 0;
|
||||
background: rgba(0,0,0,.75);
|
||||
z-index: 200;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
}
|
||||
.modal-backdrop.open { display: flex; }
|
||||
.modal {
|
||||
background: var(--bg2);
|
||||
border: 1px solid var(--border);
|
||||
border-radius: var(--radius);
|
||||
padding: 2rem;
|
||||
width: 100%;
|
||||
max-width: 480px;
|
||||
box-shadow: 0 8px 48px rgba(0,0,0,.8);
|
||||
}
|
||||
.modal h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 1.25rem; }
|
||||
.modal-footer { display: flex; gap: .75rem; justify-content: flex-end; margin-top: 1.5rem; }
|
||||
|
||||
/* ── Section head ── */
|
||||
.section-head {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
margin-bottom: 1rem;
|
||||
}
|
||||
.section-head h2 { font-size: 1rem; font-weight: 700; }
|
||||
|
||||
/* ── Inline flex helpers ── */
|
||||
.flex { display: flex; }
|
||||
.gap-1 { gap: .5rem; }
|
||||
.gap-2 { gap: 1rem; }
|
||||
.items-center { align-items: center; }
|
||||
.ml-auto { margin-left: auto; }
|
||||
.mt-1 { margin-top: .5rem; }
|
||||
.mt-2 { margin-top: 1rem; }
|
||||
.mb-2 { margin-bottom: 1rem; }
|
||||
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
|
||||
|
||||
/* ── Footer ── */
|
||||
footer {
|
||||
text-align: center;
|
||||
font-size: .72rem;
|
||||
color: var(--text3);
|
||||
padding: 1.25rem 1.5rem;
|
||||
border-top: 1px solid var(--border);
|
||||
letter-spacing: .2px;
|
||||
}
|
||||
|
||||
/* ── Pulse animation for online dot ── */
|
||||
@keyframes pulse {
|
||||
0%, 100% { opacity: 1; }
|
||||
50% { opacity: .4; }
|
||||
}
|
||||
.live-dot {
|
||||
display: inline-block;
|
||||
width: 8px; height: 8px;
|
||||
border-radius: 50%;
|
||||
background: var(--green);
|
||||
animation: pulse 2s infinite;
|
||||
margin-right: 5px;
|
||||
}
|
||||
|
||||
/* ── Search bar ── */
|
||||
.search-bar {
|
||||
display: flex;
|
||||
gap: .5rem;
|
||||
margin-bottom: 1rem;
|
||||
}
|
||||
.search-bar input { flex: 1; }
|
||||
|
||||
/* ── Toasts ── */
|
||||
#toast-container {
|
||||
position: fixed;
|
||||
bottom: 1.5rem;
|
||||
right: 1.5rem;
|
||||
z-index: 500;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: .5rem;
|
||||
}
|
||||
.toast {
|
||||
background: var(--bg2);
|
||||
border: 1px solid var(--border);
|
||||
border-radius: 8px;
|
||||
padding: .75rem 1rem;
|
||||
font-size: .85rem;
|
||||
color: var(--text);
|
||||
box-shadow: var(--shadow);
|
||||
animation: slideIn .2s ease;
|
||||
min-width: 220px;
|
||||
}
|
||||
.toast.success { border-left: 3px solid var(--green); }
|
||||
.toast.error { border-left: 3px solid var(--red); }
|
||||
@keyframes slideIn { from { transform: translateX(100%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }
|
||||
</style>
|
||||
{% block head %}{% endblock %}
|
||||
<script>window.KR = window.KR || {};</script>
|
||||
</head>
|
||||
<body>
|
||||
<nav>
|
||||
<a class="nav-brand" href="/">
|
||||
<img class="cat" src="/static/kittyrec_icon.png" alt="KittyRec">
|
||||
KittyRec
|
||||
<span class="indev">INDEV</span>
|
||||
</a>
|
||||
<div class="nav-links">
|
||||
<a href="/" {% if request.path == '/' %}class="active"{% endif %}>Home</a>
|
||||
<a href="/portal" {% if request.path.startswith('/portal') and not request.path.startswith('/portal/') %}class="active"{% endif %}>Portal</a>
|
||||
{% if request.path.startswith('/admin') %}
|
||||
<a href="/admin" {% if request.path == '/admin' %}class="active"{% endif %}>Dashboard</a>
|
||||
<a href="/admin/players" {% if request.path.startswith('/admin/players') %}class="active"{% endif %}>Players</a>
|
||||
<a href="/admin/bans" {% if request.path.startswith('/admin/bans') %}class="active"{% endif %}>Bans</a>
|
||||
<a href="/admin/sessions" {% if request.path.startswith('/admin/sessions') %}class="active"{% endif %}>Sessions</a>
|
||||
<a href="/admin/gifts" {% if request.path.startswith('/admin/gifts') %}class="active"{% endif %}>Gifts</a>
|
||||
<a href="/admin/logout" style="color:var(--text3);font-size:.8rem;padding:.4rem .7rem">Sign out</a>
|
||||
{% else %}
|
||||
<a href="/admin">Admin</a>
|
||||
{% endif %}
|
||||
</div>
|
||||
</nav>
|
||||
|
||||
<main>{% block content %}{% endblock %}</main>
|
||||
|
||||
<footer>
|
||||
<img src="/static/kittyrec_logo.png" alt="KittyRec" style="height:48px;opacity:.35;margin-bottom:.5rem;display:block;margin-left:auto;margin-right:auto;">
|
||||
KittyRec INDEV · RecRoom Build {{ app_version_long }} · Revival Server
|
||||
</footer>
|
||||
|
||||
<div id="toast-container"></div>
|
||||
|
||||
<script src="/static/admin/admin.js"></script>
|
||||
{% block scripts %}{% endblock %}
|
||||
</body>
|
||||
</html>
|
||||
256
templates/download_page.html
Normal file
256
templates/download_page.html
Normal file
@@ -0,0 +1,256 @@
|
||||
<!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>
|
||||
41
templates/download_unavailable.html
Normal file
41
templates/download_unavailable.html
Normal file
@@ -0,0 +1,41 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>Not Available — KittyRec</title>
|
||||
<style>
|
||||
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
|
||||
body {
|
||||
font-family: 'Segoe UI', system-ui, sans-serif;
|
||||
background: #0d0719;
|
||||
color: #e0d6f7;
|
||||
min-height: 100vh;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
padding: 24px;
|
||||
}
|
||||
.card {
|
||||
background: #1a0d30;
|
||||
border: 1px solid #3d1f6b;
|
||||
border-radius: 16px;
|
||||
padding: 40px 48px;
|
||||
max-width: 420px;
|
||||
width: 100%;
|
||||
text-align: center;
|
||||
}
|
||||
.logo { font-size: 13px; color: #7c5cbf; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 20px; }
|
||||
h1 { font-size: 22px; font-weight: 700; color: #e9d5ff; margin-bottom: 10px; }
|
||||
p { font-size: 14px; color: #7c5cbf; }
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<div class="card">
|
||||
<div class="logo">KittyRec</div>
|
||||
<h1>Download Unavailable</h1>
|
||||
<p>This download link has been disabled or does not exist.</p>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user