Skip to content

Commit da18d15

Browse files
feat(nav): add 'soon' badge to Cloud nav link
1 parent 79b185c commit da18d15

1 file changed

Lines changed: 18 additions & 2 deletions

File tree

src/components/global/SiteHeader.astro

Lines changed: 18 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ const icmHref = getRelativeLocaleUrl(currentLocale, 'icm/')
5454
<a href="/#install" class="nav-link">{t('nav.install', lang)}</a>
5555
<span class="nav-divider" aria-hidden="true"></span>
5656
<a href="/guide/" class="nav-link">{t('ui.nav_docs', lang)}</a>
57-
<a href="/cloud/" class="nav-link nav-link-hide-md">Cloud</a>
57+
<a href="/cloud/" class="nav-link nav-link-hide-md nav-link-cloud">Cloud <span class="nav-badge-soon">soon</span></a>
5858
<span class="nav-divider" aria-hidden="true"></span>
5959
<a href="https://discord.gg/RySmvNF5kF" class="nav-icon-btn nav-icon-btn--discord" target="_blank" rel="noopener" title={t('aria.join_discord', lang)} aria-label={t('aria.join_discord', lang)}>
6060
<IconDiscord size={16} />
@@ -146,7 +146,7 @@ const icmHref = getRelativeLocaleUrl(currentLocale, 'icm/')
146146
<a href="/vs/">{t('nav.tools', lang)}</a>
147147
<a href="/#install">{t('nav.install', lang)}</a>
148148
<a href="/guide/">{t('ui.nav_docs', lang)}</a>
149-
<a href="/cloud/">Cloud</a>
149+
<a href="/cloud/">Cloud <span class="nav-badge-soon">soon</span></a>
150150
</>
151151
) : isVox ? (
152152
<>
@@ -294,6 +294,22 @@ const icmHref = getRelativeLocaleUrl(currentLocale, 'icm/')
294294
.nav-link-vox { color: var(--violet) !important; }
295295
.nav-link-icm { color: #38bdf8 !important; }
296296

297+
.nav-badge-soon {
298+
display: inline-flex;
299+
align-items: center;
300+
padding: 1px 5px;
301+
border-radius: 4px;
302+
background: rgba(0, 229, 153, 0.12);
303+
color: var(--accent);
304+
font-size: 0.62rem;
305+
font-weight: 700;
306+
letter-spacing: 0.04em;
307+
text-transform: uppercase;
308+
vertical-align: middle;
309+
margin-left: 2px;
310+
line-height: 1.4;
311+
}
312+
297313
/* Nav anchor links */
298314
.nav-link {
299315
color: var(--text-muted);

0 commit comments

Comments
 (0)