// Copyright 2026 Arctel.net // SPDX-License-Identifier: Apache-2.0 "use client" import * as React from "react" import {Code, Cpu, Database, HardDrive} from "lucide-react" import {Card, CardContent, CardHeader, CardTitle} from "@/components/ui/card" import {Progress} from "@/components/ui/progress" export function DashboardTab() { return (
{/* CPU */} 容器 CPU 使用率
42.8 %

容器运行正常,负载平稳

{/* Storage */} 存储已用容量
72.4 GB / 100 GB

数据已同步远端 S3 存储桶,支持自动过期

{/* DB Overview */} 物理数据库
PostgreSQL (v16.2)
活跃连接: 12
总表数量: 34

链接池自动维护中,最大连接限制为 100

{/* 指标卡片规范与代码 */} 指标卡片 & 仪表盘设计规范
  • 指标卡片统一采用 border-dashed shadow-none 作为边框和投影。
  • 头部使用 flex flex-row items-center justify-between pb-2 布局,左侧为标题小字,右侧为直接呈现的 Lucide 图标。
  • 数值强调使用且仅使用 text-2xl font-semibold tracking-tight 展示。
  • 进度条使用 h-1.5 细条高度,不喧宾夺主。
  • 底部的次要说明信息必须统一使用 text-[10px] text-muted-foreground 等辅助类。
{`
  
    指标标题
    
  
  
    
42.8 %

状态说明小字

`}
) }