Skip to content

Commit 6852155

Browse files
feat(components): add Header component
1 parent 0fe35d9 commit 6852155

File tree

2 files changed

+17
-1
lines changed

2 files changed

+17
-1
lines changed

src/components/common/Navbar.astro

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
<header>
2+
<nav>
3+
<ul>
4+
<li>
5+
<a href="#">Home</a>
6+
<a href="#">Home</a>
7+
<a href="#">Home</a>
8+
<a href="#">Home</a>
9+
<a href="#">Home</a>
10+
<a href="#">Home</a>
11+
<a href="#">Home</a>
12+
</li>
13+
</ul>
14+
</nav>
15+
</header>

src/pages/index.astro

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
---
22
import Layout from '../layouts/Layout.astro';
3+
import Navbar from '../components/common/Navbar.astro';
34
---
45

56
<Layout>
6-
<h1>NitroVim</h1>
7+
<Navbar />
78
</Layout>

0 commit comments

Comments
 (0)