Add server status card to dashboard with public and private IP display.
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -42,6 +42,165 @@
|
||||
font-weight: 700;
|
||||
}
|
||||
|
||||
.dashboard-server-card {
|
||||
margin-bottom: 0;
|
||||
}
|
||||
|
||||
.dash-server-head {
|
||||
display: flex;
|
||||
align-items: flex-start;
|
||||
justify-content: space-between;
|
||||
gap: 0.75rem;
|
||||
flex-wrap: wrap;
|
||||
margin-bottom: 0.75rem;
|
||||
}
|
||||
|
||||
.dash-server-title {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
flex-wrap: wrap;
|
||||
gap: 0.45rem;
|
||||
font-size: 0.95rem;
|
||||
font-weight: 600;
|
||||
}
|
||||
|
||||
.dash-server-dot {
|
||||
width: 0.55rem;
|
||||
height: 0.55rem;
|
||||
border-radius: 50%;
|
||||
background: var(--profit);
|
||||
box-shadow: 0 0 8px rgba(76, 217, 127, 0.55);
|
||||
flex-shrink: 0;
|
||||
}
|
||||
|
||||
.dash-server-host {
|
||||
font-size: 0.78rem;
|
||||
font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
|
||||
}
|
||||
|
||||
.dash-server-head-meta {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: flex-end;
|
||||
gap: 0.15rem;
|
||||
font-size: 0.74rem;
|
||||
}
|
||||
|
||||
.dash-server-ip-row {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(2, minmax(0, 1fr));
|
||||
gap: 0.65rem;
|
||||
margin-bottom: 0.85rem;
|
||||
}
|
||||
|
||||
.dash-server-ip-item {
|
||||
padding: 0.55rem 0.7rem;
|
||||
border: 1px solid rgba(255, 255, 255, 0.06);
|
||||
border-radius: 0.55rem;
|
||||
background: rgba(0, 0, 0, 0.18);
|
||||
}
|
||||
|
||||
.dash-server-ip-item .label {
|
||||
display: block;
|
||||
font-size: 0.72rem;
|
||||
color: var(--text-muted);
|
||||
margin-bottom: 0.2rem;
|
||||
}
|
||||
|
||||
.dash-server-ip-item .value {
|
||||
font-size: 0.92rem;
|
||||
font-weight: 600;
|
||||
font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
|
||||
word-break: break-all;
|
||||
}
|
||||
|
||||
.dash-server-metrics {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(4, minmax(0, 1fr));
|
||||
gap: 0.65rem;
|
||||
}
|
||||
|
||||
.dash-server-metric {
|
||||
padding: 0.6rem 0.7rem;
|
||||
border: 1px solid rgba(255, 255, 255, 0.06);
|
||||
border-radius: 0.55rem;
|
||||
background: rgba(0, 0, 0, 0.14);
|
||||
min-width: 0;
|
||||
}
|
||||
|
||||
.dash-server-metric-top {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
gap: 0.35rem;
|
||||
margin-bottom: 0.45rem;
|
||||
}
|
||||
|
||||
.dash-server-metric-top .label {
|
||||
font-size: 0.74rem;
|
||||
color: var(--text-muted);
|
||||
}
|
||||
|
||||
.dash-server-metric-top .value {
|
||||
font-size: 0.95rem;
|
||||
font-weight: 700;
|
||||
color: var(--profit);
|
||||
}
|
||||
|
||||
.dash-server-bar {
|
||||
height: 0.35rem;
|
||||
border-radius: 999px;
|
||||
background: rgba(255, 255, 255, 0.08);
|
||||
overflow: hidden;
|
||||
margin-bottom: 0.35rem;
|
||||
}
|
||||
|
||||
.dash-server-bar > span {
|
||||
display: block;
|
||||
height: 100%;
|
||||
width: 0;
|
||||
border-radius: inherit;
|
||||
background: linear-gradient(90deg, #3ecf7d, #67e8a5);
|
||||
transition: width 0.35s ease;
|
||||
}
|
||||
|
||||
.dash-server-metric-sub {
|
||||
font-size: 0.7rem;
|
||||
line-height: 1.35;
|
||||
}
|
||||
|
||||
.dash-server-net {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 0.25rem;
|
||||
font-size: 0.78rem;
|
||||
font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
|
||||
color: var(--text-muted);
|
||||
}
|
||||
|
||||
.dash-server-net-live {
|
||||
font-size: 0.72rem;
|
||||
color: var(--text-muted);
|
||||
font-weight: 500;
|
||||
}
|
||||
|
||||
@media (max-width: 900px) {
|
||||
.dash-server-metrics {
|
||||
grid-template-columns: repeat(2, minmax(0, 1fr));
|
||||
}
|
||||
}
|
||||
|
||||
@media (max-width: 520px) {
|
||||
.dash-server-ip-row,
|
||||
.dash-server-metrics {
|
||||
grid-template-columns: 1fr;
|
||||
}
|
||||
|
||||
.dash-server-head-meta {
|
||||
align-items: flex-start;
|
||||
}
|
||||
}
|
||||
|
||||
.dashboard-section h2 {
|
||||
margin-bottom: 0.65rem;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user