diff options
| author | seth <[email protected]> | 2024-04-08 22:58:22 -0400 |
|---|---|---|
| committer | seth <[email protected]> | 2024-04-08 22:58:22 -0400 |
| commit | d8a20e3032a0ce97b6ddc29840e135eda9b3f43c (patch) | |
| tree | 40a4059020ff4c9d500d4022f5b84e7bf2c46fd4 /src/components/NavBar.astro | |
| parent | 33a4eb02a8307be1bcfaaabbe3adaf25d0088d3b (diff) | |
refactor; use plain css
Diffstat (limited to 'src/components/NavBar.astro')
| -rw-r--r-- | src/components/NavBar.astro | 20 |
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 /> |
