Files
zero-scale-platform/cmd/zero-scale-dashboard/static/css/03-cards.css
Stephen Schuresko 7659c711ac feat: enhance zero-scale dashboard with resource display and update functionality
- Added RAM and CPU resource display in the zero-scale dashboard for active applications.
- Implemented dynamic updates for resource display based on application state.

feat: expand zero-scale control script with new commands and options

- Introduced `apply`, `upload-binary`, and `provision-db` commands to the zero-scale control script.
- Added options for specifying configuration files, binary uploads, and database provisioning parameters.

feat: implement temporal JWKS aggregator service

- Created a new service to aggregate JWKS from Gitea and Kubernetes API.
- Implemented caching and refresh logic for JWKS keys.

feat: deploy shared MySQL and Redis services

- Added Kubernetes manifests for shared MySQL and Redis services, including StatefulSet and ConfigMap definitions.
- Configured persistent storage and resource limits for MySQL and Redis deployments.

feat: add temporal OAuth secret example and values configuration

- Created example secret manifest for OAuth credentials required by Temporal.
- Added a values file for configuring Temporal server with JWKS integration and resource limits.

feat: implement Kubernetes token provider for Temporal client

- Developed a K8sTokenHeadersProvider to supply Kubernetes service account tokens to Temporal.
- Added tests for token retrieval and environment variable fallback.
2026-10-11 17:43:21 -04:00

443 lines
12 KiB
CSS

