Skip to content

Commit cc6322e

Browse files
committed
latest label styling
1 parent 4aac438 commit cc6322e

File tree

1 file changed

+19
-21
lines changed

1 file changed

+19
-21
lines changed

src/components/GithubReleases/GithubReleases.astro

Lines changed: 19 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -63,16 +63,15 @@ function getPlatformType(assetName: string): PlatformType {
6363
---
6464

6565
<div class="github-releases">
66-
<h3>Latest Stable Release</h3>
6766
{latestRelease && (
6867
<div class="release-container">
6968
<div class="release-header">
70-
<a href={latestRelease.html_url} target="_blank" rel="noopener noreferrer" class="version-link">
71-
<span class="version">{latestRelease.tag_name}</span>
72-
<span class="date">
69+
<div class="release-version-info">
70+
Latest stable release: {latestRelease.tag_name.replace(/^v/, "")} | View changelog →
71+
<a href={latestRelease.html_url} target="_blank" rel="noopener noreferrer">
7372
{new Date(latestRelease.published_at).toLocaleDateString()}
74-
</span>
75-
</a>
73+
</a>
74+
</div>
7675
</div>
7776
{latestRelease.assets && latestRelease.assets.length > 0 && (
7877
<div class="assets-container">
@@ -123,22 +122,21 @@ function getPlatformType(assetName: string): PlatformType {
123122
margin-bottom: 0.5rem;
124123
}
125124

126-
.version-link {
127-
display: flex;
128-
justify-content: space-between;
129-
align-items: center;
130-
text-decoration: none;
131-
color: var(--theme-text);
132-
}
133-
134-
.version {
135-
font-weight: bold;
136-
color: var(--theme-primary);
137-
}
125+
.release-version-info {
126+
@include typography(pricebox-list);
127+
margin-bottom: 20px;
128+
line-height: 1.2;
129+
font-size: 16px;
138130

139-
.date {
140-
font-size: 0.9em;
141-
color: var(--theme-text-light);
131+
a {
132+
text-decoration: underline;
133+
color: inherit;
134+
white-space: nowrap;
135+
transition: color 0.2s;
136+
}
137+
a:hover {
138+
color: #0c8ce0;
139+
}
142140
}
143141

144142
.assets-container {

0 commit comments

Comments
 (0)