feat: add boilerplate

This commit is contained in:
2026-10-26 21:56:23 +01:00
commit cc6675f7c6
29 changed files with 2231 additions and 0 deletions

183
app/static/css/style.css Normal file
View File

@@ -0,0 +1,183 @@
:root {
--bg: #0b0f1a;
--panel: #1a1433;
--ink: #f4e8c1;
--accent: #7dff6a;
--pink: #ff5d8f;
--cyan: #5ce1ff;
--gold: #ffd35c;
--shadow: #05060c;
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
background: radial-gradient(circle at 20% 0%, #2a1b5c 0%, var(--bg) 45%);
color: var(--ink);
font-family: "VT323", monospace;
font-size: 22px;
image-rendering: pixelated;
}
.scanlines {
pointer-events: none;
position: fixed;
inset: 0;
background: repeating-linear-gradient(
to bottom,
rgba(0,0,0,0.15) 0px,
rgba(0,0,0,0.15) 1px,
transparent 2px,
transparent 4px
);
z-index: 50;
}
.topbar {
display: flex;
justify-content: space-between;
align-items: center;
padding: 16px 24px;
border-bottom: 4px solid var(--accent);
}
.logo {
font-family: "Press Start 2P", monospace;
font-size: 14px;
color: var(--gold);
text-decoration: none;
text-shadow: 3px 3px 0 #000;
}
nav a { color: var(--cyan); text-decoration: none; font-family: "Press Start 2P", monospace; font-size: 10px; }
main { max-width: 1100px; margin: 24px auto; padding: 0 16px 48px; }
.pixel-panel {
background: var(--panel);
border: 4px solid var(--ink);
box-shadow: 8px 8px 0 var(--shadow);
padding: 20px;
margin-bottom: 20px;
}
h1, h2, h3 { font-family: "Press Start 2P", monospace; font-size: 14px; color: var(--gold); }
.tiny { font-size: 16px; opacity: 0.8; word-break: break-all; }
.hint { text-align: center; opacity: 0.7; }
.stack { display: flex; flex-direction: column; gap: 12px; }
label { display: flex; flex-direction: column; gap: 6px; font-family: "Press Start 2P", monospace; font-size: 10px; }
input, select, textarea {
font-family: "VT323", monospace;
font-size: 22px;
background: #0d0820;
color: var(--ink);
border: 3px solid var(--cyan);
padding: 8px;
}
.check { flex-direction: row; align-items: center; gap: 10px; }
.check input { width: auto; }
.btn {
font-family: "Press Start 2P", monospace;
font-size: 12px;
background: var(--accent);
color: #041204;
border: 4px solid #000;
padding: 12px 16px;
cursor: pointer;
box-shadow: 4px 4px 0 #000;
}
.btn:hover { transform: translate(2px, 2px); box-shadow: 2px 2px 0 #000; }
.btn-ghost { background: var(--cyan); }
.btn-small, .btn-tiny { font-size: 9px; padding: 8px; }
.btn:disabled { opacity: 0.4; cursor: not-allowed; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.alert { background: var(--pink); color: #000; padding: 8px; border: 3px solid #000; }
.play-layout { display: grid; grid-template-columns: 280px 1fr; gap: 16px; }
.board ol { padding-left: 22px; }
.board li { margin: 6px 0; }
.board li.host::after { content: " ★"; color: var(--gold); }
.board li.off { opacity: 0.4; }
.stage .job-title { font-family: "Press Start 2P", monospace; font-size: 13px; line-height: 1.6; }
.meta { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0; }
.chip { background: #000; border: 2px solid var(--cyan); padding: 4px 8px; font-size: 16px; }
.chip.bonus { border-color: var(--gold); color: var(--gold); }
.description { background: #0d0820; border: 3px dashed var(--pink); padding: 12px; line-height: 1.3; max-height: 240px; overflow: auto; }
.options { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 16px 0; }
.opt {
background: #120c28;
border: 3px solid var(--ink);
padding: 12px;
cursor: pointer;
text-align: left;
color: var(--ink);
font-family: "VT323", monospace;
font-size: 22px;
}
.opt.picked { border-color: var(--accent); background: #16351a; }
.opt.good { border-color: var(--accent); background: #1d5a24; }
.opt.bad { border-color: var(--pink); }
.results { margin-top: 12px; }
.results li { list-style: none; }
.results ul { padding: 0; }
.row-between { display: flex; justify-content: space-between; align-items: center; }
.admin-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.pixel-table { width: 100%; border-collapse: collapse; font-size: 18px; }
.pixel-table th, .pixel-table td { border: 2px solid #3c2f66; padding: 6px; text-align: left; vertical-align: top; }
.clip { max-width: 240px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.st-ready, .st-done { color: var(--accent); }
.st-queued, .st-running, .st-needs_salary { color: var(--gold); }
.st-error, .st-hidden { color: var(--pink); }
.mascot-wrap { display: grid; grid-template-columns: 110px 1fr; gap: 12px; align-items: center; margin-bottom: 16px; }
.mascot-wrap.compact { grid-template-columns: 80px 1fr; }
.speech {
background: #fff8dc;
color: #1a1028;
border: 4px solid #000;
padding: 10px 12px;
position: relative;
min-height: 72px;
}
.speech::before {
content: "";
position: absolute;
left: -16px;
top: 18px;
border: 8px solid transparent;
border-right-color: #000;
}
.ralo { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.ralo-name { font-family: "Press Start 2P", monospace; font-size: 8px; color: var(--accent); }
.ralo-pixel {
width: 16px;
height: 16px;
transform: scale(1.5);
transform-origin: top center;
margin-bottom: 48px;
animation: bounce 1.1s steps(2) infinite;
background: #000;
box-shadow:
4px 0 0 #000, 8px 0 0 #000, 12px 0 0 #000,
0 4px 0 #000, 4px 4px 0 #7dff6a, 8px 4px 0 #7dff6a, 12px 4px 0 #000, 16px 4px 0 #000,
0 8px 0 #000, 4px 8px 0 #7dff6a, 8px 8px 0 #ffd35c, 12px 8px 0 #7dff6a, 16px 8px 0 #000,
0 12px 0 #000, 4px 12px 0 #5ce1ff, 8px 12px 0 #7dff6a, 12px 12px 0 #5ce1ff, 16px 12px 0 #000,
4px 16px 0 #000, 8px 16px 0 #ff5d8f, 12px 16px 0 #000,
4px 20px 0 #000, 8px 20px 0 #000, 12px 20px 0 #000;
}
@keyframes bounce {
0% { translate: 0 0; }
100% { translate: 0 2px; }
}
@media (max-width: 800px) {
.play-layout, .admin-grid, .grid-2, .mascot-wrap, .options { grid-template-columns: 1fr; }
.logo { font-size: 10px; }
}