Skip to content

Commit 2b6084b

Browse files
committed
feat: add icons to header
1 parent 1dbfe6b commit 2b6084b

3 files changed

Lines changed: 14 additions & 2 deletions

File tree

bun.lockb

393 Bytes
Binary file not shown.

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
"@astrojs/check": "^0.9.4",
1515
"@astrojs/cloudflare": "^12.6.2",
1616
"@astrojs/rss": "^4.0.12",
17+
"@lucide/astro": "^0.536.0",
1718
"astro": "^5.12.8",
1819
"typescript": "^5.9.2"
1920
},

src/components/Header.astro

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,15 @@
11
---
22
import HeaderLink from "./HeaderLink.astro";
3+
4+
import { House, Newspaper } from "@lucide/astro";
35
---
46

57
<header>
68
<nav>
79
<h2><a href="/">devarsh.me</a></h2>
810
<div class="internal-links">
9-
<HeaderLink href="/">Home</HeaderLink>
10-
<HeaderLink href="/blog">Blog</HeaderLink>
11+
<HeaderLink href="/"><House /> Home</HeaderLink>
12+
<HeaderLink href="/blog"><Newspaper />Blog</HeaderLink>
1113
</div>
1214
<div class="social-links">
1315
<a rel="me" href="https://tilde.zone/@neoroll" target="_blank">
@@ -71,6 +73,15 @@ import HeaderLink from "./HeaderLink.astro";
7173
border-bottom-color: var(--accent);
7274
}
7375

76+
.internal-links,
77+
.internal-links a {
78+
display: flex;
79+
justify-content: center;
80+
align-items: center;
81+
height: 100%;
82+
gap: 0.4em;
83+
}
84+
7485
.social-links {
7586
display: flex;
7687
justify-content: center;

0 commit comments

Comments
 (0)