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
feat(ui): restyle New Service mode chooser to the demo's method cards
Juan Denisc6d44ac502b9
diff --git a/docs/REDESIGN_MAP.md b/docs/REDESIGN_MAP.mdindex c4d866d0..f219206c 100644--- a/docs/REDESIGN_MAP.md+++ b/docs/REDESIGN_MAP.md@@ -123,7 +123,7 @@ Effort: S/M/L/XL. Nature: **Restyle** (look only) · **+IA** (layout/tab/route r| 10 | **Backups** | **XL** | Restyle+IA+BE | `pages/Backups.jsx`, `pages/_backups.scss` | RestoreDrawer, Heatmap | activity timeseries, GFS retention, multi-destination storage, selective/clone restore, per-snapshot duration/progress || 11 | **Git** | L | Restyle+IA+BE | `pages/Git.jsx`, `pages/_git.scss`, `services/api/files.js` | RepoDeployDrawer | provider OAuth connect/disconnect + provider list; Gitea storage/users/runners metrics || 12 | **Terminal / Logs** | L | Restyle+IA | `pages/Terminal.jsx`, `pages/_terminal.scss` | console/TargetRail, TerminalPane, LogsPane (delegate to existing consoles) | unified targets endpoint; live streaming for non-file targets |-| 13 | **Services (list/new/detail)** | L | Restyle+IA+BE | `pages/Services.jsx`, `NewService.jsx`, `ServiceDetail.jsx`, `service-detail/OverviewTab.jsx`, `MetricsTab.jsx`, 3 partials | TemplateCatalog, area charts | per-service metrics history + requests/min; template-catalog source; image/scratch create paths | **✅ top-bar migrated** — shared `SERVICE_TABS` (Services/New Service/Templates/Deploy Activity); `PageTopbar` on all 4 group pages; **sidebar sub-menu removed**. NewService breadcrumb folded into the active tab; Templates search + Deployments live/refresh actions preserved. **Follow-up:** restyle bodies — NewService method-cards + template catalog, Services dense table, ServiceDetail tabs. |+| 13 | **Services (list/new/detail)** | L | Restyle+IA+BE | `pages/Services.jsx`, `NewService.jsx`, `ServiceDetail.jsx`, `service-detail/OverviewTab.jsx`, `MetricsTab.jsx`, 3 partials | TemplateCatalog, area charts | per-service metrics history + requests/min; template-catalog source; image/scratch create paths | **✅ top-bar migrated** — shared `SERVICE_TABS` (Services/New Service/Templates/Deploy Activity); `PageTopbar` on all 4 group pages; **sidebar sub-menu removed**. NewService breadcrumb folded into the active tab; Templates search + Deployments live/refresh actions preserved. **NewService method-card chooser restyled** to the demo's centered cards (GitHub OAuth + manifest flows kept). **Follow-up:** template-catalog grid + Docker-Image/From-Scratch methods (backend gap), Services dense table, ServiceDetail tabs. || 14 | **Cron Jobs** | L | Restyle+IA+BE | `pages/CronJobs.jsx`, `pages/_cron.scss`, `services/api/system.js` | CronDrawer | run history, next-run, success-rate, job target metadata || 15 | **Security (suite)** | L | Restyle+IA+BE | `pages/Security.jsx`, all `components/security/*Tab.jsx`, `pages/_security.scss`, `services/api/security.js` | ScoreGauge usage | geo-blocking, policy toggles, scan schedules, security sessions, pending-update list, integrity verify/revert. **fail2ban + SSH-keys already exist** (minor missing fields) || 16 | **Workspaces (list + detail)** | L | Restyle+IA+BE | `pages/Workspaces.jsx`, `pages/_workspaces.scss`, `services/api/servers.js` | **`pages/WorkspaceDetail.jsx`** + `/workspaces/:id` route | **plan/billing**, aggregated CPU/Mem/Storage usage, service/site counts, member `last_active` |diff --git a/frontend/src/styles/pages/_new-service.scss b/frontend/src/styles/pages/_new-service.scssindex 61623ecd..122299fe 100644--- a/frontend/src/styles/pages/_new-service.scss+++ b/frontend/src/styles/pages/_new-service.scss@@ -53,34 +53,34 @@margin-bottom: $space-4;}+ // Redesign: the demo's centered "method card" chooser.&__mode-card {- display: grid;- grid-template-columns: auto minmax(0, 1fr) auto;+ display: flex;+ flex-direction: column;align-items: center;- gap: $space-3;- min-height: 72px;- padding: $space-4;- background: $bg-card;- border: 1px solid $border-subtle;- border-radius: $radius-lg;+ gap: $space-2;+ position: relative;+ min-height: 116px;+ padding: $space-5 $space-4;+ background: var(--surface);+ border: 1px solid var(--border-soft);+ border-radius: var(--radius);color: $text-primary;font: inherit;- text-align: left;+ text-align: center;text-decoration: none;cursor: pointer;transition: border-color $transition-fast, background $transition-fast, transform $transition-fast;&:hover {- background: $bg-hover;- border-color: $border-default;+ background: var(--surface-2);+ border-color: var(--border-strong);transform: translateY(-1px);}&--active {- border-color: rgba(20, 184, 166, 0.5);- background:- linear-gradient(135deg, rgba(20, 184, 166, 0.1), rgba(99, 102, 241, 0.08)),- $bg-card;+ border-color: var(--accent-dim);+ background: var(--accent-bg-soft);}strong,@@ -89,16 +89,40 @@}strong {- font-size: $font-size-sm;+ font-size: $font-size-base;font-weight: $font-weight-semibold;}small {- margin-top: 2px;+ margin-top: 3px;color: $text-tertiary;font-size: $font-size-xs;line-height: 1.4;}++ // trailing indicator: hidden arrow when idle, accent check when active+ > svg {+ position: absolute;+ top: $space-3;+ right: $space-3;+ color: var(--accent-bright);+ opacity: 0;+ transition: opacity $transition-fast;+ }+ &--active > svg { opacity: 1; }+ }++ // method-card icon chip: dim by default, accent when its card is active+ &__mode-card &__mode-icon {+ width: 42px;+ height: 42px;+ background: var(--surface-2);+ color: var(--text-dim);+ transition: background $transition-fast, color $transition-fast;+ }+ &__mode-card--active &__mode-icon {+ background: var(--accent-bg);+ color: var(--accent-bright);}&__mode-icon,