feat: 仪表盘布局重排,新增题图上传能力
This commit is contained in:
@@ -1,149 +1,173 @@
|
||||
.dashboard {
|
||||
max-width: 1200px;
|
||||
padding: 12px;
|
||||
}
|
||||
|
||||
/* Banner */
|
||||
/* ===== 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;
|
||||
width: 100%;
|
||||
height: 150px;
|
||||
border-radius: 14px;
|
||||
overflow: hidden;
|
||||
position: relative;
|
||||
background: #3a4a3a;
|
||||
margin-bottom: 12px;
|
||||
}
|
||||
|
||||
.banner-placeholder-gradient {
|
||||
.banner-bg {
|
||||
position: absolute;
|
||||
inset: 0;
|
||||
background: linear-gradient(135deg, #6b8e6b 0%, #a8c89a 50%, #d4e6b5 100%);
|
||||
object-fit: cover;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
}
|
||||
|
||||
.banner-gradient {
|
||||
position: absolute;
|
||||
inset: 0;
|
||||
background: linear-gradient(
|
||||
to right,
|
||||
rgba(12, 16, 12, 0.86) 0%,
|
||||
rgba(12, 16, 12, 0.6) 35%,
|
||||
rgba(12, 16, 12, 0.08) 70%,
|
||||
transparent 100%
|
||||
);
|
||||
}
|
||||
|
||||
.banner-logo {
|
||||
position: absolute;
|
||||
top: 16px;
|
||||
right: 16px;
|
||||
height: 40px;
|
||||
width: auto;
|
||||
opacity: 0.9;
|
||||
}
|
||||
|
||||
.banner-text {
|
||||
position: absolute;
|
||||
bottom: 20px;
|
||||
left: 20px;
|
||||
z-index: 2;
|
||||
}
|
||||
|
||||
.banner-eyebrow {
|
||||
font-size: 11px;
|
||||
color: #cdd8c8;
|
||||
letter-spacing: 1px;
|
||||
margin-bottom: 4px;
|
||||
}
|
||||
|
||||
.banner-title {
|
||||
font-size: 21px;
|
||||
font-weight: 500;
|
||||
color: #ffffff;
|
||||
margin: 0 0 4px;
|
||||
line-height: 1.2;
|
||||
}
|
||||
|
||||
.banner-subtitle {
|
||||
font-size: 12px;
|
||||
color: #d6e0d0;
|
||||
margin: 0 0 4px;
|
||||
}
|
||||
|
||||
.banner-hint {
|
||||
font-size: 11px;
|
||||
color: #bcc8b6;
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
.change-cover-btn {
|
||||
position: absolute;
|
||||
bottom: 6px;
|
||||
right: 6px;
|
||||
z-index: 2;
|
||||
bottom: 16px;
|
||||
right: 16px;
|
||||
z-index: 3;
|
||||
}
|
||||
|
||||
.placeholder-label {
|
||||
/* 默认渐变底图(无题图时) */
|
||||
.banner-default-bg {
|
||||
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;
|
||||
inset: 0;
|
||||
background: linear-gradient(135deg, #3a4a3a 0%, #5a7a5a 50%, #7a9a6a 100%);
|
||||
}
|
||||
|
||||
/* KPI Cards */
|
||||
.kpi-row {
|
||||
margin-bottom: 24px;
|
||||
/* ===== KPI Strip ===== */
|
||||
.kpi-strip {
|
||||
display: flex;
|
||||
gap: 12px;
|
||||
margin-bottom: 12px;
|
||||
}
|
||||
|
||||
.kpi-card {
|
||||
border-radius: var(--radius-card);
|
||||
.kpi-chip {
|
||||
flex: 1;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 16px;
|
||||
gap: 10px;
|
||||
background: #fff;
|
||||
border-radius: 12px;
|
||||
padding: 10px 16px;
|
||||
height: 48px;
|
||||
box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
|
||||
}
|
||||
|
||||
.kpi-icon {
|
||||
width: 56px;
|
||||
height: 56px;
|
||||
border-radius: 12px;
|
||||
width: 28px;
|
||||
height: 28px;
|
||||
border-radius: 8px;
|
||||
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);
|
||||
flex-shrink: 0;
|
||||
}
|
||||
|
||||
.kpi-label {
|
||||
font-size: 12px;
|
||||
color: var(--color-text-secondary);
|
||||
font-size: 11px;
|
||||
color: #6b6b6b;
|
||||
margin: 0;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
/* Content Cards */
|
||||
.cards-row {
|
||||
margin-bottom: 24px;
|
||||
}
|
||||
|
||||
.content-card {
|
||||
border-radius: var(--radius-card);
|
||||
height: 100%;
|
||||
}
|
||||
|
||||
.content-card .ant-card-head-title {
|
||||
.kpi-value {
|
||||
font-size: 15px;
|
||||
font-weight: 600;
|
||||
color: #1a1a1a;
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
.placeholder-text {
|
||||
/* ===== Bar Chart Card ===== */
|
||||
.bar-chart-card {
|
||||
background: #fff;
|
||||
border-radius: 14px;
|
||||
padding: 16px;
|
||||
margin-bottom: 12px;
|
||||
}
|
||||
|
||||
.bar-chart-header {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
padding: 32px 16px;
|
||||
text-align: center;
|
||||
color: var(--color-text-secondary);
|
||||
margin-bottom: 12px;
|
||||
}
|
||||
|
||||
.placeholder-text p {
|
||||
margin: 8px 0 4px;
|
||||
.bar-chart-title {
|
||||
font-size: 15px;
|
||||
font-weight: 500;
|
||||
color: #3b4a3b;
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
.placeholder-text small {
|
||||
color: #999;
|
||||
}
|
||||
|
||||
/* Chart Container */
|
||||
.chart-container {
|
||||
padding: 8px 0;
|
||||
.bar-chart-hint {
|
||||
font-size: 11px;
|
||||
color: #888780;
|
||||
}
|
||||
|
||||
.bars-wrapper {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: flex-end;
|
||||
height: 200px;
|
||||
padding: 0 8px;
|
||||
height: 180px;
|
||||
padding: 0 4px;
|
||||
gap: 4px;
|
||||
}
|
||||
|
||||
.bar-item {
|
||||
@@ -151,41 +175,38 @@
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
flex: 1;
|
||||
max-width: 40px;
|
||||
max-width: 42px;
|
||||
min-width: 20px;
|
||||
}
|
||||
|
||||
.bar {
|
||||
width: 24px;
|
||||
border-radius: 4px 4px 0 0;
|
||||
width: 100%;
|
||||
max-width: 38px;
|
||||
border-radius: 7px 7px 0 0;
|
||||
transition: all 0.3s;
|
||||
cursor: pointer;
|
||||
position: relative;
|
||||
}
|
||||
|
||||
.bar-label-top {
|
||||
.bar-number {
|
||||
font-size: 9px;
|
||||
color: var(--color-text-secondary);
|
||||
font-weight: 600;
|
||||
text-align: center;
|
||||
margin-top: 4px;
|
||||
max-width: 40px;
|
||||
margin-bottom: 3px;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.bar-program {
|
||||
font-size: 9px;
|
||||
color: #6b6b6b;
|
||||
text-align: center;
|
||||
max-width: 42px;
|
||||
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;
|
||||
@@ -200,11 +221,133 @@
|
||||
align-items: center;
|
||||
gap: 4px;
|
||||
font-size: 11px;
|
||||
color: var(--color-text-secondary);
|
||||
color: #6b6b6b;
|
||||
}
|
||||
|
||||
.dot {
|
||||
width: 8px;
|
||||
height: 8px;
|
||||
border-radius: 50%;
|
||||
}
|
||||
|
||||
/* ===== Bottom Two Columns ===== */
|
||||
.bottom-row {
|
||||
display: grid;
|
||||
grid-template-columns: 1fr 1fr;
|
||||
gap: 12px;
|
||||
}
|
||||
|
||||
.side-card {
|
||||
background: #fff;
|
||||
border-radius: 14px;
|
||||
padding: 16px;
|
||||
}
|
||||
|
||||
.side-card-title {
|
||||
font-size: 15px;
|
||||
font-weight: 500;
|
||||
color: #3b4a3b;
|
||||
margin: 0 0 12px;
|
||||
}
|
||||
|
||||
/* Radar placeholder card */
|
||||
.radar-placeholder {
|
||||
border: 1.5px dashed #c8d9b0;
|
||||
border-radius: 12px;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
min-height: 120px;
|
||||
padding: 16px;
|
||||
position: relative;
|
||||
}
|
||||
|
||||
.radar-placeholder-label {
|
||||
position: absolute;
|
||||
top: 8px;
|
||||
right: 8px;
|
||||
font-size: 10px;
|
||||
color: #bcc8b6;
|
||||
background: #fbf9f1;
|
||||
padding: 2px 6px;
|
||||
border-radius: 6px;
|
||||
}
|
||||
|
||||
.radar-placeholder p {
|
||||
font-size: 13px;
|
||||
color: #6b6b6b;
|
||||
margin: 8px 0 4px;
|
||||
}
|
||||
|
||||
.radar-placeholder small {
|
||||
font-size: 11px;
|
||||
color: #999;
|
||||
}
|
||||
|
||||
.radar-sample-items {
|
||||
width: 100%;
|
||||
margin-bottom: 8px;
|
||||
}
|
||||
|
||||
.radar-sample-item {
|
||||
font-size: 12px;
|
||||
color: #4a5a4a;
|
||||
padding: 4px 8px;
|
||||
background: #f0f7ec;
|
||||
border-radius: 6px;
|
||||
margin-bottom: 4px;
|
||||
}
|
||||
|
||||
/* Schedule list */
|
||||
.schedule-list {
|
||||
list-style: none;
|
||||
padding: 0;
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
.schedule-item {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
padding: 8px 0;
|
||||
border-bottom: 1px solid #f5f5f5;
|
||||
font-size: 12px;
|
||||
}
|
||||
|
||||
.schedule-item:last-child {
|
||||
border-bottom: none;
|
||||
}
|
||||
|
||||
.schedule-ep {
|
||||
color: #1a1a1a;
|
||||
font-weight: 500;
|
||||
}
|
||||
|
||||
.schedule-name {
|
||||
color: #4a5a4a;
|
||||
flex: 1;
|
||||
margin: 0 8px;
|
||||
overflow: hidden;
|
||||
white-space: nowrap;
|
||||
text-overflow: ellipsis;
|
||||
}
|
||||
|
||||
.schedule-date {
|
||||
color: #888780;
|
||||
font-size: 11px;
|
||||
}
|
||||
|
||||
.schedule-editor {
|
||||
color: #6b6b6b;
|
||||
font-size: 11px;
|
||||
}
|
||||
|
||||
/* Loading state */
|
||||
.chart-loading {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
height: 180px;
|
||||
color: #999;
|
||||
}
|
||||
Reference in New Issue
Block a user