mirror of
https://github.com/mileswolfallen2/miles-web.git
synced 2026-12-03 23:44:07 +00:00
- Implement tests for HTTP API endpoints, ensuring correct responses and security headers. - Create configuration tests to validate loading of defaults and environment overrides. - Add tests for FEDL service to verify data handling and snapshot functionality. - Introduce GitHub service tests to check API data normalization and caching behavior. - Develop monitor service tests for network checks and uptime calculations. - Implement persistence tests to ensure database migrations are idempotent and data persists across restarts. - Add vault service tests for session management and brute-force protection mechanisms. - Include helper functions for test context creation and JSON response handling.
333 lines
16 KiB
CSS
333 lines
16 KiB
CSS
:root {
|
|
--bg: #050507;
|
|
--bg-2: #08080d;
|
|
--panel: rgba(12, 12, 19, 0.88);
|
|
--panel-solid: #0c0c13;
|
|
--line: rgba(255, 255, 255, 0.09);
|
|
--line-strong: rgba(255, 255, 255, 0.16);
|
|
--text: #f1eff5;
|
|
--muted: #8b8994;
|
|
--dim: #5c5a66;
|
|
--accent: #ff3d9a;
|
|
--accent-soft: rgba(255, 61, 154, 0.14);
|
|
--green: #39ff14;
|
|
--green-soft: rgba(57, 255, 20, 0.12);
|
|
--amber: #ffc93c;
|
|
--amber-soft: rgba(255, 201, 60, 0.12);
|
|
--red: #ff4d6d;
|
|
--red-soft: rgba(255, 77, 109, 0.12);
|
|
--cyan: #55d7ff;
|
|
--font-pixel: 'Press Start 2P', monospace;
|
|
--font-mono: 'Space Mono', monospace;
|
|
--font-body: 'Inter', sans-serif;
|
|
--radius: 3px;
|
|
}
|
|
|
|
* { margin: 0; padding: 0; box-sizing: border-box; }
|
|
html { scroll-behavior: smooth; }
|
|
body {
|
|
background: var(--bg);
|
|
color: var(--text);
|
|
font-family: var(--font-body);
|
|
line-height: 1.6;
|
|
min-height: 100vh;
|
|
-webkit-font-smoothing: antialiased;
|
|
overflow-x: hidden;
|
|
}
|
|
body::before {
|
|
content: '';
|
|
position: fixed;
|
|
inset: 0;
|
|
z-index: -2;
|
|
background:
|
|
radial-gradient(900px 500px at 12% 0%, rgba(255, 61, 154, 0.11), transparent 60%),
|
|
radial-gradient(900px 600px at 92% 8%, rgba(85, 215, 255, 0.07), transparent 60%),
|
|
linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
|
|
linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
|
|
background-size: auto, auto, 44px 44px, 44px 44px;
|
|
}
|
|
.scanlines {
|
|
position: fixed;
|
|
inset: 0;
|
|
z-index: 50;
|
|
pointer-events: none;
|
|
opacity: 0.22;
|
|
background: repeating-linear-gradient(0deg, transparent, transparent 3px, rgba(0,0,0,0.22) 3px, rgba(0,0,0,0.22) 4px);
|
|
mix-blend-mode: multiply;
|
|
}
|
|
::selection { background: var(--accent); color: #000; }
|
|
a { color: inherit; }
|
|
button { font: inherit; }
|
|
|
|
.topbar {
|
|
position: sticky;
|
|
top: 0;
|
|
z-index: 40;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
gap: 18px;
|
|
padding: 14px max(20px, 4vw);
|
|
background: rgba(5, 5, 7, 0.86);
|
|
border-bottom: 1px solid var(--line);
|
|
backdrop-filter: blur(16px);
|
|
}
|
|
.brand { display: flex; align-items: center; gap: 9px; text-decoration: none; }
|
|
.brand-mark {
|
|
width: 10px; height: 10px; background: var(--accent);
|
|
box-shadow: 0 0 16px rgba(255,61,154,.9);
|
|
}
|
|
.brand-text { font-family: var(--font-pixel); font-size: 10px; letter-spacing: .02em; }
|
|
.brand-dim { color: var(--muted); }
|
|
.topnav { display: flex; align-items: center; gap: 20px; }
|
|
.topnav a, .refresh-btn {
|
|
font-family: var(--font-mono); font-size: 11px; text-transform: uppercase;
|
|
letter-spacing: .07em; color: var(--muted); text-decoration: none;
|
|
background: none; border: 0; cursor: pointer;
|
|
}
|
|
.topnav a:hover, .refresh-btn:hover { color: var(--accent); }
|
|
.refresh-btn {
|
|
border: 1px solid var(--line-strong);
|
|
padding: 8px 12px;
|
|
}
|
|
.refresh-btn:hover { border-color: var(--accent); }
|
|
.refresh-btn[disabled] { opacity: .45; cursor: wait; }
|
|
|
|
.wrap { width: min(1440px, 100%); margin: 0 auto; padding: 0 max(20px, 4vw) 40px; }
|
|
.hero {
|
|
display: flex; align-items: flex-end; justify-content: space-between;
|
|
gap: 40px; padding: 58px 0 34px;
|
|
}
|
|
.eyebrow {
|
|
font-family: var(--font-mono); color: var(--accent); font-size: 11px;
|
|
letter-spacing: .16em; text-transform: uppercase; margin-bottom: 12px;
|
|
}
|
|
.hero h1 {
|
|
font-family: var(--font-pixel);
|
|
font-size: clamp(24px, 4.2vw, 52px);
|
|
line-height: 1.16;
|
|
letter-spacing: -0.02em;
|
|
text-shadow: 4px 4px 0 rgba(255, 61, 154, 0.5);
|
|
}
|
|
.hero-sub { max-width: 680px; color: var(--muted); font-size: 14px; margin-top: 16px; }
|
|
.hero-status { text-align: right; flex: 0 0 auto; padding-bottom: 3px; }
|
|
.overall-pill {
|
|
display: inline-flex; align-items: center; gap: 10px;
|
|
border: 1px solid var(--line-strong); padding: 10px 15px;
|
|
font-family: var(--font-mono); font-size: 11px; text-transform: uppercase;
|
|
letter-spacing: .12em; background: rgba(255,255,255,.02); color: var(--muted);
|
|
}
|
|
.overall-pill .pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--dim); }
|
|
.overall-pill.ok { color: var(--green); border-color: rgba(57,255,20,.4); background: var(--green-soft); }
|
|
.overall-pill.ok .pulse { background: var(--green); animation: pulse 2s infinite; }
|
|
.overall-pill.warn { color: var(--amber); border-color: rgba(255,201,60,.4); background: var(--amber-soft); }
|
|
.overall-pill.warn .pulse { background: var(--amber); }
|
|
.overall-pill.bad { color: var(--red); border-color: rgba(255,77,109,.4); background: var(--red-soft); }
|
|
.overall-pill.bad .pulse { background: var(--red); animation: pulse 1.1s infinite; }
|
|
.overall-pill.unknown .pulse { background: var(--dim); }
|
|
@keyframes pulse { 0%,100% { opacity: 1; transform: scale(1); } 50% { opacity: .45; transform: scale(.72); } }
|
|
.hero-meta { font-family: var(--font-mono); font-size: 10px; color: var(--dim); margin-top: 12px; }
|
|
.meta-sep { margin: 0 7px; color: var(--dim); }
|
|
|
|
.stat-strip {
|
|
display: grid; grid-template-columns: repeat(6, minmax(0, 1fr));
|
|
border: 1px solid var(--line); background: var(--panel);
|
|
}
|
|
.stat-cell { padding: 18px 20px 16px; border-right: 1px solid var(--line); }
|
|
.stat-cell:last-child { border-right: 0; }
|
|
.stat-label, .gh-label {
|
|
display: block; font-family: var(--font-mono); font-size: 9px;
|
|
text-transform: uppercase; letter-spacing: .11em; color: var(--dim);
|
|
}
|
|
.stat-value {
|
|
display: block; font-family: var(--font-pixel); font-size: clamp(16px, 2vw, 24px);
|
|
margin-top: 9px; color: var(--text);
|
|
}
|
|
.stat-note { display: block; font-family: var(--font-mono); font-size: 9px; color: var(--muted); margin-top: 6px; }
|
|
|
|
.notice {
|
|
border: 1px solid rgba(255,201,60,.35);
|
|
background: var(--amber-soft); color: #ffe7a3;
|
|
padding: 12px 16px; margin-top: 16px;
|
|
font-family: var(--font-mono); font-size: 11px;
|
|
}
|
|
|
|
.grid {
|
|
display: grid; grid-template-columns: repeat(12, minmax(0, 1fr));
|
|
gap: 18px; margin-top: 18px;
|
|
}
|
|
.panel {
|
|
grid-column: span 12;
|
|
border: 1px solid var(--line);
|
|
background: var(--panel);
|
|
padding: 22px;
|
|
min-width: 0;
|
|
position: relative;
|
|
overflow: hidden;
|
|
}
|
|
.panel::before {
|
|
content: ''; position: absolute; inset: 0 auto auto 0; width: 34px; height: 2px;
|
|
background: var(--accent); opacity: .8;
|
|
}
|
|
.span-7 { grid-column: span 7; }
|
|
.span-5 { grid-column: span 5; }
|
|
.featured { border-color: rgba(255,61,154,.25); background: linear-gradient(145deg, rgba(255,61,154,.065), rgba(12,12,19,.9) 55%); }
|
|
.panel-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; margin-bottom: 20px; }
|
|
.panel-kicker { font-family: var(--font-mono); font-size: 9px; color: var(--accent); letter-spacing: .15em; text-transform: uppercase; }
|
|
.panel h2 { font-family: var(--font-body); font-size: clamp(19px, 2vw, 24px); font-weight: 700; letter-spacing: -.02em; margin-top: 4px; }
|
|
.panel-tag, .panel-link {
|
|
font-family: var(--font-mono); font-size: 9px; text-transform: uppercase;
|
|
letter-spacing: .09em; color: var(--dim); text-decoration: none;
|
|
border: 1px solid var(--line); padding: 5px 8px; white-space: nowrap;
|
|
}
|
|
.panel-link:hover { color: var(--accent); border-color: var(--accent); }
|
|
.panel-foot { font-family: var(--font-mono); font-size: 9px; color: var(--dim); margin-top: 18px; line-height: 1.7; }
|
|
.panel-foot code { color: var(--muted); }
|
|
|
|
.rows { display: flex; flex-direction: column; }
|
|
.row {
|
|
display: grid; grid-template-columns: minmax(0, 1.4fr) 72px 92px 108px;
|
|
gap: 16px; align-items: center; padding: 14px 0; border-top: 1px solid var(--line);
|
|
}
|
|
.rows .row:first-child { border-top: 0; }
|
|
.row-main { display: flex; align-items: center; gap: 12px; min-width: 0; }
|
|
.status-dot { width: 8px; height: 8px; border-radius: 50%; flex: 0 0 auto; background: var(--dim); box-shadow: 0 0 0 3px rgba(255,255,255,.03); }
|
|
.status-dot.ok { background: var(--green); box-shadow: 0 0 12px rgba(57,255,20,.55); }
|
|
.status-dot.warn { background: var(--amber); box-shadow: 0 0 12px rgba(255,201,60,.45); }
|
|
.status-dot.bad { background: var(--red); box-shadow: 0 0 12px rgba(255,77,109,.5); }
|
|
.row-name { font-weight: 600; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
|
|
.row-sub { font-family: var(--font-mono); font-size: 9px; color: var(--dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
|
|
.row-status { font-family: var(--font-mono); font-size: 9px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); text-align: left; }
|
|
.row-status.ok { color: var(--green); }
|
|
.row-status.warn { color: var(--amber); }
|
|
.row-status.bad { color: var(--red); }
|
|
.row-metric { font-family: var(--font-mono); font-size: 10px; color: var(--muted); text-align: right; }
|
|
.row-uptime { text-align: right; }
|
|
.uptime-bar { height: 4px; background: rgba(255,255,255,.08); overflow: hidden; }
|
|
.uptime-fill { height: 100%; background: var(--green); }
|
|
.uptime-fill.warn { background: var(--amber); }
|
|
.uptime-fill.bad { background: var(--red); }
|
|
.uptime-text { display: block; font-family: var(--font-mono); font-size: 9px; color: var(--dim); margin-top: 4px; }
|
|
.row-empty { padding: 18px 0; color: var(--dim); font-family: var(--font-mono); font-size: 11px; }
|
|
@media (max-width: 1100px) {
|
|
.span-7, .span-5 { grid-column: span 12; }
|
|
.stat-strip { grid-template-columns: repeat(3, 1fr); }
|
|
.stat-cell:nth-child(3n) { border-right: 0; }
|
|
.stat-cell:nth-child(-n+3) { border-bottom: 1px solid var(--line); }
|
|
}
|
|
@media (max-width: 720px) {
|
|
.hero { flex-direction: column; align-items: flex-start; gap: 24px; padding-top: 38px; }
|
|
.hero-status { text-align: left; }
|
|
.stat-strip { grid-template-columns: repeat(2, 1fr); }
|
|
.stat-cell { border-bottom: 1px solid var(--line); }
|
|
.stat-cell:nth-child(3n) { border-right: 1px solid var(--line); }
|
|
.stat-cell:nth-child(2n) { border-right: 0; }
|
|
.row { grid-template-columns: minmax(0, 1fr) 60px 82px; }
|
|
.row-uptime { display: none; }
|
|
.topnav a:nth-child(1), .topnav a:nth-child(2) { display: none; }
|
|
.panel { padding: 18px; }
|
|
}
|
|
|
|
.github-meta { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); }
|
|
.gh-stat { padding: 13px 14px; border-right: 1px solid var(--line); }
|
|
.gh-stat:last-child { border-right: 0; }
|
|
.gh-num { display: block; font-family: var(--font-pixel); font-size: 15px; }
|
|
.gh-label { margin-top: 5px; }
|
|
.chart-wrap { margin-top: 20px; }
|
|
.chart-head {
|
|
display: flex; justify-content: space-between; gap: 12px;
|
|
font-family: var(--font-mono); font-size: 9px; color: var(--dim);
|
|
text-transform: uppercase; letter-spacing: .08em; margin-bottom: 8px;
|
|
}
|
|
.bar-chart {
|
|
display: flex; align-items: flex-end; gap: 3px; height: 92px;
|
|
border-bottom: 1px solid var(--line); padding-bottom: 1px;
|
|
}
|
|
.bar-col { flex: 1; height: 100%; display: flex; align-items: flex-end; min-width: 2px; }
|
|
.bar {
|
|
width: 100%; min-height: 2px; background: rgba(255,61,154,.42);
|
|
transition: height .5s ease, background .2s;
|
|
}
|
|
.bar:hover { background: var(--accent); }
|
|
.bar.zero { background: rgba(255,255,255,.055); }
|
|
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; margin-top: 20px; }
|
|
@media (max-width: 760px) { .split { grid-template-columns: 1fr; } }
|
|
.mini-title {
|
|
font-family: var(--font-mono); font-size: 9px; text-transform: uppercase;
|
|
letter-spacing: .12em; color: var(--dim); margin-bottom: 9px;
|
|
}
|
|
.mini-title.spaced { margin-top: 20px; }
|
|
.feed { list-style: none; display: flex; flex-direction: column; }
|
|
.feed li {
|
|
display: flex; flex-direction: column; gap: 2px;
|
|
padding: 9px 0; border-top: 1px solid var(--line);
|
|
font-size: 11px; min-width: 0;
|
|
}
|
|
.feed li:first-child { border-top: 0; }
|
|
.feed .feed-top { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
|
|
.feed .feed-name { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
|
|
.feed .feed-meta { font-family: var(--font-mono); font-size: 9px; color: var(--dim); white-space: nowrap; }
|
|
.feed .feed-sub { font-family: var(--font-mono); font-size: 9px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
|
|
.feed .empty, .empty { color: var(--dim); font-family: var(--font-mono); font-size: 10px; line-height: 1.7; }
|
|
.feed .error { color: var(--red); }
|
|
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
|
|
.chip {
|
|
font-family: var(--font-mono); font-size: 9px; color: var(--muted);
|
|
border: 1px solid var(--line); padding: 4px 7px;
|
|
}
|
|
.chip.muted { color: var(--dim); }
|
|
|
|
.fedl-hero { display: flex; align-items: stretch; border: 1px solid var(--line); margin-bottom: 20px; }
|
|
.fedl-big { padding: 16px 18px; border-right: 1px solid var(--line); min-width: 130px; display: flex; flex-direction: column; justify-content: center; }
|
|
.fedl-big > span:first-child { font-family: var(--font-pixel); font-size: 27px; color: var(--accent); line-height: 1; }
|
|
.fedl-unit { font-family: var(--font-mono); font-size: 9px; color: var(--dim); margin-top: 7px; }
|
|
.fedl-side { display: grid; grid-template-columns: 1fr; flex: 1; padding: 8px 16px; gap: 4px; }
|
|
.fedl-side div { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
|
|
.fedl-side strong { font-family: var(--font-mono); font-size: 11px; font-weight: 400; color: var(--text); }
|
|
.fedl-side span { font-family: var(--font-mono); font-size: 9px; color: var(--dim); }
|
|
.rank-list { list-style: none; display: flex; flex-direction: column; counter-reset: rank; }
|
|
.rank-list li { display: flex; align-items: center; gap: 10px; padding: 6px 0; border-top: 1px solid var(--line); font-size: 11px; }
|
|
.rank-list li:first-child { border-top: 0; }
|
|
.rank-list .rank { font-family: var(--font-mono); font-size: 9px; color: var(--accent); width: 22px; flex: 0 0 auto; }
|
|
.rank-list .rank-name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
|
|
|
|
.analytics-meta { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); }
|
|
.analytics-meta div { padding: 12px 14px; border-right: 1px solid var(--line); }
|
|
.analytics-meta div:last-child { border-right: 0; }
|
|
.analytics-meta strong { display: block; font-family: var(--font-pixel); font-size: 15px; font-weight: 400; }
|
|
.analytics-meta span { display: block; font-family: var(--font-mono); font-size: 9px; color: var(--dim); margin-top: 4px; }
|
|
@media (max-width: 760px) { .analytics-meta, .github-meta { grid-template-columns: repeat(2, 1fr); } .analytics-meta div:nth-child(2), .gh-stat:nth-child(2) { border-right: 0; } .analytics-meta div:nth-child(-n+2), .gh-stat:nth-child(-n+2) { border-bottom: 1px solid var(--line); } }
|
|
|
|
.project-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
|
|
@media (max-width: 620px) { .project-grid { grid-template-columns: 1fr; } }
|
|
.project-card {
|
|
border: 1px solid var(--line); padding: 12px 13px;
|
|
display: flex; flex-direction: column; gap: 4px; text-decoration: none;
|
|
transition: border-color .2s, background .2s;
|
|
}
|
|
.project-card:hover { border-color: var(--accent); background: var(--accent-soft); }
|
|
.project-card .pc-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
|
|
.project-card .pc-name { font-size: 12px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
|
|
.project-card .pc-desc { font-family: var(--font-mono); font-size: 9px; color: var(--dim); line-height: 1.55; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
|
|
.project-card .pc-meta { font-family: var(--font-mono); font-size: 8px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; margin-top: 3px; }
|
|
|
|
.skeleton-row {
|
|
height: 52px; margin: 8px 0;
|
|
background: linear-gradient(90deg, rgba(255,255,255,.03), rgba(255,255,255,.07), rgba(255,255,255,.03));
|
|
background-size: 200% 100%; animation: shimmer 1.5s infinite; border: 1px solid var(--line);
|
|
}
|
|
@keyframes shimmer { to { background-position: -200% 0; } }
|
|
|
|
.footer {
|
|
display: flex; flex-wrap: wrap; align-items: center; gap: 4px;
|
|
border-top: 1px solid var(--line); margin-top: 28px; padding: 24px 0;
|
|
font-family: var(--font-mono); font-size: 10px; color: var(--dim);
|
|
}
|
|
.footer a { color: var(--muted); text-decoration: none; }
|
|
.footer a:hover { color: var(--accent); }
|
|
|
|
@media (prefers-reduced-motion: reduce) {
|
|
* { animation: none !important; transition: none !important; }
|
|
html { scroll-behavior: auto; }
|
|
}
|