ServerKit is a lightweight, modern server control panel for managing web applications, databases, and services on your VPS or dedicated server. Built with Python/Flask backend and React frontend.
Python astracloudflarecontrol-panelcyberpaneldnsfablehosting-control-panelhosting-panelkimi-k3server-managementserverkitubuntu-web-panelwebserver
// ============================================
// PER-DOMAIN BANDWIDTH
// Sparkline cell on the Services list + the Bandwidth card on the
// service detail Overview tab. The <svg> itself is BandwidthSparkline.jsx.
// ============================================
// Shared sparkline styling (stroke inherits currentColor).
.bw-spark {
display: block;
color: var(--accent, #4f8ef7);
opacity: 0.9;
&--wide {
width: 100%;
max-width: 640px;
height: 48px; // geometry: sparkline chart box
}
}
// Services list cell: sparkline + month total side by side.
.bw-cell {
display: inline-flex;
align-items: center;
gap: $space-2;
.bw-spark { flex-shrink: 0; }
&__month {
font-size: $text-xs;
color: var(--text-dim);
white-space: nowrap;
}
}
// Service detail Overview: full-width bandwidth card additions.
.overview-tab__bandwidth {
&-month {
font-size: $text-sm;
color: var(--text-dim);
}
&-caption {
display: block;
margin-top: $space-tight;
font-size: $text-xs;
color: var(--text-faint);
}
}
// Service detail Overview: Traffic card (requests / 5xx / p95 / cache hit
// from the timed access log). Component: service-detail/RequestMetricsCard.
.request-metrics {
&__window {
font-size: $text-xs;
color: var(--text-dim);
}
&__grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
gap: $space-4;
}
&__stat {
display: flex;
flex-direction: column;
gap: $space-1;
min-width: 0;
}
&__label {
font-size: $text-xs;
color: var(--text-dim);
}
&__value {
font-size: $text-lg;
color: var(--text);
}
&__spark {
max-width: 100%;
}
}
// Service detail Overview: Attached services card.
// Component: service-detail/AttachmentsCard.
.attachments {
&__list {
list-style: none;
margin: 0;
padding: 0;
display: flex;
flex-direction: column;
gap: $space-tight;
}
&__row {
display: grid;
grid-template-columns: 80px minmax(0, 1fr) minmax(0, 2fr) auto;
align-items: center;
gap: $space-3;
padding: $space-tight 0;
border-top: 1px solid var(--border-soft);
&:first-child { border-top: 0; }
}
&__kind {
font-size: $text-xs;
color: var(--text-dim);
}
&__service { color: var(--text); }
&__env {
font-family: var(--mono);
font-size: $text-xs;
color: var(--text-dim);
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
&__empty {
margin: 0;
font-size: $text-sm;
color: var(--text-dim);
}
&__redeploy {
display: flex;
align-items: center;
justify-content: space-between;
gap: $space-3;
margin-bottom: $space-3;
font-size: $text-sm;
color: var(--text-dim);
}
&__dialog {
display: flex;
flex-direction: column;
gap: $space-3;
}
&__failure-mode {
margin: 0;
font-size: $text-sm;
color: var(--text-dim);
}
}
// Service detail Overview: Connection pooling card.
// Component: service-detail/PoolerCard.
.pooler {
&__hint,
&__tradeoff {
margin: 0 0 $space-tight;
font-size: $text-sm;
color: var(--text-dim);
}
&__tradeoff { color: var(--text-faint); }
}
// Service detail Overview: bottleneck hints.
// Component: service-detail/HintsCard.
.hints {
&__window {
font-size: $text-xs;
color: var(--text-dim);
}
&__list {
list-style: none;
margin: 0;
padding: 0;
display: flex;
flex-direction: column;
gap: $space-3;
}
&__item {
display: flex;
flex-direction: column;
gap: $space-1;
padding-top: $space-3;
border-top: 1px solid var(--border-soft);
&:first-child { border-top: 0; padding-top: 0; }
}
&__signal {
margin: 0;
font-size: $text-sm;
color: var(--text);
}
&__hint {
margin: 0;
font-size: $text-sm;
color: var(--text);
}
&__failure {
margin: 0;
font-size: $text-xs;
color: var(--text-dim);
}
&__action {
font-size: $text-sm;
color: var(--accent-bright);
&--here { color: var(--text-dim); }
}
}
// Service detail Overview: A/B slot deploys.
// Component: service-detail/SlotsCard.
.slots-card {
&__slots {
display: flex;
flex-direction: column;
gap: $space-3;
margin: 0;
}
&__row {
display: grid;
grid-template-columns: 72px 1fr;
align-items: center;
gap: $space-3;
dt {
font-size: $text-xs;
color: var(--text-dim);
}
dd {
display: flex;
flex-wrap: wrap;
align-items: center;
gap: $space-3;
margin: 0;
}
}
&__release {
font-family: var(--mono);
font-size: $text-sm;
color: var(--text);
}
&__meta,
&__hint {
margin: 0;
font-size: $text-sm;
color: var(--text-dim);
}
&__restore {
display: flex;
flex-wrap: wrap;
align-items: center;
gap: $space-3;
margin-top: $space-3;
padding-top: $space-3;
border-top: 1px solid var(--border-soft);
}
&__off {
display: flex;
flex-direction: column;
gap: $space-tight;
}
&__reasons {
margin: $space-tight 0 0;
padding-inline-start: $space-5;
font-size: $text-sm;
color: var(--text-dim);
li + li { margin-top: 4px; }
&--warn { color: var(--amber); }
}
}
// Settings: the compose data-split preview.
// Component: apps/SlotDeploysPanel.
.slot-split {
&__downtime {
margin: 0 0 $space-3;
font-size: $text-sm;
color: var(--amber);
}
&__label {
margin: $space-3 0 $space-tight;
font-size: $text-xs;
color: var(--text-dim);
}
&__yaml {
max-height: 240px;
margin: 0;
padding: $space-3 $space-3;
overflow: auto;
font-family: var(--mono);
font-size: $text-xs;
background: var(--bg-code);
border: 1px solid var(--border-soft);
border-radius: $radius-control;
}
}