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