Skip to content

Commit b7be65a

Browse files
committed
feat: add conditional dashboard and login links in header
1 parent 9b5c03e commit b7be65a

File tree

1 file changed

+18
-1
lines changed

1 file changed

+18
-1
lines changed

src/routes/+page.svelte

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,12 @@
6666
<div class="header-container">
6767
<a href="/" class="header-logo">OpenBoot</a>
6868
<div class="header-right">
69+
{#if $auth.user}
70+
<a href="/dashboard" class="header-link">Dashboard</a>
71+
{:else}
72+
<a href="/login" class="header-link">Sign in</a>
73+
{/if}
74+
<a href="/docs" class="header-link">Docs</a>
6975
<ThemeToggle />
7076
</div>
7177
</div>
@@ -320,7 +326,18 @@
320326
.header-right {
321327
display: flex;
322328
align-items: center;
323-
gap: 12px;
329+
gap: 16px;
330+
}
331+
332+
.header-link {
333+
font-size: 0.85rem;
334+
font-weight: 500;
335+
color: var(--text-secondary);
336+
transition: color 0.2s;
337+
}
338+
339+
.header-link:hover {
340+
color: var(--text-primary);
324341
}
325342
326343
/* ── Main ──────────────────────────────────────────── */

0 commit comments

Comments
 (0)