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
// ============================================
// PROJECTS — Workspace → Project → Environment → Applications
// Card grid of projects + a per-project detail view with environment tabs.
// Visual language mirrors the other infra pages (PageTopbar + card grid).
// ============================================
.projects-page {
display: flex;
flex-direction: column;
min-height: 100%;
// Outer padding/centering is supplied by the enclosing .sk-tabgroup__inner
// (the page is a child of the Organization TabGroupLayout) — the body only
// owns its internal stacking.
&__body {
display: flex;
flex-direction: column;
gap: $space-6;
}
}
.projects-grid {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
gap: $space-4;
}
.project-card {
display: flex;
flex-direction: column;
gap: $space-3;
padding: $space-4;
background: $bg-card;
border: 1px solid $border-subtle;
border-radius: $radius-card;
text-decoration: none;
color: inherit;
transition: border-color $transition-fast;
&:hover {
border-color: $border-active;
}
&__header {
display: flex;
align-items: center;
gap: $space-3;
}
&__icon {
display: inline-flex;
align-items: center;
justify-content: center;
width: 38px;
height: 38px; // geometry: icon tile
border-radius: $radius-control;
background: $bg-hover;
color: $accent-primary;
flex-shrink: 0;
}
&__titles {
min-width: 0;
}
&__name {
margin: 0;
font-size: $text-md;
font-weight: $font-weight-semibold;
color: $text-primary;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
&__slug {
display: block;
font-size: $text-xs;
color: $text-tertiary;
font-family: $font-mono;
}
&__description {
margin: 0;
font-size: $text-xs;
color: $text-secondary;
line-height: 1.5;
display: -webkit-box;
-webkit-line-clamp: 2;
-webkit-box-orient: vertical;
overflow: hidden;
}
&__stats {
display: flex;
gap: $space-4;
margin-top: auto;
padding-top: $space-2;
}
&__stat {
display: inline-flex;
align-items: center;
gap: $space-1;
font-size: $text-xs;
color: $text-tertiary;
svg {
color: $text-tertiary;
}
}
}
// Muted "(optional)" hint on the New Service project selector (this feature's
// addition to that form; styled here to stay within the projects feature files).
.new-service-page__optional {
color: $text-tertiary;
font-weight: $font-weight-normal;
}
// ---- Create dialogs (shared by Projects + ProjectDetail) ----
.projects-form {
display: flex;
flex-direction: column;
gap: $space-4;
padding: $space-4 0;
&__field {
display: flex;
flex-direction: column;
gap: $space-2;
}
}
// ============================================
// PROJECT DETAIL
// ============================================
.project-detail-page {
display: flex;
flex-direction: column;
min-height: 100%;
&__body {
padding: $space-6;
display: flex;
flex-direction: column;
gap: $space-5;
}
&__description {
margin: 0;
font-size: $text-xs;
color: $text-secondary;
max-width: 70ch;
}
}
// Compact manifest status strip — only rendered when the project is managed by
// a serverkit.yaml manifest.
.project-manifest-strip {
display: flex;
align-items: center;
gap: $space-3;
flex-wrap: wrap;
padding: $space-2 $space-3;
background: $bg-elevated;
border: 1px solid $border-subtle;
border-radius: $radius-control;
&__label {
color: $text-secondary;
font-size: $text-xs;
font-weight: $font-weight-semibold;
}
&__pill {
display: inline-flex;
align-items: center;
height: 20px; // geometry: badge height (20px badge spec)
padding: 0 $space-tight;
border-radius: $radius-badge;
font-size: $text-xs;
font-weight: $font-weight-medium;
text-transform: capitalize;
background: $bg-card;
color: $text-secondary;
&--applied { background: rgba(61, 220, 151, 0.14); color: $success; }
&--pending { background: rgba(245, 185, 69, 0.14); color: $warning; }
&--drifted,
&--error { background: rgba(251, 111, 111, 0.14); color: $danger; }
}
&__source {
color: $text-tertiary;
font-size: $text-xs;
font-family: $font-mono;
overflow-wrap: anywhere;
}
}
.project-env-tabs {
display: flex;
flex-wrap: wrap;
gap: $space-2;
border-bottom: 1px solid $border-subtle;
padding-bottom: $space-3;
}
.project-env-tab {
display: inline-flex;
align-items: center;
gap: $space-1;
padding: $space-1 $space-2 $space-1 $space-3;
background: $bg-card;
border: 1px solid $border-subtle;
border-radius: $radius-control;
transition: border-color $transition-fast, background $transition-fast;
&.is-active {
border-color: $accent-primary;
background: $bg-hover;
}
&__label {
display: inline-flex;
align-items: center;
gap: $space-2;
background: none;
border: none;
cursor: pointer;
font-size: $text-xs;
font-weight: $font-weight-medium;
color: $text-primary;
padding: 0;
}
&__count {
display: inline-flex;
align-items: center;
justify-content: center;
min-width: 20px;
height: 20px; // geometry: counter badge height (20px badge spec)
padding: 0 $space-tight;
border-radius: $radius-full;
background: $bg-hover;
color: $text-secondary;
font-size: $text-xs;
font-weight: $font-weight-semibold;
}
&__controls {
display: inline-flex;
align-items: center;
gap: $space-hair;
margin-left: $space-1;
button {
display: inline-flex;
align-items: center;
justify-content: center;
width: $control-sm;
height: $control-sm;
background: none;
border: none;
border-radius: $radius-control;
color: $text-tertiary;
cursor: pointer;
transition: background $transition-fast, color $transition-fast;
&:hover:not(:disabled) {
background: $bg-hover;
color: $text-primary;
}
&:disabled {
opacity: 0.35;
cursor: not-allowed;
}
}
}
&__delete:hover:not(:disabled) {
color: $danger !important;
}
}
.project-env-panel {
display: flex;
flex-direction: column;
gap: $space-4;
&__header {
display: flex;
align-items: baseline;
gap: $space-3;
h2 {
margin: 0;
font-size: $text-lg;
font-weight: $font-weight-semibold;
color: $text-primary;
}
span {
font-size: $text-xs;
color: $text-tertiary;
}
}
}
.project-unassigned {
display: flex;
flex-direction: column;
gap: $space-3;
padding-top: $space-4;
border-top: 1px dashed $border-subtle;
&__header {
display: flex;
align-items: center;
gap: $space-2;
h3 {
margin: 0;
font-size: $text-xs;
font-weight: $font-weight-semibold;
color: $text-secondary;
}
span {
font-size: $text-xs;
color: $text-tertiary;
}
}
}
.project-app-list {
list-style: none;
margin: 0;
padding: 0;
display: flex;
flex-direction: column;
gap: $space-1;
}
.project-app-row {
display: flex;
align-items: center;
gap: $space-3;
padding: $space-3 $space-4;
background: $bg-card;
border: 1px solid $border-subtle;
border-radius: $radius-control;
&__status {
width: 8px;
height: 8px;
border-radius: 50%;
background: $text-tertiary;
flex-shrink: 0;
&--running { background: $success; }
&--stopped { background: $text-tertiary; }
&--error { background: $danger; }
&--deploying { background: $warning; }
}
&__name {
font-weight: $font-weight-medium;
color: $text-primary;
text-decoration: none;
&:hover { color: $accent-primary; }
}
&__type {
font-size: $text-xs;
color: $text-tertiary;
}
&__link {
margin-left: auto;
color: $text-tertiary;
display: inline-flex;
&:hover { color: $accent-primary; }
}
}
// Local status pill so the row is self-contained (mirrors the shared pill).
.project-detail-page .status-pill {
display: inline-flex;
align-items: center;
gap: $space-tight;
padding: $space-hair $space-3;
border-radius: $radius-full;
font-size: $text-xs;
font-weight: $font-weight-medium;
text-transform: capitalize;
background: $bg-hover;
color: $text-secondary;
&--running { color: $success; }
&--error { color: $danger; }
&--deploying { color: $warning; }
}