summaryrefslogtreecommitdiff
path: root/src/components/NavBar.astro
diff options
context:
space:
mode:
Diffstat (limited to 'src/components/NavBar.astro')
-rw-r--r--src/components/NavBar.astro20
1 files changed, 20 insertions, 0 deletions
diff --git a/src/components/NavBar.astro b/src/components/NavBar.astro
new file mode 100644
index 0000000..b7c0216
--- /dev/null
+++ b/src/components/NavBar.astro
@@ -0,0 +1,20 @@
+---
+interface NavLink {
+ name: string;
+ url: string;
+}
+
+const links: NavLink[] = [
+ { name: "home", url: "/" },
+ {
+ name: "github",
+ url: "https://github.com/getchoo",
+ },
+];
+---
+
+<div id="nav_links">
+ {links.map(({ name, url }) => <a href={url}>{name}</a>)}
+</div>
+
+<hr />