51eb3bf7c8
- Wire up 26 vendor providers: Atlassian Statuspage API, Status.io, Instatus, AWS RSS feeds, Apple/Google JSON feeds, M365 Graph API, and synthetic checks - Add 11 new providers: AWS, Cloudflare, SmartPass, School Dismissal Manager, SherpaDesk, Classkick, ClassDojo, Savvas, Study Island, Promethean, RAZ-Kids - Rename Local Infrastructure → Internet (TCP check to 8.8.8.8:53) - Add WAN throughput graph section: dual-link canvas graphs (Crown Castle + Comcast) polling FortiGate REST API every 30s with 30-min rolling history - Add FortiGate health card: uptime, CPU %, memory % from FortiOS API - Add /api/throughput and /api/fortigate-health endpoints - Add README with setup instructions Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
543 lines
11 KiB
CSS
543 lines
11 KiB
CSS
/* ===== DESIGN TOKENS ===== */
|
|
|
|
:root {
|
|
/* Surfaces */
|
|
--bg: #060a10;
|
|
--surface: #0d1117;
|
|
--surface-hover: #151b23;
|
|
--border: #21262d;
|
|
|
|
/* Text */
|
|
--text-1: #e6edf3;
|
|
--text-2: #848d97;
|
|
--text-3: #484f58;
|
|
|
|
/* Status — Operational */
|
|
--ok: #3fb950;
|
|
--ok-dim: rgba(63, 185, 80, 0.1);
|
|
--ok-glow: rgba(63, 185, 80, 0.35);
|
|
|
|
/* Status — Degraded */
|
|
--warn: #d29922;
|
|
--warn-dim: rgba(210, 153, 34, 0.1);
|
|
--warn-glow: rgba(210, 153, 34, 0.35);
|
|
|
|
/* Status — Outage */
|
|
--crit: #f85149;
|
|
--crit-dim: rgba(248, 81, 73, 0.06);
|
|
--crit-glow: rgba(248, 81, 73, 0.35);
|
|
|
|
/* Status — Unknown */
|
|
--unk: #484f58;
|
|
--unk-dim: rgba(72, 79, 88, 0.1);
|
|
--unk-glow: rgba(72, 79, 88, 0.3);
|
|
|
|
/* Typography */
|
|
--font-display: 'Big Shoulders Display', Impact, sans-serif;
|
|
--font-mono: 'Martian Mono', Consolas, monospace;
|
|
--font-body: 'Karla', 'Segoe UI', sans-serif;
|
|
}
|
|
|
|
/* ===== RESET ===== */
|
|
|
|
*, *::before, *::after {
|
|
margin: 0;
|
|
padding: 0;
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
/* ===== BODY ===== */
|
|
|
|
body {
|
|
font-family: var(--font-body);
|
|
background-color: var(--bg);
|
|
background-image:
|
|
radial-gradient(ellipse at 50% 0%, rgba(25, 35, 55, 0.5) 0%, transparent 60%),
|
|
linear-gradient(rgba(255, 255, 255, 0.018) 1px, transparent 1px),
|
|
linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px);
|
|
background-size: 100% 100%, 48px 48px, 48px 48px;
|
|
color: var(--text-1);
|
|
min-height: 100vh;
|
|
overflow-x: hidden;
|
|
}
|
|
|
|
/* ===== HEADER ===== */
|
|
|
|
header {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
padding: 1.75rem 2.5rem;
|
|
border-bottom: 1px solid var(--border);
|
|
background: rgba(13, 17, 23, 0.6);
|
|
backdrop-filter: blur(12px);
|
|
}
|
|
|
|
.header-brand h1 {
|
|
font-family: var(--font-display);
|
|
font-size: 2rem;
|
|
font-weight: 900;
|
|
letter-spacing: 0.08em;
|
|
color: var(--text-1);
|
|
line-height: 1;
|
|
}
|
|
|
|
.header-meta {
|
|
text-align: right;
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: flex-end;
|
|
gap: 0.35rem;
|
|
}
|
|
|
|
#clock {
|
|
font-family: var(--font-mono);
|
|
font-size: 1.4rem;
|
|
font-weight: 400;
|
|
color: var(--text-1);
|
|
letter-spacing: 0.05em;
|
|
}
|
|
|
|
#last-refreshed {
|
|
font-family: var(--font-mono);
|
|
font-size: 0.7rem;
|
|
font-weight: 300;
|
|
color: var(--text-3);
|
|
letter-spacing: 0.03em;
|
|
}
|
|
|
|
/* ===== SUMMARY BAR ===== */
|
|
|
|
#summary-bar {
|
|
display: flex;
|
|
gap: 2rem;
|
|
padding: 0.85rem 2.5rem;
|
|
border-bottom: 1px solid var(--border);
|
|
background: rgba(13, 17, 23, 0.4);
|
|
}
|
|
|
|
.summary-item {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 0.5rem;
|
|
font-family: var(--font-mono);
|
|
font-size: 0.72rem;
|
|
font-weight: 400;
|
|
color: var(--text-2);
|
|
letter-spacing: 0.04em;
|
|
text-transform: uppercase;
|
|
}
|
|
|
|
.summary-dot {
|
|
width: 8px;
|
|
height: 8px;
|
|
border-radius: 50%;
|
|
background: var(--unk);
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.summary-dot.operational {
|
|
background: var(--ok);
|
|
box-shadow: 0 0 6px var(--ok-glow);
|
|
}
|
|
|
|
.summary-dot.degraded {
|
|
background: var(--warn);
|
|
box-shadow: 0 0 6px var(--warn-glow);
|
|
}
|
|
|
|
.summary-dot.outage {
|
|
background: var(--crit);
|
|
box-shadow: 0 0 6px var(--crit-glow);
|
|
animation: dotPulse 2s ease-in-out infinite;
|
|
}
|
|
|
|
.summary-count {
|
|
font-weight: 500;
|
|
color: var(--text-1);
|
|
font-size: 0.85rem;
|
|
}
|
|
|
|
/* ===== WAN THROUGHPUT ===== */
|
|
|
|
#wan-section {
|
|
padding: 1.5rem 2.5rem 0;
|
|
}
|
|
|
|
#wan-graphs {
|
|
display: grid;
|
|
grid-template-columns: 1fr 1fr;
|
|
gap: 1.25rem;
|
|
}
|
|
|
|
.wan-panel {
|
|
background: var(--surface);
|
|
border: 1px solid var(--border);
|
|
border-top: 3px solid #388bfd;
|
|
border-radius: 8px;
|
|
padding: 1.25rem 1.5rem 1rem;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.wan-panel-header {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
margin-bottom: 0.75rem;
|
|
}
|
|
|
|
.wan-name {
|
|
font-family: var(--font-display);
|
|
font-size: 1.1rem;
|
|
font-weight: 800;
|
|
color: var(--text-1);
|
|
letter-spacing: 0.03em;
|
|
line-height: 1;
|
|
}
|
|
|
|
.wan-legend {
|
|
display: flex;
|
|
gap: 1.25rem;
|
|
}
|
|
|
|
.wan-legend-item {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 0.4rem;
|
|
font-family: var(--font-mono);
|
|
font-size: 0.68rem;
|
|
color: var(--text-2);
|
|
}
|
|
|
|
.wan-legend-dot {
|
|
width: 7px;
|
|
height: 7px;
|
|
border-radius: 50%;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.wan-legend-dot.rx { background: #58a6ff; box-shadow: 0 0 5px rgba(88, 166, 255, 0.5); }
|
|
.wan-legend-dot.tx { background: #3fb950; box-shadow: 0 0 5px rgba(63, 185, 80, 0.5); }
|
|
|
|
.wan-canvas {
|
|
display: block;
|
|
width: 100%;
|
|
height: 90px;
|
|
}
|
|
|
|
/* ===== FORTIGATE HEALTH CARD ===== */
|
|
|
|
#fg-health-card {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 2rem;
|
|
margin-top: 1.25rem;
|
|
background: var(--surface);
|
|
border: 1px solid var(--border);
|
|
border-top: 3px solid #388bfd;
|
|
border-radius: 8px;
|
|
padding: 1rem 1.5rem;
|
|
}
|
|
|
|
.fg-identity {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 0.65rem;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.fg-model {
|
|
font-family: var(--font-display);
|
|
font-size: 1.1rem;
|
|
font-weight: 800;
|
|
color: var(--text-1);
|
|
letter-spacing: 0.03em;
|
|
line-height: 1;
|
|
}
|
|
|
|
.fg-metrics {
|
|
display: flex;
|
|
gap: 2rem;
|
|
flex-wrap: wrap;
|
|
}
|
|
|
|
.fg-metric {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 0.2rem;
|
|
}
|
|
|
|
.fg-metric-label {
|
|
font-family: var(--font-mono);
|
|
font-size: 0.6rem;
|
|
font-weight: 400;
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.08em;
|
|
color: var(--text-3);
|
|
}
|
|
|
|
.fg-metric-value {
|
|
font-family: var(--font-mono);
|
|
font-size: 0.85rem;
|
|
font-weight: 400;
|
|
color: var(--text-1);
|
|
}
|
|
|
|
.fg-metric-value.warn { color: var(--warn); }
|
|
.fg-metric-value.crit { color: var(--crit); }
|
|
|
|
@media (max-width: 640px) {
|
|
#wan-section {
|
|
padding: 1.25rem 1.5rem 0;
|
|
}
|
|
|
|
#wan-graphs {
|
|
grid-template-columns: 1fr;
|
|
}
|
|
|
|
#fg-health-card {
|
|
flex-direction: column;
|
|
align-items: flex-start;
|
|
gap: 1rem;
|
|
}
|
|
}
|
|
|
|
/* ===== VENDOR GRID ===== */
|
|
|
|
#vendor-grid {
|
|
display: grid;
|
|
grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
|
|
gap: 1.25rem;
|
|
padding: 2rem 2.5rem;
|
|
}
|
|
|
|
/* ===== VENDOR CARD ===== */
|
|
|
|
.vendor-card {
|
|
background: var(--surface);
|
|
border: 1px solid var(--border);
|
|
border-top: 3px solid var(--unk);
|
|
border-radius: 8px;
|
|
padding: 1.5rem;
|
|
transition: transform 0.2s ease, background 0.2s ease;
|
|
}
|
|
|
|
.vendor-card:hover {
|
|
transform: translateY(-2px);
|
|
background: var(--surface-hover);
|
|
}
|
|
|
|
/* --- Entrance animation (first render only) --- */
|
|
|
|
.vendor-card.animate-in {
|
|
opacity: 0;
|
|
animation: cardEnter 0.45s ease forwards;
|
|
animation-delay: var(--d, 0s);
|
|
}
|
|
|
|
/* --- Status variants --- */
|
|
|
|
.vendor-card.operational {
|
|
border-top-color: var(--ok);
|
|
}
|
|
|
|
.vendor-card.degraded {
|
|
border-top-color: var(--warn);
|
|
background: linear-gradient(180deg, var(--warn-dim) 0%, var(--surface) 50%);
|
|
}
|
|
|
|
.vendor-card.degraded:hover {
|
|
background: linear-gradient(180deg, var(--warn-dim) 0%, var(--surface-hover) 50%);
|
|
}
|
|
|
|
.vendor-card.outage {
|
|
border-top-color: var(--crit);
|
|
background: linear-gradient(180deg, var(--crit-dim) 0%, var(--surface) 40%);
|
|
animation: cardPulse 3s ease-in-out infinite;
|
|
}
|
|
|
|
.vendor-card.outage:hover {
|
|
background: linear-gradient(180deg, rgba(248, 81, 73, 0.1) 0%, var(--surface-hover) 40%);
|
|
}
|
|
|
|
.vendor-card.animate-in.outage {
|
|
animation: cardEnter 0.45s ease forwards, cardPulse 3s ease-in-out infinite;
|
|
animation-delay: var(--d, 0s), 1s;
|
|
}
|
|
|
|
.vendor-card.unknown {
|
|
border-top-color: var(--unk);
|
|
}
|
|
|
|
/* --- Card layout --- */
|
|
|
|
.card-header {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
margin-bottom: 1rem;
|
|
}
|
|
|
|
.vendor-identity {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 0.65rem;
|
|
}
|
|
|
|
/* --- Status indicator (LED dot) --- */
|
|
|
|
.status-indicator {
|
|
width: 10px;
|
|
height: 10px;
|
|
border-radius: 50%;
|
|
background: var(--unk);
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.status-indicator.operational {
|
|
background: var(--ok);
|
|
box-shadow: 0 0 8px var(--ok-glow);
|
|
}
|
|
|
|
.status-indicator.degraded {
|
|
background: var(--warn);
|
|
box-shadow: 0 0 8px var(--warn-glow);
|
|
animation: dotPulse 2.5s ease-in-out infinite;
|
|
}
|
|
|
|
.status-indicator.outage {
|
|
background: var(--crit);
|
|
box-shadow: 0 0 10px var(--crit-glow);
|
|
animation: dotPulse 1.5s ease-in-out infinite;
|
|
}
|
|
|
|
/* --- Vendor name --- */
|
|
|
|
.vendor-name a.vendor-link {
|
|
color: inherit;
|
|
text-decoration: none;
|
|
}
|
|
|
|
.vendor-name a.vendor-link:hover {
|
|
text-decoration: underline;
|
|
text-decoration-color: var(--text-3);
|
|
text-underline-offset: 3px;
|
|
}
|
|
|
|
.vendor-name {
|
|
font-family: var(--font-display);
|
|
font-size: 1.35rem;
|
|
font-weight: 800;
|
|
color: var(--text-1);
|
|
letter-spacing: 0.03em;
|
|
line-height: 1;
|
|
}
|
|
|
|
/* --- Status badge --- */
|
|
|
|
.status-badge {
|
|
font-family: var(--font-mono);
|
|
font-size: 0.58rem;
|
|
font-weight: 400;
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.08em;
|
|
padding: 0.3rem 0.65rem;
|
|
border-radius: 4px;
|
|
background: var(--unk-dim);
|
|
color: var(--unk);
|
|
border: 1px solid rgba(72, 79, 88, 0.2);
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.status-badge.operational {
|
|
background: var(--ok-dim);
|
|
color: var(--ok);
|
|
border-color: rgba(63, 185, 80, 0.15);
|
|
}
|
|
|
|
.status-badge.degraded {
|
|
background: var(--warn-dim);
|
|
color: var(--warn);
|
|
border-color: rgba(210, 153, 34, 0.15);
|
|
}
|
|
|
|
.status-badge.outage {
|
|
background: var(--crit-dim);
|
|
color: var(--crit);
|
|
border-color: rgba(248, 81, 73, 0.15);
|
|
}
|
|
|
|
/* --- Message & timestamp --- */
|
|
|
|
.vendor-message {
|
|
font-size: 0.875rem;
|
|
font-weight: 400;
|
|
color: var(--text-2);
|
|
line-height: 1.5;
|
|
margin-bottom: 1rem;
|
|
}
|
|
|
|
.vendor-updated {
|
|
font-family: var(--font-mono);
|
|
font-size: 0.65rem;
|
|
font-weight: 300;
|
|
color: var(--text-3);
|
|
letter-spacing: 0.03em;
|
|
}
|
|
|
|
/* ===== ANIMATIONS ===== */
|
|
|
|
@keyframes cardEnter {
|
|
from {
|
|
opacity: 0;
|
|
transform: translateY(16px);
|
|
}
|
|
to {
|
|
opacity: 1;
|
|
transform: translateY(0);
|
|
}
|
|
}
|
|
|
|
@keyframes dotPulse {
|
|
0%, 100% { opacity: 1; }
|
|
50% { opacity: 0.4; }
|
|
}
|
|
|
|
@keyframes cardPulse {
|
|
0%, 100% { box-shadow: 0 -2px 10px rgba(248, 81, 73, 0.06); }
|
|
50% { box-shadow: 0 -2px 25px rgba(248, 81, 73, 0.18); }
|
|
}
|
|
|
|
/* ===== RESPONSIVE ===== */
|
|
|
|
@media (max-width: 640px) {
|
|
header {
|
|
flex-direction: column;
|
|
gap: 0.75rem;
|
|
text-align: center;
|
|
padding: 1.25rem 1.5rem;
|
|
}
|
|
|
|
.header-meta {
|
|
align-items: center;
|
|
}
|
|
|
|
#summary-bar {
|
|
justify-content: center;
|
|
flex-wrap: wrap;
|
|
gap: 1rem;
|
|
padding: 0.75rem 1.5rem;
|
|
}
|
|
|
|
#vendor-grid {
|
|
grid-template-columns: 1fr;
|
|
padding: 1.25rem 1.5rem;
|
|
}
|
|
}
|
|
|
|
@media (min-width: 1600px) {
|
|
#vendor-grid {
|
|
grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
|
|
}
|
|
}
|