diff options
Diffstat (limited to 'src/components/Nav.astro')
| -rw-r--r-- | src/components/Nav.astro | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/src/components/Nav.astro b/src/components/Nav.astro new file mode 100644 index 0000000..f122ee7 --- /dev/null +++ b/src/components/Nav.astro @@ -0,0 +1,18 @@ +--- +const navLinks = [ + { name: "Home", url: "/" }, + { name: "About Me", url: "/about-me" }, + { name: "Contact", url: "/contact" }, + { name: "GitHub", url: "https://github.com/getchoo" }, +]; +--- + +<nav> + { + navLinks.map(({ name, url }) => ( + <div> + <a href={url}>{name}</a> + </div> + )) + } +</nav> |
