aboutsummaryrefslogtreecommitdiff
path: root/apps/website/src/components/base/Link.astro
diff options
context:
space:
mode:
Diffstat (limited to 'apps/website/src/components/base/Link.astro')
-rw-r--r--apps/website/src/components/base/Link.astro17
1 files changed, 17 insertions, 0 deletions
diff --git a/apps/website/src/components/base/Link.astro b/apps/website/src/components/base/Link.astro
new file mode 100644
index 0000000..dfb6425
--- /dev/null
+++ b/apps/website/src/components/base/Link.astro
@@ -0,0 +1,17 @@
+---
+import type { HTMLAttributes } from 'astro/types';
+
+interface Props extends HTMLAttributes<'a'> {
+
+}
+
+const props = Astro.props;
+const className = [
+ 'text-current hover:text-blue-500 underline decoration-[transparent] hover:decoration-blue-500 transition-colors',
+ props.class,
+].join(' ');
+---
+
+<a class={className} {...props}>
+ <slot />
+</a>