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
// ============================================
// ONBOARDING WIZARD
// Step indicator + live state for the server onboarding lifecycle
// (validating -> prerequisites -> docker -> pair agent -> ready).
// ============================================
// Spacing for the wizard when embedded at the top of the server Overview tab.
.overview-tab__onboarding {
margin-bottom: $space-5;
}
.onboarding-wizard {
background: $bg-card;
border: 1px solid $border-color;
border-radius: $radius-card;
padding: $space-5;
&__header {
display: flex;
align-items: center;
justify-content: space-between;
gap: $space-3;
margin-bottom: $space-4;
}
&__title {
display: flex;
align-items: center;
gap: $space-3;
h3 {
margin: 0;
font-size: $text-base;
font-weight: $font-weight-semibold;
color: $text-primary;
}
}
&__elapsed {
display: inline-flex;
align-items: center;
gap: $space-1;
font-size: $text-xs;
color: $text-tertiary;
font-variant-numeric: tabular-nums;
svg {
opacity: 0.7;
}
}
// "Step X of N" indicator + coarse progress bar derived from the current
// lifecycle position.
&__progress {
margin-bottom: $space-4;
}
&__progress-head {
display: flex;
align-items: baseline;
justify-content: space-between;
gap: $space-3;
margin-bottom: $space-2;
}
&__progress-step {
font-size: $text-xs;
font-weight: $font-weight-medium;
color: $text-secondary;
font-variant-numeric: tabular-nums;
}
&__progress-eta {
font-size: $text-xs;
color: $text-tertiary;
font-variant-numeric: tabular-nums;
}
&__progress-track {
height: 6px;
border-radius: $radius-full;
background: $bg-elevated;
overflow: hidden;
}
&__progress-fill {
display: block;
height: 100%;
border-radius: $radius-full;
background: $accent-primary;
transition: width 0.3s ease;
&--failed {
background: $danger;
}
}
&__error {
display: flex;
align-items: flex-start;
gap: $space-2;
padding: $space-3 $space-4;
margin-bottom: $space-4;
border-radius: $radius-control;
background: $danger-bg;
border: 1px solid $danger-border;
color: $danger;
font-size: $text-xs;
line-height: 1.4;
svg {
flex-shrink: 0;
margin-top: 1px;
}
}
&__steps {
list-style: none;
margin: 0;
padding: 0;
display: flex;
flex-direction: column;
}
&__step {
position: relative;
display: flex;
gap: $space-3;
padding-bottom: $space-4;
// Connector line down to the next step.
&:not(:last-child)::before {
content: '';
position: absolute;
left: 8px;
top: 22px;
bottom: 0;
width: 2px;
background: $border-color;
}
&--done:not(:last-child)::before {
background: $success-border;
}
}
&__step-icon {
flex-shrink: 0;
display: inline-flex;
align-items: center;
justify-content: center;
width: 18px;
height: 18px;
z-index: 1;
background: $bg-card;
color: $text-tertiary;
}
&__step--done &__step-icon {
color: $success;
}
&__step--active &__step-icon {
color: $accent-primary;
}
&__step--failed &__step-icon {
color: $danger;
}
&__step-body {
flex: 1;
min-width: 0;
}
&__step-head {
display: flex;
align-items: center;
gap: $space-2;
}
&__step-label {
font-weight: $font-weight-medium;
color: $text-primary;
font-size: $text-xs;
}
&__step--pending &__step-label {
color: $text-tertiary;
}
&__step-desc {
margin: $space-hair 0 0;
font-size: $text-xs;
color: $text-secondary;
}
&__step-logs {
list-style: none;
margin: $space-2 0 0;
padding: 0;
display: flex;
flex-direction: column;
gap: $space-hair;
}
&__log {
font-size: $text-xs;
color: $text-tertiary;
padding-left: $space-2;
border-left: 2px solid $border-color;
&--succeeded {
color: $success;
border-left-color: $success-border;
}
&--failed {
color: $danger;
border-left-color: $danger-border;
}
}
// Live, auto-scrolling activity log trail.
&__trail {
margin-top: $space-4;
border: 1px solid $border-color;
border-radius: $radius-control;
background: $bg-elevated;
overflow: hidden;
}
// Step-history toggle: a full-width button that expands/collapses the
// detailed activity trail below it.
&__trail-head {
display: flex;
align-items: center;
gap: $space-2;
width: 100%;
padding: $space-2 $space-3;
background: none;
border: none;
border-bottom: 1px solid $border-color;
font-size: $text-xs;
font-weight: $font-weight-semibold;
color: $text-tertiary;
cursor: pointer;
text-align: left;
&:hover {
color: $text-secondary;
}
}
&__trail-chevron {
flex-shrink: 0;
transition: transform 0.15s ease;
&--open {
transform: rotate(180deg);
}
}
&__trail-count {
margin-left: auto;
padding: 0 $space-2;
border-radius: $radius-full;
background: $bg-card;
color: $text-tertiary;
font-variant-numeric: tabular-nums;
letter-spacing: 0;
}
&__trail-list {
list-style: none;
margin: 0;
padding: $space-2 0;
max-height: 180px;
overflow-y: auto;
scroll-behavior: smooth;
}
&__trail-row {
display: flex;
gap: $space-3;
padding: $space-hair $space-3;
font-family: $font-mono;
font-size: $text-xs;
line-height: 1.6;
color: $text-secondary;
&--succeeded {
color: $success;
}
&--failed {
color: $danger;
}
}
&__trail-time {
flex-shrink: 0;
color: $text-tertiary;
font-variant-numeric: tabular-nums;
}
&__trail-msg {
flex: 1;
min-width: 0;
word-break: break-word;
}
&__loading {
margin: $space-3 0 0;
font-size: $text-xs;
color: $text-secondary;
}
&__spin {
animation: onboarding-spin 1s linear infinite;
}
}
@keyframes onboarding-spin {
from { transform: rotate(0deg); }
to { transform: rotate(360deg); }
}