feat: 使用 Pencil 优化首页 UI

This commit is contained in:
meijiali
2026-07-07 17:27:23 +08:00
parent 74b4e606fa
commit c22556430e
3 changed files with 156 additions and 11 deletions
+124
View File
@@ -146,6 +146,18 @@ a {
padding: 30px;
}
.hero-band-inverse {
background: #111827;
border-color: #111827;
border-radius: 0;
box-shadow: none;
color: #ffffff;
margin-left: calc(50% - 50vw);
margin-right: calc(50% - 50vw);
margin-top: -1.5rem;
padding: 42px max(48px, calc((100vw - 1180px) / 2 + 24px));
}
.hero-shell {
align-items: flex-end;
display: flex;
@@ -166,6 +178,12 @@ a {
margin: 0 0 12px;
}
.hero-band-inverse .hero-copy h1 {
color: #ffffff;
font-size: 42px;
max-width: 720px;
}
.hero-copy p:not(.eyebrow) {
color: var(--muted-foreground);
font-size: 15px;
@@ -173,6 +191,16 @@ a {
margin: 0;
}
.hero-band-inverse .eyebrow {
color: #9ca3af;
font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}
.hero-band-inverse .hero-copy p:not(.eyebrow) {
color: #d1d5db;
max-width: 680px;
}
.hero-metrics {
display: grid;
gap: 10px;
@@ -180,6 +208,13 @@ a {
min-width: 320px;
}
.hero-data-grid {
border: 1px solid #374151;
gap: 0;
grid-template-columns: repeat(3, minmax(120px, 1fr));
min-width: 420px;
}
.hero-metric {
background: var(--muted);
border: 1px solid var(--border);
@@ -187,12 +222,31 @@ a {
padding: 12px;
}
.hero-band-inverse .hero-metric {
background: transparent;
border: 0;
border-right: 1px solid #374151;
border-radius: 0;
padding: 18px 20px;
}
.hero-band-inverse .hero-metric:last-child {
border-right: 0;
}
.hero-metric strong {
display: block;
font-size: 18px;
line-height: 1.2;
}
.hero-band-inverse .hero-metric strong {
color: #ffffff;
font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
font-size: 30px;
font-weight: 700;
}
.hero-metric span {
color: var(--muted-foreground);
display: block;
@@ -200,6 +254,53 @@ a {
margin-top: 4px;
}
.hero-band-inverse .hero-metric span {
color: #9ca3af;
}
.task-workspace {
display: grid;
gap: 24px;
margin-top: 28px;
}
.hard-panel {
border-radius: 0;
box-shadow: none;
}
.panel-heading {
padding: 18px 24px;
}
.panel-note {
color: var(--muted-foreground);
font-size: 13px;
}
.scale-hint-panel {
border-top: 1px solid var(--border);
color: var(--muted-foreground);
font-size: 13px;
margin: 20px -20px -20px;
padding: 14px 20px;
}
.data-grid-table {
min-width: 1120px;
}
.data-grid-table thead th {
height: 48px;
padding-left: 16px;
padding-right: 16px;
}
.data-grid-table td {
padding-left: 16px;
padding-right: 16px;
}
.btn {
border-radius: 6px;
font-size: 14px;
@@ -496,6 +597,10 @@ a {
min-width: 0;
width: 100%;
}
.hero-data-grid {
min-width: 0;
}
}
@media (max-width: 768px) {
@@ -508,14 +613,33 @@ a {
padding: 22px;
}
.hero-band-inverse {
margin-left: -14px;
margin-right: -14px;
padding: 28px 22px;
}
.hero-copy h1 {
font-size: 28px;
}
.hero-band-inverse .hero-copy h1 {
font-size: 30px;
}
.hero-metrics {
grid-template-columns: 1fr;
}
.hero-band-inverse .hero-metric {
border-bottom: 1px solid #374151;
border-right: 0;
}
.hero-band-inverse .hero-metric:last-child {
border-bottom: 0;
}
.section-heading,
.page-heading,
.content-item-row {