Skip to content

Commit cf69db5

Browse files
committed
Fix
1 parent 77113ad commit cf69db5

2 files changed

Lines changed: 16 additions & 7 deletions

File tree

src/components/TopBar.module.css

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,13 @@
2929
opacity: 0.7;
3030
}
3131

32+
.left {
33+
display: flex;
34+
align-items: center;
35+
gap: 3rem;
36+
/* Space between Brand and Nav */
37+
}
38+
3239
.nav {
3340
display: flex;
3441
gap: 2rem;

src/components/TopBar.tsx

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -46,14 +46,16 @@ export default function TopBar() {
4646
return (
4747
<GlassContainer className={styles.topBar}>
4848
<div className={styles.container}>
49-
<div className={styles.brand}>
50-
<Link href="/" className={styles.brandLink}>SOL1 Archive</Link>
51-
</div>
49+
<div className={styles.left}>
50+
<div className={styles.brand}>
51+
<Link href="/" className={styles.brandLink}>SOL1 Archive</Link>
52+
</div>
5253

53-
<nav className={styles.nav}>
54-
<Link href="/" className={`${styles.navLink} ${pathname === '/' ? styles.active : ''}`}>Home</Link>
55-
<Link href="/posts" className={`${styles.navLink} ${pathname.startsWith('/posts') ? styles.active : ''}`}>Posts</Link>
56-
</nav>
54+
<nav className={styles.nav}>
55+
<Link href="/" className={`${styles.navLink} ${pathname === '/' ? styles.active : ''}`}>Home</Link>
56+
<Link href="/posts" className={`${styles.navLink} ${pathname.startsWith('/posts') ? styles.active : ''}`}>Posts</Link>
57+
</nav>
58+
</div>
5759

5860
<div className={styles.right}>
5961
<a href="https://github.com/SOL1archive" target="_blank" rel="noopener noreferrer" className={styles.iconLink} aria-label="GitHub">

0 commit comments

Comments
 (0)