Refactor HTML files to use 'defer' attribute for script loading and update content for clarity and structure

This commit is contained in:
miles committed 2026-04-09 11:55:35 -05:00
1 parent 9db5e39a56
commit e2733d9d24
15 files changed
+227 -105

No files matched your search

+11 -5
View File
@@ -1,9 +1,10 @@
:root{--bg:#0f1724;--panel:#071326;--accent:#5cc5ff;--muted:#9fb3c8;--text:#e6eef8;--card:#081220;--accent-warm:#ffb84d}
*{box-sizing:border-box}
html,body{height:100%;margin:0;font-family:"Space Grotesk","Trebuchet MS",ui-sans-serif,system-ui,-apple-system,"Segoe UI",sans-serif;color:var(--text);background:radial-gradient(circle at top,rgba(92,197,255,0.14),transparent 28%),linear-gradient(180deg,#061021 0%,#071426 100%)}
header{display:flex;align-items:center;justify-content:space-between;padding:14px 20px;background:linear-gradient(90deg,rgba(255,255,255,0.05),transparent);backdrop-filter:blur(12px);border-bottom:1px solid rgba(255,255,255,0.05)}
header h1{margin:0;font-size:1.1rem}
nav a{color:var(--muted);margin-left:14px;text-decoration:none;transition:color .2s ease,opacity .2s ease}
header{position:sticky;top:0;z-index:50;display:flex;align-items:center;justify-content:space-between;gap:18px;padding:14px 20px;background:linear-gradient(90deg,rgba(6,16,33,0.9),rgba(7,20,38,0.72));backdrop-filter:blur(16px);border-bottom:1px solid rgba(255,255,255,0.05)}
header h1{margin:0;font-size:1.1rem;letter-spacing:.02em}
nav{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:10px 12px}
nav a{color:var(--muted);margin-left:0;text-decoration:none;transition:color .2s ease,opacity .2s ease}
nav a:hover{color:var(--text)}
main{padding:18px 20px}
h1,h2,h3,h4{line-height:1.15}
@@ -18,7 +19,8 @@ h1,h2,h3,h4{line-height:1.15}
.level-link.active{background:rgba(92,197,255,0.06);color:var(--accent)}
.content{flex:1}
.panel{background:var(--panel);padding:14px;border-radius:10px;margin-bottom:12px;box-shadow:0 3px 12px rgba(2,6,23,0.6)}
.search-row{display:flex;gap:14px;align-items:end;margin-bottom:0}
.home-section-grid,.spotlight-panel,.discord-panel,.list-table-panel,.submission-panel,.run-side-panel{content-visibility:auto;contain-intrinsic-size:1px 500px}
.search-row{display:flex;flex-wrap:wrap;gap:14px;align-items:end;margin-bottom:0}
.search-row input[type=text]{flex:1;padding:10px 12px;border-radius:8px;border:1px solid rgba(255,255,255,0.04);background:transparent;color:var(--text)}
.search-row select{padding:8px;border-radius:8px;border:1px solid rgba(255,255,255,0.04);background:transparent;color:var(--text)}
.table-wrap{overflow:auto;border-radius:8px}
@@ -130,6 +132,7 @@ table.levels-table{border-radius:18px;overflow:hidden}
table.levels-table th{background:rgba(255,255,255,0.03)}
table.levels-table td{font-size:.98rem}
table.levels-table td:last-child{text-align:right}
table.levels-table tbody tr:nth-child(even) td{background:rgba(255,255,255,0.018)}
table.levels-table .btn{padding:9px 14px}
.wip-hero{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(280px,.85fr);gap:22px;align-items:stretch;min-height:calc(100vh - 132px)}
.wip-copy,.wip-stage{position:relative}
@@ -296,6 +299,9 @@ table.levels-table .btn{padding:9px 14px}
.discord-label{margin:0 0 6px 0;text-transform:uppercase;letter-spacing:0.14em;font-size:0.72rem;font-weight:700;color:#bfc7ff}
.discord-panel h2{margin:0;font-size:1.9rem}
.discord-text{max-width:720px;margin:0 0 16px 0;line-height:1.65;color:#dce8f5}
.discord-footnote{margin-top:16px;margin-bottom:0}
.feature-bullet-list{margin:0;padding-left:22px;color:#e0ffe9}
.feature-bullet-list li{margin:0 0 10px 0;line-height:1.55}
.download-panel .discord-text{color:#e0ffe9}
.discord-highlights{display:flex;flex-wrap:wrap;gap:10px}
.discord-highlights span{padding:8px 12px;border-radius:999px;background:rgba(255,255,255,0.07);color:#eef3ff;font-size:0.92rem}
@@ -353,7 +359,7 @@ header nav .fedl-auth-nav a:hover{color:var(--text)}
@media(max-width:900px){.layout{flex-direction:column}.sidebar{width:100%}.sidebar .panel{height:auto}.video-modal iframe{height:320px}.modal-runs-head,.modal-run-card{grid-template-columns:1fr}.home-hero{grid-template-columns:1fr;min-height:auto}.home-copy,.hero-stage{padding:24px 22px}.hero-stats,.home-section-grid,.spotlight-grid{grid-template-columns:1fr}.spotlight-panel{grid-template-columns:1fr;padding:24px 22px}.list-hero-panel,.table-header,.search-row,.roulette-head,.guess-controls{flex-direction:column;align-items:flex-start}.control-select{max-width:none;width:100%}.roulette-shell{grid-template-columns:1fr}.discord-panel{flex-direction:column;align-items:flex-start;padding:22px 20px}.discord-panel h2{font-size:1.55rem}.discord-actions{width:100%;justify-content:flex-start}.rules-view header{padding:16px 18px}.rules-view header h1{font-size:1.55rem}.rules-page{padding:24px 20px}.rules-page h2{font-size:1.65rem}.guess-controls input,.guess-controls .btn{width:100%}}
@media(max-width:900px){.error-grid{grid-template-columns:1fr}.error-copy,.error-side{padding:24px 20px}.error-copy h2{font-size:2.5rem}}
@media(max-width:900px){.admin-overview-panel,.admin-toolbar{flex-direction:column;align-items:stretch}.admin-actions{flex-direction:column;align-items:stretch}.admin-password-field input,.admin-actions input[type=text],.admin-actions input[type=password]{min-width:0;width:100%}.run-shell{grid-template-columns:1fr}.run-head{flex-direction:column;align-items:flex-start}.run-form{grid-template-columns:1fr}.admin-login-screen{padding:18px}.admin-login-card{padding:26px 22px}}
@media(max-width:640px){header{flex-direction:column;align-items:flex-start;gap:12px}nav{display:flex;flex-wrap:wrap;gap:10px}nav a{margin-left:0}header nav a.btn{margin-left:0}.home-copy h2{max-width:none}.hero-actions{flex-direction:column;align-items:stretch}.hero-actions .btn,.roulette-btn{width:100%;text-align:center}.list-hero-panel,.list-controls-panel,.list-table-panel,.roulette-panel,.roulette-rules-card,.run-panel,.run-side-panel,.submission-panel{padding:22px 18px}.table-hint{text-align:left}.run-admin-actions{justify-content:flex-start}}
@media(max-width:640px){header{align-items:flex-start;padding:14px 16px}header h1{font-size:1rem}nav{justify-content:flex-start}nav a{padding:8px 12px;border-radius:999px;background:rgba(255,255,255,0.04);border:1px solid rgba(255,255,255,0.06)}header nav a.btn{margin-left:0}.home-copy h2{max-width:none}.hero-actions{flex-direction:column;align-items:stretch}.hero-actions .btn,.roulette-btn{width:100%;text-align:center}.list-hero-panel,.list-controls-panel,.list-table-panel,.roulette-panel,.roulette-rules-card,.run-panel,.run-side-panel,.submission-panel{padding:22px 18px}.table-hint{text-align:left}.run-admin-actions{justify-content:flex-start}}
.stats-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(140px,1fr));gap:14px;margin-top:16px}
.stat-box{padding:16px;border-radius:14px;background:rgba(255,255,255,0.04);border:1px solid rgba(255,255,255,0.08);text-align:center}
.stat-box strong{display:block;margin-bottom:6px;font-size:1.75rem;color:var(--accent)}