diff options
| author | seth <[email protected]> | 2024-10-09 10:59:13 -0400 |
|---|---|---|
| committer | GitHub <[email protected]> | 2024-10-09 10:59:13 -0400 |
| commit | d17bca56238e9ca326d60e58230d0d354f23bfe8 (patch) | |
| tree | 12aee4c37a1490914e6307ce1b0023be2df93105 /src/components/Nav.astro | |
| parent | 7d6495399d5e1ba429a339de1c3a00f121e89305 (diff) | |
back to astro for hopefully the last time (#146)
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> |