/* Summary Metrics Cards */
.metrics-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
gap: 16px;
margin-bottom: 28px;
}
.metric-card {
background: var(--card);
border: 1px solid var(--border);
border-radius: 12px;
padding: 18px 20px;
position: relative;
overflow: hidden;
}
.metric-card::before {
content: "";
position: absolute;
top: 0; left: 0; right: 0; height: 2px;
background: linear-gradient(90deg, transparent, var(--accent, var(--blue)), transparent);
}
.metric-title { font-size: 13px; color: var(--text-muted); text-transform: uppercase; font-weight: 600; letter-spacing: 0.05em; }
.metric-value { font-size: 28px; font-weight: 700; margin: 6px 0; color: #fff; }
.metric-sub { font-size: 12px; color: var(--text-muted); display: flex; justify-content: space-between; align-items: center; }
/* Zero-Scale Stack Total Hero Banner */
.stack-hero-container {
margin-bottom: 28px;
}
.stack-hero-card {
background: var(--card);
border: 1px solid var(--border);
border-radius: 14px;
padding: 24px 28px;
position: relative;
overflow: hidden;
box-shadow: 0 4px 24px rgba(0, 0, 0, 0.25);
background: linear-gradient(180deg, rgba(30, 41, 59, 0.7) 0%, rgba(15, 23, 42, 0.9) 100%);
}
.stack-hero-card::before {
content: "";
position: absolute;
top: 0; left: 0; right: 0; height: 3px;
background: linear-gradient(90deg, var(--green), #38bdf8 50%, var(--purple));
}
.stack-hero-header {
display: flex;
justify-content: space-between;
align-items: center;
flex-wrap: wrap;
gap: 16px;
}
.stack-hero-title {
display: flex;
align-items: center;
gap: 14px;
}
.stack-hero-icon {
font-size: 30px;
line-height: 1;
background: rgba(56, 189, 248, 0.12);
border: 1px solid rgba(56, 189, 248, 0.3);
padding: 10px;
border-radius: 12px;
}
.stack-hero-title h2 {
font-size: 18px;
font-weight: 700;
color: #fff;
margin: 0 0 4px 0;
letter-spacing: -0.01em;
}
.stack-hero-title p {
font-size: 12.5px;
color: var(--text-muted);
margin: 0;
max-width: 580px;
line-height: 1.4;
}
.stack-hero-total-badge {
text-align: right;
background: rgba(0, 0, 0, 0.25);
border: 1px solid rgba(255, 255, 255, 0.08);
padding: 10px 18px;
border-radius: 10px;
}
.stack-hero-val {
font-size: 32px;
font-weight: 800;
color: #38bdf8;
letter-spacing: -0.02em;
line-height: 1.1;
font-family: 'JetBrains Mono', monospace;
}
.stack-hero-sub {
font-size: 12px;
color: var(--text-muted);
margin-top: 4px;
}
.stack-bar-wrapper {
margin: 18px 0;
}
.stack-segmented-bar {
display: flex;
height: 8px;
border-radius: 6px;
overflow: hidden;
background: rgba(0, 0, 0, 0.35);
border: 1px solid rgba(255, 255, 255, 0.06);
}
.stack-breakout-grid {
display: grid;
grid-template-columns: repeat(3, minmax(0, 1fr));
gap: 14px;
}
@media (max-width: 768px) {
.stack-breakout-grid {
grid-template-columns: 1fr;
}
.stack-hero-total-badge {
text-align: left;
width: 100%;
}
}
.stack-col-card {
background: rgba(0, 0, 0, 0.2);
border: 1px solid var(--border);
border-radius: 10px;
padding: 14px 16px;
display: flex;
flex-direction: column;
gap: 4px;
position: relative;
transition: all 0.15s ease;
}
.stack-col-card:hover {
background: rgba(0, 0, 0, 0.32);
transform: translateY(-1px);
}
.stack-col-header {
display: flex;
align-items: center;
gap: 7px;
}
.stack-col-icon {
font-size: 14px;
}
.stack-col-name {
font-size: 11.5px;
text-transform: uppercase;
font-weight: 600;
letter-spacing: 0.04em;
color: var(--text-muted);
}
.stack-col-value {
font-size: 18px;
font-weight: 700;
margin: 4px 0 2px 0;
display: flex;
align-items: center;
gap: 6px;
font-family: 'JetBrains Mono', monospace;
}
.stack-col-desc {
font-size: 11.5px;
color: var(--text-muted);
line-height: 1.35;
}
/* Core Platform Engines Strip */
.stack-engines-strip {
margin-top: 18px;
padding-top: 16px;
border-top: 1px dashed rgba(255, 255, 255, 0.1);
display: flex;
align-items: center;
justify-content: space-between;
gap: 14px;
}
@media (max-width: 900px) {
.stack-engines-strip {
flex-direction: column;
align-items: stretch;
}
.stack-engine-connector {
transform: rotate(90deg);
margin: 4px auto;
}
}
.stack-engine-pill {
flex: 1;
background: rgba(0, 0, 0, 0.25);
border-radius: 10px;
border: 1px solid rgba(255, 255, 255, 0.08);
transition: all 0.2s ease;
}
.stack-engine-pill:hover {
background: rgba(0, 0, 0, 0.38);
transform: translateY(-1px);
}
.stack-engine-gitops {
border-left: 3px solid #f59e0b;
}
.stack-engine-runtime {
border-left: 3px solid #38bdf8;
}
.stack-engine-link {
display: flex;
align-items: center;
gap: 12px;
padding: 11px 14px;
text-decoration: none;
color: inherit;
}
.stack-engine-avatar {
font-size: 22px;
line-height: 1;
flex-shrink: 0;
}
.stack-engine-info {
display: flex;
flex-direction: column;
gap: 2px;
min-width: 0;
}
.stack-engine-title {
display: flex;
align-items: center;
gap: 8px;
font-size: 13px;
color: #fff;
}
.stack-engine-tag {
font-size: 9.5px;
text-transform: uppercase;
font-weight: 700;
letter-spacing: 0.04em;
padding: 1px 7px;
border-radius: 4px;
}
.stack-engine-tag.cream-tag {
background: rgba(245, 158, 11, 0.2);
color: #fbbf24;
border: 1px solid rgba(245, 158, 11, 0.35);
}
.stack-engine-tag.zero-tag {
background: rgba(56, 189, 248, 0.2);
color: #38bdf8;
border: 1px solid rgba(56, 189, 248, 0.35);
}
.stack-engine-desc {
font-size: 11px;
color: var(--text-muted);
line-height: 1.35;
}
.stack-engine-connector {
display: flex;
align-items: center;
gap: 6px;
color: var(--text-muted);
font-size: 10px;
text-transform: uppercase;
letter-spacing: 0.05em;
font-weight: 600;
flex-shrink: 0;
}
.connector-line {
width: 20px;
height: 1px;
background: rgba(255, 255, 255, 0.15);
}
.connector-arrow {
color: #38bdf8;
font-size: 9px;
}
/* Stack Breakout Inside Metric Card */
.stack-breakout {
margin-top: 10px;
padding-top: 8px;
border-top: 1px solid rgba(255, 255, 255, 0.08);
display: flex;
flex-direction: column;
gap: 5px;
font-size: 11.5px;
}
.stack-breakout-row {
display: flex;
justify-content: space-between;
align-items: center;
color: var(--text-muted);
}
.stack-breakout-label {
display: flex;
align-items: center;
gap: 5px;
font-weight: 500;
color: var(--text-muted);
}
.stack-breakout-val {
color: #fff;
font-weight: 600;
font-variant-numeric: tabular-nums;
font-size: 11.5px;
}
/* Efficiency Grid */
.efficiency-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
gap: 16px;
margin-bottom: 28px;
}
.efficiency-card {
background: var(--card);
border: 1px solid var(--border);
border-radius: 12px;
padding: 18px 20px;
position: relative;
overflow: hidden;
transition: transform 0.2s ease, border-color 0.2s ease;
}
.efficiency-card:hover { transform: translateY(-2px); border-color: rgba(56, 189, 248, 0.4); }
.efficiency-card::before {
content: "";
position: absolute;
top: 0; left: 0; right: 0; height: 2px;
background: linear-gradient(90deg, transparent, var(--accent, var(--green)), transparent);
}
.efficiency-title { font-size: 12.5px; color: var(--text-muted); text-transform: uppercase; font-weight: 600; letter-spacing: 0.04em; }
.efficiency-val { font-size: 24px; font-weight: 700; margin: 6px 0; color: #fff; }
.efficiency-desc { font-size: 12px; color: var(--text-muted); margin-bottom: 8px; line-height: 1.4; min-height: 32px; }
.efficiency-sub { font-size: 11.5px; color: var(--text-muted); margin-bottom: 8px; }
.efficiency-bar-row { display: flex; justify-content: space-between; align-items: center; margin-top: 4px; }
/* Operators Grid */
.operators-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
gap: 16px;
margin-bottom: 28px;
}
.operator-card {
background: var(--card);
border: 1px solid var(--border);
border-radius: 12px;
padding: 20px;
transition: transform 0.2s ease, border-color 0.2s ease;
}
.operator-card:hover { transform: translateY(-2px); border-color: rgba(56, 189, 248, 0.4); }
.operator-top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 12px; }
.operator-title { font-size: 16px; font-weight: 600; color: #fff; display: flex; align-items: center; gap: 8px; }
.operator-sub { font-size: 11.5px; color: var(--text-muted); margin-top: 3px; }
.operator-meta {
font-size: 12px;
color: var(--text-muted);
display: grid;
grid-template-columns: 1fr 1fr;
gap: 8px;
margin: 12px 0 0 0;
background: rgba(0,0,0,0.2);
padding: 12px;
border-radius: 8px;
}
.operator-stat-box { display: flex; flex-direction: column; gap: 3px; }
.operator-stat-label { font-size: 10.5px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.04em; }
.operator-stat-val { font-size: 13.5px; font-weight: 600; color: #fff; word-break: break-all; }
/* Nodes Grid */
.nodes-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
gap: 16px;
margin-bottom: 28px;
}
.node-card {
background: var(--card);
border: 1px solid var(--border);
border-radius: 12px;
padding: 20px;
transition: transform 0.2s ease, border-color 0.2s ease;
}
.node-card:hover { transform: translateY(-2px); border-color: rgba(56, 189, 248, 0.4); }
.node-top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 12px; }
.node-name { font-size: 16px; font-weight: 600; color: #fff; }
.node-role { font-size: 11px; color: var(--text-muted); text-transform: uppercase; margin-top: 2px; }
.node-meta { font-size: 12px; color: var(--text-muted); display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin: 12px 0 16px 0; background: rgba(0,0,0,0.2); padding: 10px; border-radius: 8px; }
.node-metric { margin-top: 10px; }
.metric-label-row { display: flex; justify-content: space-between; font-size: 12px; margin-bottom: 4px; }
/* Zero-Scale Grid */
.zero-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
gap: 16px;
margin-bottom: 28px;
}
.zero-card {
background: var(--card);
border: 1px solid var(--border);
border-radius: 12px;
padding: 18px 20px;
display: flex;
flex-direction: column;
justify-content: space-between;
}
.zero-host { font-size: 15px; font-weight: 600; color: #fff; text-align: center; margin-bottom: 8px; word-break: break-all; }
.zero-status-row { display: flex; justify-content: center; margin-bottom: 10px; }
.zero-desc { font-size: 12px; color: var(--text-muted); text-align: center; margin-bottom: 16px; min-height: 36px; }
.zero-actions { display: flex; gap: 8px; }
/* Site Cards */
.sites-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
gap: 14px;
margin-bottom: 24px;
}
.site-card {
background: var(--card);
border: 1px solid var(--border);
border-radius: 10px;
padding: 16px;
text-decoration: none;
color: inherit;
display: flex;
gap: 14px;
align-items: flex-start;
transition: all 0.2s ease;
}
.site-card:hover {
background: var(--card-hover);
border-color: var(--blue);
transform: translateY(-2px);
box-shadow: 0 6px 16px rgba(0,0,0,0.3);
}
.site-icon { font-size: 26px; flex-shrink: 0; padding-top: 2px; }
.site-info { flex-grow: 1; }
.site-name { font-size: 14px; font-weight: 600; color: #fff; margin-bottom: 2px; }
.site-host { font-size: 12px; color: var(--blue); margin-bottom: 4px; word-break: break-all; }
.site-desc { font-size: 12px; color: var(--text-muted); }
.site-ns { font-size: 10px; background: rgba(255,255,255,0.06); padding: 2px 6px; border-radius: 4px; color: var(--text-muted); display: inline-block; margin-top: 6px; }