Polish homepage focus card UI

This commit is contained in:
2569718930@qq.com
2026-04-23 01:58:49 +08:00
parent a0ea4740b9
commit 040313175f
2 changed files with 20 additions and 38 deletions
@@ -681,48 +681,46 @@
flex-shrink: 0; flex-shrink: 0;
display: inline-flex; display: inline-flex;
align-items: center; align-items: center;
gap: 6px; gap: 5px;
min-height: 28px; min-height: 24px;
border-radius: 999px; border-radius: 999px;
padding: 5px 10px 5px 8px; padding: 4px 9px 4px 7px;
border: 1px solid rgba(148, 163, 184, 0.14); border: 1px solid rgba(148, 163, 184, 0.16);
background: rgba(8, 15, 30, 0.52); background: rgba(9, 18, 36, 0.38);
box-shadow: box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
inset 0 1px 0 rgba(255, 255, 255, 0.05), color: rgba(226, 232, 240, 0.82);
0 8px 18px rgba(2, 6, 23, 0.14); font-size: 11px;
color: rgba(226, 232, 240, 0.9);
font-size: 10px;
font-weight: 800; font-weight: 800;
letter-spacing: 0.04em; letter-spacing: 0.01em;
white-space: nowrap; white-space: nowrap;
} }
.root :global(.home-risk-badge::before) { .root :global(.home-risk-badge::before) {
content: ""; content: "";
width: 7px; width: 6px;
height: 7px; height: 6px;
border-radius: 999px; border-radius: 999px;
background: currentColor; background: currentColor;
opacity: 0.92; opacity: 0.88;
box-shadow: 0 0 12px color-mix(in srgb, currentColor 28%, transparent); box-shadow: 0 0 8px color-mix(in srgb, currentColor 24%, transparent);
} }
.root :global(.home-risk-badge.high) { .root :global(.home-risk-badge.high) {
border-color: rgba(248, 113, 113, 0.22); border-color: rgba(248, 113, 113, 0.2);
color: #fca5a5; color: #fda4af;
background: rgba(69, 10, 10, 0.34); background: rgba(69, 10, 10, 0.18);
} }
.root :global(.home-risk-badge.medium) { .root :global(.home-risk-badge.medium) {
border-color: rgba(251, 191, 36, 0.2); border-color: rgba(251, 191, 36, 0.18);
color: #fbbf24; color: #fbbf24;
background: rgba(67, 36, 6, 0.34); background: rgba(67, 36, 6, 0.16);
} }
.root :global(.home-risk-badge.low) { .root :global(.home-risk-badge.low) {
border-color: rgba(52, 211, 153, 0.22); border-color: rgba(52, 211, 153, 0.18);
color: #34d399; color: #34d399;
background: rgba(7, 47, 35, 0.34); background: rgba(7, 47, 35, 0.16);
} }
.root :global(.home-panel-subtitle) { .root :global(.home-panel-subtitle) {
@@ -1357,16 +1355,6 @@
font-weight: 700; font-weight: 700;
} }
.root :global(.home-intraday-meta) {
color: rgba(148, 163, 184, 0.9);
font-size: 11px;
line-height: 1.55;
display: -webkit-box;
overflow: hidden;
-webkit-box-orient: vertical;
-webkit-line-clamp: 3;
}
.root :global(.home-card-section.forecast) { .root :global(.home-card-section.forecast) {
border-color: rgba(99, 102, 241, 0.24); border-color: rgba(99, 102, 241, 0.24);
} }
@@ -817,12 +817,6 @@ function HomeIntelligencePanel({ snapshots }: { snapshots: CitySnapshot[] }) {
</div> </div>
) : null} ) : null}
</div> </div>
<div className="home-intraday-meta">
{trendChart.legendText ||
(locale === "en-US"
? "Intraday observations pending."
: "日内观测序列待补充。")}
</div>
</div> </div>
) : null} ) : null}