aboutsummaryrefslogtreecommitdiff
path: root/web/src/components/NavLink.astro
diff options
context:
space:
mode:
Diffstat (limited to 'web/src/components/NavLink.astro')
-rw-r--r--web/src/components/NavLink.astro11
1 files changed, 11 insertions, 0 deletions
diff --git a/web/src/components/NavLink.astro b/web/src/components/NavLink.astro
new file mode 100644
index 0000000..dce002b
--- /dev/null
+++ b/web/src/components/NavLink.astro
@@ -0,0 +1,11 @@
+---
+type Props = {
+ link: string
+};
+---
+
+<li class="px-0.5">
+ <a class="px-1 text-blue-500 hover:text-blue-400 transition ease-in-out duration-300" href={Astro.props.link}>
+ <slot></slot>
+ </a>
+</li>