查看精选项目
阅读开发日志
diff --git a/src/styles/global.css b/src/styles/global.css
index 49f42fb..98538b5 100644
--- a/src/styles/global.css
+++ b/src/styles/global.css
@@ -216,6 +216,37 @@ main {
color: var(--muted);
}
+.hero-notice {
+ margin: 0 0 1.25rem;
+ padding: 1rem 1.1rem;
+ border: 1px solid rgba(245, 158, 11, 0.35);
+ border-radius: 1rem;
+ background: linear-gradient(135deg, rgba(245, 158, 11, 0.14), rgba(249, 115, 22, 0.08));
+ box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35);
+}
+
+.hero-notice__title {
+ margin: 0 0 0.5rem;
+ font-family: 'Archivo', sans-serif;
+ font-size: 0.98rem;
+ font-weight: 700;
+ color: #9a3412;
+}
+
+.hero-notice__body {
+ margin: 0;
+ color: #7c2d12;
+ line-height: 1.75;
+}
+
+.hero-notice code {
+ padding: 0.12rem 0.4rem;
+ border-radius: 0.45rem;
+ background: rgba(255, 255, 255, 0.72);
+ font-family: 'Fira Code', monospace;
+ font-size: 0.86em;
+}
+
.hero-actions,
.inline-links,
.tag-list,
@@ -524,7 +555,7 @@ main {
display: grid;
grid-template-columns: minmax(0, 1.3fr) minmax(18rem, 0.85fr);
gap: 1.25rem;
- align-items: start;
+ align-items: stretch;
}
.heatmap {
@@ -535,11 +566,19 @@ main {
}
.heatmap-cell {
+ position: relative;
aspect-ratio: 1;
border-radius: 0.5rem;
border: 1px solid rgba(148, 163, 184, 0.22);
}
+.heatmap-cell--today {
+ border-color: rgba(255, 255, 255, 0.96);
+ box-shadow:
+ 0 0 0 2px rgba(59, 130, 246, 0.5),
+ 0 0 0 4px rgba(255, 255, 255, 0.12);
+}
+
.heatmap-legend {
display: flex;
align-items: center;
@@ -548,6 +587,20 @@ main {
font-size: 0.8rem;
}
+.heatmap-note {
+ margin: 0.75rem 0 0;
+ color: rgba(226, 232, 240, 0.86);
+ font-size: 0.84rem;
+ line-height: 1.7;
+}
+
+.heatmap-note__today {
+ display: inline-block;
+ margin-left: 0.4rem;
+ color: #dbeafe;
+ font-weight: 600;
+}
+
.legend-scale {
display: inline-flex;
gap: 0.35rem;
@@ -562,12 +615,16 @@ main {
.activity-list {
display: grid;
+ grid-template-rows: repeat(4, minmax(0, 1fr));
gap: 0.75rem;
min-width: 0;
}
.activity-item {
+ display: flex;
+ flex-direction: column;
min-width: 0;
+ min-height: 7.5rem;
padding: 0.95rem 1rem;
border: 1px solid rgba(148, 163, 184, 0.22);
border-radius: 1rem;
@@ -581,11 +638,16 @@ main {
}
.activity-panel .activity-copy {
+ display: -webkit-box;
+ -webkit-box-orient: vertical;
+ -webkit-line-clamp: 2;
+ overflow: hidden;
overflow-wrap: anywhere;
}
.activity-item__meta {
- margin-top: 0.55rem;
+ margin-top: auto;
+ padding-top: 0.55rem;
}
.corner-gallery {
@@ -706,8 +768,10 @@ main {
}
.card-grid,
- .status-panel__grid {
+ .status-panel__grid,
+ .activity-list {
grid-template-columns: 1fr;
+ grid-template-rows: none;
}
.section-heading,