Skip to content

Commit 494b993

Browse files
committed
chore: add link to version number in hero
1 parent d06e710 commit 494b993

File tree

2 files changed

+11
-5
lines changed

2 files changed

+11
-5
lines changed

site/components/Hero.jsx

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,9 +47,11 @@ const Hero = () => {
4747
<div className="text-center lg:text-right">
4848
<div className={styles.version}>
4949
{version && (
50-
<abbr title={new Date(versionDate).toLocaleDateString('en-US', { year: 'numeric', month: 'short', day: 'numeric' })}>
51-
v{version}
52-
</abbr>
50+
<Link plain href="https://www.npmjs.com/package/lambda-log">
51+
<abbr title={new Date(versionDate).toLocaleDateString('en-US', { year: 'numeric', month: 'short', day: 'numeric' })}>
52+
v{version}
53+
</abbr>
54+
</Link>
5355
)}
5456
</div>
5557
<Link plain prefetch={false} href="/docs/latest" className={clsx(styles.btn, styles.docs)}>

site/components/Hero.module.css

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,13 +30,17 @@
3030
}
3131

3232
.version {
33-
@apply h-8 text-base text-indigo-100 font-semibold mb-2;
33+
@apply h-8 text-base mb-2;
3434

3535
&:before {
36-
@apply inline-block mr-4 text-sm text-indigo-300;
36+
@apply inline-block mr-4 text-sm text-indigo-300 font-semibold;
3737
content: 'Latest Version';
3838
}
3939

40+
& a {
41+
@apply text-indigo-100 font-semibold;
42+
}
43+
4044
& abbr {
4145
text-underline-offset: 5px;
4246
text-decoration-thickness: 1px;

0 commit comments

Comments
 (0)