Files
tps-dashboard/frontend/src/pages/Dashboard/Dashboard.css
T

210 lines
3.3 KiB
CSS
Raw Normal View History

2026-05-15 09:46:42 +08:00
.dashboard {
max-width: 1200px;
}
/* Banner */
.dashboard-banner {
background: #fff;
border-radius: var(--radius-card);
padding: 24px;
display: flex;
align-items: center;
justify-content: space-between;
margin-bottom: 24px;
}
.banner-text h2 {
margin: 0 0 8px;
font-size: 20px;
color: var(--color-text-primary);
}
.banner-text p {
margin: 0;
color: var(--color-text-secondary);
}
.banner-image-placeholder {
width: 200px;
height: 100px;
background: var(--color-accent-green);
border-radius: 12px;
display: flex;
align-items: center;
justify-content: center;
color: var(--color-primary-green);
font-size: 12px;
position: relative;
overflow: hidden;
}
.banner-placeholder-gradient {
position: absolute;
inset: 0;
background: linear-gradient(135deg, #6b8e6b 0%, #a8c89a 50%, #d4e6b5 100%);
}
.change-cover-btn {
position: absolute;
bottom: 6px;
right: 6px;
z-index: 2;
}
.placeholder-label {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
z-index: 2;
color: rgba(255,255,255,0.85);
font-size: 13px;
font-weight: 600;
letter-spacing: 2px;
2026-05-15 09:46:42 +08:00
}
/* KPI Cards */
.kpi-row {
margin-bottom: 24px;
}
.kpi-card {
border-radius: var(--radius-card);
display: flex;
align-items: center;
gap: 16px;
}
.kpi-icon {
width: 56px;
height: 56px;
border-radius: 12px;
display: flex;
align-items: center;
justify-content: center;
}
.kpi-info {
display: flex;
flex-direction: column;
}
.kpi-value {
font-size: 24px;
font-weight: 600;
color: var(--color-text-primary);
}
.kpi-label {
font-size: 12px;
color: var(--color-text-secondary);
}
/* Content Cards */
.cards-row {
margin-bottom: 24px;
}
.content-card {
border-radius: var(--radius-card);
height: 100%;
}
.content-card .ant-card-head-title {
font-weight: 600;
}
.placeholder-text {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
padding: 32px 16px;
text-align: center;
color: var(--color-text-secondary);
}
.placeholder-text p {
margin: 8px 0 4px;
font-weight: 500;
}
.placeholder-text small {
color: #999;
}
/* Chart Container */
.chart-container {
padding: 8px 0;
}
.bars-wrapper {
display: flex;
justify-content: space-between;
align-items: flex-end;
height: 200px;
padding: 0 8px;
}
.bar-item {
display: flex;
flex-direction: column;
align-items: center;
flex: 1;
max-width: 40px;
}
.bar {
width: 24px;
border-radius: 4px 4px 0 0;
transition: all 0.3s;
cursor: pointer;
}
.bar-label-top {
font-size: 9px;
color: var(--color-text-secondary);
text-align: center;
margin-top: 4px;
max-width: 40px;
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
}
.bar-label-bottom {
display: flex;
flex-direction: column;
align-items: center;
gap: 2px;
margin-top: 4px;
}
.bar-label-bottom span {
font-size: 9px;
color: var(--color-text-secondary);
}
/* Chart Legend */
.chart-legend {
display: flex;
justify-content: center;
gap: 16px;
margin-top: 12px;
padding-top: 12px;
border-top: 1px solid #f0f0f0;
}
.legend-item {
display: flex;
align-items: center;
gap: 4px;
font-size: 11px;
color: var(--color-text-secondary);
}
.dot {
width: 8px;
height: 8px;
border-radius: 50%;
}