Skip to content

Commit 3373a21

Browse files
committed
Refine changelog page layout and release entries
- Reduce spacing and typography across release detail pages - Replace changelog cards with streamlined bordered entries and inline navigation arrows
1 parent a225da6 commit 3373a21

2 files changed

Lines changed: 48 additions & 68 deletions

File tree

apps/marketing/src/pages/changelog/[version].astro

Lines changed: 15 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ const structuredData = {
8888

8989
<style>
9090
.release-detail {
91-
padding: 64px 0 112px;
91+
padding: 48px 0 96px;
9292
}
9393

9494
.release-wrap {
@@ -108,7 +108,7 @@ const structuredData = {
108108
}
109109

110110
.release-header {
111-
padding: 56px 0 64px;
111+
padding: 32px 0 36px;
112112
border-bottom: 1px solid var(--border);
113113
}
114114

@@ -126,8 +126,8 @@ const structuredData = {
126126

127127
.release-header h1 {
128128
max-width: 780px;
129-
margin: 20px 0;
130-
font-size: clamp(38px, 6vw, 64px);
129+
margin: 14px 0 12px;
130+
font-size: clamp(32px, 5vw, 48px);
131131
text-wrap: balance;
132132
}
133133

@@ -141,14 +141,13 @@ const structuredData = {
141141

142142
.highlights {
143143
display: grid;
144-
padding: 28px 0;
145144
}
146145

147146
.highlight {
148147
display: grid;
149148
grid-template-columns: 48px minmax(0, 1fr);
150149
gap: 18px;
151-
padding: 32px 0;
150+
padding: 22px 0;
152151
border-bottom: 1px solid var(--border);
153152
}
154153

@@ -160,29 +159,25 @@ const structuredData = {
160159
}
161160

162161
.highlight h2 {
163-
margin-bottom: 10px;
164-
font-size: 25px;
162+
margin-bottom: 6px;
163+
font-size: 22px;
165164
letter-spacing: -0.02em;
166165
}
167166

168167
.highlight p {
169168
max-width: 68ch;
170169
color: var(--fg-muted);
171-
line-height: 1.7;
170+
line-height: 1.65;
172171
}
173172

174173
.also-improved {
175-
margin-top: 28px;
176-
padding: 30px;
177-
border: 1px solid var(--border);
178-
border-radius: var(--radius-lg);
179-
background: var(--surface);
174+
padding: 24px 0 0;
180175
}
181176

182177
.also-improved ul {
183178
display: grid;
184-
gap: 12px;
185-
margin-top: 20px;
179+
gap: 8px;
180+
margin-top: 14px;
186181
padding-left: 20px;
187182
color: var(--fg-muted);
188183
line-height: 1.6;
@@ -197,8 +192,7 @@ const structuredData = {
197192
flex-wrap: wrap;
198193
align-items: center;
199194
gap: 20px 28px;
200-
margin-top: 48px;
201-
padding-top: 32px;
195+
margin-top: 36px;
202196
}
203197

204198
.release-actions a {
@@ -225,21 +219,17 @@ const structuredData = {
225219

226220
@media (max-width: 620px) {
227221
.release-detail {
228-
padding: 44px 0 88px;
222+
padding: 36px 0 80px;
229223
}
230224

231225
.release-header {
232-
padding: 42px 0 48px;
226+
padding: 26px 0 30px;
233227
}
234228

235229
.highlight {
236230
grid-template-columns: 34px minmax(0, 1fr);
237231
gap: 10px;
238-
padding: 28px 0;
239-
}
240-
241-
.also-improved {
242-
padding: 24px 22px;
232+
padding: 20px 0;
243233
}
244234
}
245235
</style>

apps/marketing/src/pages/changelog/index.astro

Lines changed: 33 additions & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -30,17 +30,18 @@ const entries = sortChangelogEntries(await getCollection("changelog"));
3030
<div class="release-list">
3131
{
3232
entries.map((entry) => (
33-
<article class="release-card">
33+
<article class="release-entry">
3434
<a href={changelogEntryPath(entry)}>
3535
<div class="release-meta">
3636
<span>v{entry.data.version}</span>
3737
<time datetime={entry.data.date.toISOString()}>
3838
{formatReleaseDate(entry.data.date)}
3939
</time>
4040
</div>
41-
<h2>{entry.data.title}</h2>
41+
<h2>
42+
{entry.data.title} <span class="release-arrow" aria-hidden="true">→</span>
43+
</h2>
4244
<p>{entry.data.summary}</p>
43-
<span class="release-link">Read release notes <span aria-hidden="true">→</span></span>
4445
</a>
4546
</article>
4647
))
@@ -52,7 +53,7 @@ const entries = sortChangelogEntries(await getCollection("changelog"));
5253

5354
<style>
5455
.changelog-index {
55-
padding: 88px 0 112px;
56+
padding: 72px 0 96px;
5657
}
5758

5859
.changelog-wrap {
@@ -61,7 +62,7 @@ const entries = sortChangelogEntries(await getCollection("changelog"));
6162

6263
.changelog-header {
6364
max-width: 680px;
64-
margin-bottom: 56px;
65+
margin-bottom: 36px;
6566
}
6667

6768
.changelog-header h1 {
@@ -76,34 +77,23 @@ const entries = sortChangelogEntries(await getCollection("changelog"));
7677
text-wrap: pretty;
7778
}
7879

79-
.release-list {
80-
display: grid;
81-
gap: 16px;
82-
}
83-
84-
.release-card {
85-
border: 1px solid var(--border);
86-
border-radius: var(--radius-lg);
87-
background: var(--surface);
88-
transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
80+
.release-entry {
81+
border-top: 1px solid var(--border);
8982
}
9083

91-
.release-card:hover {
92-
border-color: var(--border-strong);
93-
background: var(--surface-hover);
94-
transform: translateY(-1px);
84+
.release-entry:last-child {
85+
border-bottom: 1px solid var(--border);
9586
}
9687

97-
.release-card a {
88+
.release-entry a {
9889
display: block;
99-
padding: 28px 30px;
90+
padding: 24px 0;
10091
}
10192

10293
.release-meta {
10394
display: flex;
10495
flex-wrap: wrap;
105-
justify-content: space-between;
106-
gap: 12px;
96+
gap: 16px;
10797
color: var(--fg-dim);
10898
font-family: var(--font-mono);
10999
font-size: 12px;
@@ -113,39 +103,39 @@ const entries = sortChangelogEntries(await getCollection("changelog"));
113103
color: var(--accent-bright);
114104
}
115105

116-
.release-card h2 {
117-
margin: 18px 0 10px;
118-
font-size: clamp(23px, 3vw, 30px);
119-
line-height: 1.15;
120-
letter-spacing: -0.025em;
106+
.release-entry h2 {
107+
margin: 10px 0 6px;
108+
font-size: clamp(20px, 2.6vw, 24px);
109+
line-height: 1.2;
110+
letter-spacing: -0.02em;
121111
}
122112

123-
.release-card p {
124-
max-width: 68ch;
125-
color: var(--fg-muted);
126-
line-height: 1.65;
113+
.release-arrow {
114+
color: var(--fg-dim);
115+
transition: color 0.2s ease, transform 0.2s ease;
116+
}
117+
118+
.release-entry a:hover .release-arrow {
119+
color: var(--accent-bright);
127120
}
128121

129-
.release-link {
130-
display: inline-flex;
131-
gap: 6px;
132-
margin-top: 22px;
133-
color: var(--fg);
134-
font-size: 14px;
135-
font-weight: 600;
122+
.release-entry p {
123+
max-width: 68ch;
124+
color: var(--fg-muted);
125+
line-height: 1.6;
136126
}
137127

138128
@media (max-width: 620px) {
139129
.changelog-index {
140-
padding: 64px 0 88px;
130+
padding: 56px 0 80px;
141131
}
142132

143133
.changelog-header {
144-
margin-bottom: 38px;
134+
margin-bottom: 28px;
145135
}
146136

147-
.release-card a {
148-
padding: 24px 22px;
137+
.release-entry a {
138+
padding: 20px 0;
149139
}
150140
}
151141
</style>

0 commit comments

Comments
 (0)