Skip to content

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.

refactor(ui): consolidate per-page styles into shared cards

Juan Denis5ad7a4bc3f60
diff --git a/frontend/src/pages/Deployments.jsx b/frontend/src/pages/Deployments.jsx
index 27f97006..f79b99ad 100644
--- a/frontend/src/pages/Deployments.jsx
+++ b/frontend/src/pages/Deployments.jsx
@@ -13,6 +13,7 @@ import {
PlayCircle,
} from 'lucide-react';
import api from '../services/api';
+import { StatStrip, Stat } from '../components/StatCard';
import { Button } from '@/components/ui/button';
const STATUS_COLORS = {
@@ -166,25 +167,12 @@ const Deployments = () => {
</div>
</div>
- <div className="deployments-page__summary">
- {[
- { label: 'Running', value: summary.running, icon: Loader2, color: '#6366f1' },
- { label: 'Succeeded', value: summary.succeeded, icon: CheckCircle2, color: '#22c55e' },
- { label: 'Failed', value: summary.failed, icon: XCircle, color: '#ef4444' },
- { label: 'Pending', value: summary.pending, icon: Clock, color: '#94a3b8' },
- ].map((s) => {
- const Icon = s.icon;
- return (
- <div key={s.label} className="deployments-page__stat-card">
- <Icon size={18} style={{ color: s.color }} />
- <div>
- <div className="deployments-page__stat-label">{s.label}</div>
- <div className="deployments-page__stat-value">{s.value}</div>
- </div>
- </div>
- );
- })}
- </div>
+ <StatStrip ariaLabel="Deployment summary">
+ <Stat label="Running" value={summary.running} state={summary.running > 0 ? 'info' : undefined} />
+ <Stat label="Succeeded" value={summary.succeeded} state={summary.succeeded > 0 ? 'success' : undefined} />
+ <Stat label="Failed" value={summary.failed} state={summary.failed > 0 ? 'danger' : undefined} />
+ <Stat label="Pending" value={summary.pending} />
+ </StatStrip>
<div className="deployments-page__toolbar">
<div className="deployments-page__filter">
diff --git a/frontend/src/pages/FTPServer.jsx b/frontend/src/pages/FTPServer.jsx
index 033b0ea0..a779bc78 100644
--- a/frontend/src/pages/FTPServer.jsx
+++ b/frontend/src/pages/FTPServer.jsx
@@ -6,6 +6,7 @@ import { useToast } from '../contexts/ToastContext';
import Spinner from '../components/Spinner';
import EmptyState from '../components/EmptyState';
import ConfirmDialog from '../components/ConfirmDialog';
+import { StatStrip, Stat } from '../components/StatCard';
import { Button } from '@/components/ui/button';
import { Input } from '@/components/ui/input';
import { Label } from '@/components/ui/label';
@@ -299,44 +300,16 @@ function FTPServer() {
/>
) : (
<>
- <div className="status-cards">
- <div className={`status-card ${isRunning ? 'success' : 'warning'}`}>
- <div className="status-icon">
- <span className="icon">{isRunning ? 'check_circle' : 'pause_circle'}</span>
- </div>
- <div className="status-info">
- <span className="status-label">Server Status</span>
- <span className="status-value">{isRunning ? 'Running' : 'Stopped'}</span>
- </div>
- </div>
- <div className="status-card">
- <div className="status-icon">
- <span className="icon">dns</span>
- </div>
- <div className="status-info">
- <span className="status-label">Active Server</span>
- <span className="status-value">{activeServer || 'None'}</span>
- </div>
- </div>
- <div className="status-card">
- <div className="status-icon">
- <span className="icon">people</span>
- </div>
- <div className="status-info">
- <span className="status-label">FTP Users</span>
- <span className="status-value">{users.length}</span>
- </div>
- </div>
- <div className="status-card">
- <div className="status-icon">
- <span className="icon">lan</span>
- </div>
- <div className="status-info">
- <span className="status-label">Active Connections</span>
- <span className="status-value">{connections.length}</span>
- </div>
- </div>
- </div>
+ <StatStrip ariaLabel="FTP server status">
+ <Stat
+ label="Server Status"
+ value={isRunning ? 'Running' : 'Stopped'}
+ state={isRunning ? 'success' : 'warning'}
+ />
+ <Stat label="Active Server" value={activeServer || 'None'} />
+ <Stat label="FTP Users" value={users.length} />
+ <Stat label="Active Connections" value={connections.length} />
+ </StatStrip>
<Tabs value={activeTab} onValueChange={(val) => {
setActiveTab(val);
diff --git a/frontend/src/pages/Firewall.jsx b/frontend/src/pages/Firewall.jsx
index 628e6b86..cd70c4db 100644
--- a/frontend/src/pages/Firewall.jsx
+++ b/frontend/src/pages/Firewall.jsx
@@ -5,6 +5,7 @@ import { useToast } from '../contexts/ToastContext';
import Spinner from '../components/Spinner';
import EmptyState from '../components/EmptyState';
import ConfirmDialog from '../components/ConfirmDialog';
+import { StatStrip, Stat } from '../components/StatCard';
import { Button } from '@/components/ui/button';
import { Input } from '@/components/ui/input';
import { Label } from '@/components/ui/label';
@@ -296,44 +297,20 @@ function Firewall() {
/>
) : (
<>
- <div className="status-cards">
- <div className={`status-card ${isActive ? 'success' : 'danger'}`}>
- <div className="status-icon">
- <span className="icon">{isActive ? 'shield' : 'shield_outlined'}</span>
- </div>
- <div className="status-info">
- <span className="status-label">Firewall Status</span>
- <span className="status-value">{isActive ? 'Active' : 'Inactive'}</span>
- </div>
- </div>
- <div className="status-card">
- <div className="status-icon">
- <span className="icon">dns</span>
- </div>
- <div className="status-info">
- <span className="status-label">Firewall Type</span>
- <span className="status-value">{activeFirewall?.toUpperCase() || 'None'}</span>
- </div>
- </div>
- <div className="status-card">
- <div className="status-icon">
- <span className="icon">rule</span>
- </div>
- <div className="status-info">
- <span className="status-label">Active Rules</span>
- <span className="status-value">{rules.length}</span>
- </div>
- </div>
- <div className="status-card warning">
- <div className="status-icon">
- <span className="icon">block</span>
- </div>
- <div className="status-info">
- <span className="status-label">Blocked IPs</span>
- <span className="status-value">{blockedIPs.length}</span>
- </div>
- </div>
- </div>
+ <StatStrip ariaLabel="Firewall status">
+ <Stat
+ label="Firewall Status"
+ value={isActive ? 'Active' : 'Inactive'}
+ state={isActive ? 'success' : 'danger'}
+ />
+ <Stat label="Firewall Type" value={activeFirewall?.toUpperCase() || 'None'} />
+ <Stat label="Active Rules" value={rules.length} />
+ <Stat
+ label="Blocked IPs"
+ value={blockedIPs.length}
+ state={blockedIPs.length > 0 ? 'warning' : undefined}
+ />
+ </StatStrip>
<Tabs defaultValue="overview">
<TabsList>
diff --git a/frontend/src/pages/Git.jsx b/frontend/src/pages/Git.jsx
index 8e45dec8..c46a9e0e 100644
--- a/frontend/src/pages/Git.jsx
+++ b/frontend/src/pages/Git.jsx
@@ -6,6 +6,7 @@ import Spinner from '../components/Spinner';
import ConfirmDialog from '../components/ConfirmDialog';
import { DangerZone } from '../components/DangerZone';
import EmptyState from '../components/EmptyState';
+import { StatStrip, Stat } from '../components/StatCard';
import { AlertCircle, FolderGit2, Webhook, Rocket } from 'lucide-react';
import { Button } from '@/components/ui/button';
import { Input } from '@/components/ui/input';
@@ -643,58 +644,16 @@ function Git({ basePath = '/git' }) {
</div>
) : (
<>
- <div className="status-cards">
- <div className={`status-card ${status?.running ? 'success' : 'danger'}`}>
- <div className="status-icon">
- <svg viewBox="0 0 24 24" width="32" height="32" stroke="currentColor" fill="none" strokeWidth="2">
- <circle cx="18" cy="18" r="3"/>
- <circle cx="6" cy="6" r="3"/>
- <path d="M6 21V9a9 9 0 0 0 9 9"/>
- </svg>
- </div>
- <div className="status-info">
- <span className="status-label">Server Status</span>
- <span className="status-value">{status?.running ? 'Running' : 'Stopped'}</span>
- </div>
- </div>
- <div className="status-card">
- <div className="status-icon">
- <svg viewBox="0 0 24 24" width="32" height="32" stroke="currentColor" fill="none" strokeWidth="2">
- <circle cx="12" cy="12" r="10"/>
- <line x1="2" y1="12" x2="22" y2="12"/>
- <path d="M12 2a15.3 15.3 0 0 1 4 10 15.3 15.3 0 0 1-4 10 15.3 15.3 0 0 1-4-10 15.3 15.3 0 0 1 4-10z"/>
- </svg>
- </div>
- <div className="status-info">
- <span className="status-label">URL Path</span>
- <span className="status-value">{status?.url_path || `/gitea`}</span>
- </div>
- </div>
- <div className="status-card">
- <div className="status-icon">
- <svg viewBox="0 0 24 24" width="32" height="32" stroke="currentColor" fill="none" strokeWidth="2">
- <rect x="3" y="11" width="18" height="11" rx="2" ry="2"/>
- <path d="M7 11V7a5 5 0 0 1 10 0v4"/>
- </svg>
- </div>
- <div className="status-info">
- <span className="status-label">SSH Port</span>
- <span className="status-value">{status?.ssh_port || 'N/A'}</span>
- </div>
- </div>
- <div className="status-card">
- <div className="status-icon">
- <svg viewBox="0 0 24 24" width="32" height="32" stroke="currentColor" fill="none" strokeWidth="2">
- <path d="M20 21v-2a4 4 0 0 0-4-4H8a4 4 0 0 0-4 4v2"/>
- <circle cx="12" cy="7" r="4"/>
- </svg>
- </div>
- <div className="status-info">
- <span className="status-label">Version</span>
- <span className="status-value">{status?.version || 'Unknown'}</span>
- </div>
- </div>
- </div>
+ <StatStrip ariaLabel="Git server status">
+ <Stat
+ label="Server Status"
+ value={status?.running ? 'Running' : 'Stopped'}
+ state={status?.running ? 'success' : 'danger'}
+ />
+ <Stat label="URL Path" value={status?.url_path || '/gitea'} />
+ <Stat label="SSH Port" value={status?.ssh_port || 'N/A'} />
+ <Stat label="Version" value={status?.version || 'Unknown'} />
+ </StatStrip>
<Tabs value={activeTab} onValueChange={setActiveTab}>
<TabsList>
diff --git a/frontend/src/pages/Marketplace.jsx b/frontend/src/pages/Marketplace.jsx
index 3bd8ef8c..a1269069 100644
--- a/frontend/src/pages/Marketplace.jsx
+++ b/frontend/src/pages/Marketplace.jsx
@@ -24,14 +24,16 @@ import api from '../services/api';
import { useToast } from '../contexts/ToastContext';
import Spinner from '../components/Spinner';
import EmptyState from '../components/EmptyState';
+import { StatStrip, Stat } from '../components/StatCard';
import { Button } from '@/components/ui/button';
import { Input } from '@/components/ui/input';
import { Badge } from '@/components/ui/badge';
import { Tabs, TabsList, TabsTrigger, TabsContent } from '@/components/ui/tabs';
-const CATEGORIES = ['monitoring', 'security', 'deployment', 'integration', 'ui', 'utility'];
+const CATEGORIES = ['ai', 'monitoring', 'security', 'deployment', 'integration', 'ui', 'utility'];
const CATEGORY_ICONS = {
+ ai: Sparkles,
monitoring: Activity,
security: ShieldCheck,
deployment: ServerCog,
@@ -300,12 +302,16 @@ const Marketplace = () => {
</div>
</section>
- <div className="marketplace-stats" aria-label="Marketplace summary">
- <StatTile icon={Package} label="Catalog" value={availableCount} tone="blue" />
- <StatTile icon={Archive} label="Local Entries" value={builtins.length} tone="amber" />
- <StatTile icon={PackageCheck} label="Installed" value={installedCatalogCount} tone="green" />
- <StatTile icon={PlugZap} label="Active Plugins" value={`${activePluginCount}/${plugins.length}`} tone={pluginIssueCount > 0 ? 'red' : 'violet'} />
- </div>
+ <StatStrip ariaLabel="Marketplace summary">
+ <Stat label="Catalog" value={availableCount} />
+ <Stat label="Local Entries" value={builtins.length} />
+ <Stat label="Installed" value={installedCatalogCount} />
+ <Stat
+ label="Active Plugins"
+ value={`${activePluginCount}/${plugins.length}`}
+ state={pluginIssueCount > 0 ? 'danger' : undefined}
+ />
+ </StatStrip>
<Tabs value={activeTab} onValueChange={setActiveTab} className="marketplace-tabs">
<TabsList className="marketplace-tabs__list">
@@ -592,18 +598,6 @@ const Marketplace = () => {
);
};
-const StatTile = ({ icon: Icon, label, value, tone }) => (
- <div className={`marketplace-stat marketplace-stat--${tone}`}>
- <div className="marketplace-stat__icon">
- <Icon aria-hidden="true" />
- </div>
- <div>
- <div className="marketplace-stat__value">{value}</div>
- <div className="marketplace-stat__label">{label}</div>
- </div>
- </div>
-);
-
const SectionHeader = ({ kicker, title, meta }) => (
<div className="marketplace-section__header">
<div>
diff --git a/frontend/src/pages/Monitoring.jsx b/frontend/src/pages/Monitoring.jsx
index b0ea24cd..f7c5095a 100644
--- a/frontend/src/pages/Monitoring.jsx
+++ b/frontend/src/pages/Monitoring.jsx
@@ -4,6 +4,7 @@ import useTabParam from '../hooks/useTabParam';
import api from '../services/api';
import { useToast } from '../contexts/ToastContext';
import EmptyState from '../components/EmptyState';
+import { StatStrip, Stat } from '../components/StatCard';
import { Button } from '@/components/ui/button';
import { Input } from '@/components/ui/input';
import { Label } from '@/components/ui/label';
@@ -337,20 +338,11 @@ const Monitoring = () => {
</div>
</section>
- <div className="monitoring-summary-grid">
- <div>
- <span>Alert rules</span>
- <strong>{alertRuleCount}</strong>
- </div>
- <div>
- <span>Delivery channels</span>
- <strong>{enabledChannelCount}</strong>
- </div>
- <div>
- <span>History</span>
- <strong>{alertHistory.length}</strong>
- </div>
- </div>
+ <StatStrip ariaLabel="Monitoring summary">
+ <Stat label="Alert rules" value={alertRuleCount} />
+ <Stat label="Delivery channels" value={enabledChannelCount} />
+ <Stat label="History" value={alertHistory.length} />
+ </StatStrip>
<section className="monitoring-panel">
<div className="monitoring-panel__header">
diff --git a/frontend/src/pages/Services.jsx b/frontend/src/pages/Services.jsx
index 9388cfc1..8be1ec0f 100644
--- a/frontend/src/pages/Services.jsx
+++ b/frontend/src/pages/Services.jsx
@@ -5,6 +5,7 @@ import api from '../services/api';
import { useToast } from '../contexts/ToastContext';
import { getServiceType, getStatusConfig, formatRelativeTime } from '../utils/serviceTypes';
import EmptyState from '../components/EmptyState';
+import { StatStrip, Stat } from '../components/StatCard';
import { Button } from '@/components/ui/button';
import { Input } from '@/components/ui/input';
import { Checkbox } from '@/components/ui/checkbox';
@@ -152,63 +153,30 @@ const Services = () => {
</Button>
</div>
- {/* Summary Cards */}
+ {/* Summary */}
{apps.length > 0 && (
- <div className="services-page__summary">
- <div className="services-page__summary-card">
- <div className="services-page__summary-icon services-page__summary-icon--live">
- <svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" strokeWidth="2">
- <path d="M22 12h-4l-3 9L9 3l-3 9H2"/>
- </svg>
- </div>
- <div className="services-page__summary-info">
- <span className="services-page__summary-value">{stats.running}</span>
- <span className="services-page__summary-label">Running</span>
- </div>
- </div>
- <div className="services-page__summary-card">
- <div className="services-page__summary-icon services-page__summary-icon--stopped">
- <svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" strokeWidth="2">
- <circle cx="12" cy="12" r="10"/>
- <line x1="15" y1="9" x2="9" y2="15"/>
- <line x1="9" y1="9" x2="15" y2="15"/>
- </svg>
- </div>
- <div className="services-page__summary-info">
- <span className="services-page__summary-value">{stats.stopped}</span>
- <span className="services-page__summary-label">Stopped</span>
- </div>
- </div>
- <div className="services-page__summary-card">
- <div className="services-page__summary-icon services-page__summary-icon--type">
- <svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" strokeWidth="2">
- <path d="M21 16V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16z"/>
- </svg>
- </div>
- <div className="services-page__summary-info">
- <span className="services-page__summary-value">{stats.total}</span>
- <span className="services-page__summary-label">
- Total{stats.topType ? ` (${stats.topType[1]} ${stats.topType[0]})` : ''}
- </span>
- </div>
- </div>
- <div className="services-page__summary-card">
- <div className="services-page__summary-icon services-page__summary-icon--deploy">
- <svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" strokeWidth="2">
- <polyline points="23 4 23 10 17 10"/>
- <path d="M20.49 15a9 9 0 1 1-2.12-9.36L23 10"/>
- </svg>
- </div>
- <div className="services-page__summary-info">
- <span className="services-page__summary-value">
- {stats.recentDeploy ? formatRelativeTime(stats.recentDeploy.last_deploy_at) : 'N/A'}
- </span>
- <span className="services-page__summary-label">
- Last Deploy{stats.recentDeploy ? ` (${stats.recentDeploy.name})` : ''}
- </span>
- </div>
- </div>
- </div>
+ <StatStrip ariaLabel="Services summary">
+ <Stat
+ label="Running"
+ value={stats.running}
+ state={stats.running > 0 ? 'success' : undefined}
+ />
+ <Stat
+ label="Stopped"
+ value={stats.stopped}
+ state={stats.stopped > 0 ? 'warning' : undefined}
+ />
+ <Stat
+ label="Total"
+ value={stats.total}
+ detail={stats.topType ? `${stats.topType[1]} ${stats.topType[0]}` : undefined}
+ />
+ <Stat
+ label="Last Deploy"
+ value={stats.recentDeploy ? formatRelativeTime(stats.recentDeploy.last_deploy_at) : 'N/A'}
+ detail={stats.recentDeploy?.name}
+ />
+ </StatStrip>
)}
{/* Filters + Sort */}
diff --git a/frontend/src/styles/pages/_deployments.scss b/frontend/src/styles/pages/_deployments.scss
index eedd42e2..0ccfd614 100644
--- a/frontend/src/styles/pages/_deployments.scss
+++ b/frontend/src/styles/pages/_deployments.scss
@@ -40,39 +40,6 @@
flex-shrink: 0;
}
- &__summary {
- display: grid;
- grid-template-columns: repeat(4, minmax(0, 1fr));
- gap: $space-3;
- margin-bottom: $space-3;
- }
-
- &__stat-card {
- display: flex;
- align-items: center;
- gap: $space-3;
- min-height: 68px;
- padding: $space-3 $space-4;
- background: $bg-card;
- border: 1px solid $border-subtle;
- border-radius: $radius-lg;
- }
-
- &__stat-label {
- color: $text-tertiary;
- font-size: $font-size-xs;
- font-weight: $font-weight-semibold;
- line-height: 1;
- }
-
- &__stat-value {
- margin-top: $space-1;
- color: $text-primary;
- font-size: $font-size-xl;
- font-weight: $font-weight-bold;
- line-height: 1;
- }
-
&__toolbar {
display: flex;
align-items: center;
@@ -405,10 +372,6 @@
@media (max-width: $breakpoint-lg) {
.deployments-page {
- &__summary {
- grid-template-columns: repeat(2, minmax(0, 1fr));
- }
-
&__workspace {
grid-template-columns: 1fr;
}
@@ -447,7 +410,6 @@
@media (max-width: $breakpoint-sm) {
.deployments-page {
- &__summary,
&__detail-grid {
grid-template-columns: 1fr;
}
diff --git a/frontend/src/styles/pages/_firewall.scss b/frontend/src/styles/pages/_firewall.scss
index 604ad6ce..8fde2b0e 100644
--- a/frontend/src/styles/pages/_firewall.scss
+++ b/frontend/src/styles/pages/_firewall.scss
@@ -66,69 +66,6 @@
}
}
- .status-cards {
- display: grid;
- grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
- gap: $space-4;
- margin-bottom: $space-6;
- }
-
- .status-card {
- display: flex;
- align-items: center;
- gap: $space-4;
- padding: $space-5;
- background: $bg-card;
- border-radius: $radius-xl;
- border: 1px solid $border-subtle;
-
- &.success {
- border-color: fade($success, 45%);
-
- .status-icon {
- color: $success;
- }
- }
-
- &.danger {
- border-color: fade($danger, 45%);
-
- .status-icon {
- color: $danger;
- }
- }
-
- &.warning {
- border-color: fade($warning, 45%);
-
- .status-icon {
- color: $warning;
- }
- }
-
- .status-icon {
- .icon {
- font-size: 32px;
- }
- }
-
- .status-info {
- display: flex;
- flex-direction: column;
- gap: $space-1;
-
- .status-label {
- font-size: $font-size-sm;
- color: $text-secondary;
- }
-
- .status-value {
- font-size: $font-size-lg;
- font-weight: $font-weight-semibold;
- }
- }
- }
-
.tabs {
display: flex;
gap: $space-1;
diff --git a/frontend/src/styles/pages/_ftp-server.scss b/frontend/src/styles/pages/_ftp-server.scss
index 747f6f1e..9e639e82 100644
--- a/frontend/src/styles/pages/_ftp-server.scss
+++ b/frontend/src/styles/pages/_ftp-server.scss
@@ -64,60 +64,6 @@
}
}
- .status-cards {
- display: grid;
- grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
- gap: 16px;
- margin-bottom: 24px;
- }
-
- .status-card {
- display: flex;
- align-items: center;
- gap: 16px;
- padding: 20px;
- background: var(--card-bg);
- border-radius: 12px;
- border: 1px solid $border-subtle;
-
- &.success {
- border-color: fade($success, 45%);
-
- .status-icon {
- color: var(--success);
- }
- }
-
- &.warning {
- border-color: fade($warning, 45%);
-
- .status-icon {
- color: var(--warning);
- }
- }
-
- .status-icon {
- .icon {
- font-size: 32px;
- }
- }
-
- .status-info {
- display: flex;
- flex-direction: column;
- gap: 4px;
-
- .status-label {
- font-size: 13px;
- color: $text-secondary;
- }
-
- .status-value {
- font-size: 18px;
- font-weight: 600;
- }
- }
- }
.tabs {
display: flex;
diff --git a/frontend/src/styles/pages/_git.scss b/frontend/src/styles/pages/_git.scss
index 7186d708..488d49ea 100644
--- a/frontend/src/styles/pages/_git.scss
+++ b/frontend/src/styles/pages/_git.scss
@@ -106,67 +106,6 @@
}
}
- .status-cards {
- display: grid;
- grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
- gap: $space-4;
- margin-bottom: $space-6;
- }
-
- .status-card {
- display: flex;
- align-items: center;
- gap: $space-4;
- padding: $space-5;
- background: $bg-card;
- border-radius: $radius-xl;
- border: 1px solid $border-subtle;
-
- &.success {
- border-color: fade($success, 45%);
-
- .status-icon {
- color: $success;
- }
- }
-
- &.danger {
- border-color: fade($danger, 45%);
-
- .status-icon {
- color: $danger;
- }
- }
-
- &.warning {
- border-color: fade($warning, 45%);
-
- .status-icon {
- color: $warning;
- }
- }
-
- .status-icon {
- color: $text-tertiary;
- }
-
- .status-info {
- display: flex;
- flex-direction: column;
- gap: $space-1;
-
- .status-label {
- font-size: $font-size-sm;
- color: $text-secondary;
- }
-
- .status-value {
- font-size: $font-size-lg;
- font-weight: $font-weight-semibold;
- }
- }
- }
-
.tabs {
display: flex;
gap: $space-1;
diff --git a/frontend/src/styles/pages/_marketplace.scss b/frontend/src/styles/pages/_marketplace.scss
index c0588821..165963af 100644
--- a/frontend/src/styles/pages/_marketplace.scss
+++ b/frontend/src/styles/pages/_marketplace.scss
@@ -60,78 +60,6 @@
}
}
- .marketplace-stats {
- display: grid;
- grid-template-columns: repeat(4, minmax(0, 1fr));
- gap: $space-3;
- margin-bottom: $space-5;
- }
-
- .marketplace-stat {
- display: flex;
- align-items: center;
- gap: $space-3;
- min-height: 76px;
- padding: $space-4;
- border: 1px solid $border-subtle;
- border-radius: $radius-lg;
- background: fade($bg-card-raw, 92%);
- }
-
- .marketplace-stat__icon {
- display: inline-flex;
- align-items: center;
- justify-content: center;
- width: 38px;
- height: 38px;
- flex: 0 0 38px;
- border-radius: $radius-lg;
-
- svg {
- width: 19px;
- height: 19px;
- }
- }
-
- .marketplace-stat__value {
- color: $text-primary;
- font-size: $font-size-xl;
- font-weight: $font-weight-bold;
- line-height: 1.1;
- }
-
- .marketplace-stat__label {
- margin-top: $space-1;
- color: $text-tertiary;
- font-size: $font-size-sm;
- font-weight: $font-weight-medium;
- }
-
- .marketplace-stat--blue .marketplace-stat__icon {
- background: fade($info, 14%);
- color: $info;
- }
-
- .marketplace-stat--amber .marketplace-stat__icon {
- background: fade($warning, 14%);
- color: $warning;
- }
-
- .marketplace-stat--green .marketplace-stat__icon {
- background: fade($success, 14%);
- color: $success;
- }
-
- .marketplace-stat--violet .marketplace-stat__icon {
- background: fade($accent-primary-raw, 14%);
- color: $accent-primary;
- }
-
- .marketplace-stat--red .marketplace-stat__icon {
- background: fade($danger, 14%);
- color: $danger;
- }
-
.marketplace-tabs__list {
margin-bottom: $space-5;
@@ -729,7 +657,6 @@
}
}
- .marketplace-stats,
.marketplace-side-panel {
grid-template-columns: repeat(2, minmax(0, 1fr));
}
@@ -771,7 +698,6 @@
font-size: $font-size-2xl;
}
- .marketplace-stats,
.marketplace-side-panel {
grid-template-columns: 1fr;
}
diff --git a/frontend/src/styles/pages/_monitoring.scss b/frontend/src/styles/pages/_monitoring.scss
index 16e94b69..db9181c8 100644
--- a/frontend/src/styles/pages/_monitoring.scss
+++ b/frontend/src/styles/pages/_monitoring.scss
@@ -43,37 +43,6 @@
}
}
- .monitoring-summary-grid {
- display: grid;
- grid-template-columns: repeat(3, minmax(0, 1fr));
- gap: $space-3;
-
- > div {
- padding: $space-4;
- border: 1px solid $border-subtle;
- border-radius: $radius-md;
- background: $bg-card;
- }
-
- span {
- display: block;
- color: $text-tertiary;
- font-size: $font-size-xs;
- font-weight: $font-weight-semibold;
- text-transform: uppercase;
- }
-
- strong {
- display: block;
- margin-top: $space-2;
- font-size: $font-size-xl;
- }
-
- @media (max-width: 720px) {
- grid-template-columns: 1fr;
- }
- }
-
.monitoring-panel {
min-width: 0;
padding: $space-5;
diff --git a/frontend/src/styles/pages/_services.scss b/frontend/src/styles/pages/_services.scss
index 98198d16..3ef91a83 100644
--- a/frontend/src/styles/pages/_services.scss
+++ b/frontend/src/styles/pages/_services.scss
@@ -260,68 +260,6 @@
opacity: 0.5;
}
- // Summary Cards
- &__summary {
- display: grid;
- grid-template-columns: repeat(4, 1fr);
- gap: $space-4;
- margin-bottom: $space-6;
-
- @media (max-width: $breakpoint-lg) {
- grid-template-columns: repeat(2, 1fr);
- }
-
- @media (max-width: $breakpoint-sm) {
- grid-template-columns: 1fr;
- }
- }
-
- &__summary-card {
- display: flex;
- align-items: center;
- gap: $space-3;
- padding: $space-4 $space-5;
- background: $bg-card;
- border: 1px solid $border-default;
- border-radius: $radius-lg;
- }
-
- &__summary-icon {
- width: 36px;
- height: 36px;
- border-radius: $radius-lg;
- display: flex;
- align-items: center;
- justify-content: center;
- flex-shrink: 0;
-
- &--live { background: $success-bg; color: $success; }
- &--stopped { background: $danger-bg; color: $danger; }
- &--type { background: $info-bg; color: $info; }
- &--deploy { background: $warning-bg; color: $warning; }
- }
-
- &__summary-info {
- display: flex;
- flex-direction: column;
- min-width: 0;
- }
-
- &__summary-value {
- font-size: $font-size-lg;
- font-weight: $font-weight-bold;
- color: $text-primary;
- line-height: 1.2;
- }
-
- &__summary-label {
- font-size: $font-size-xs;
- color: $text-tertiary;
- white-space: nowrap;
- overflow: hidden;
- text-overflow: ellipsis;
- }
-
// List Header
&__list-header {
display: flex;