summaryrefslogtreecommitdiff
path: root/src/lib/components/Link.svelte
diff options
context:
space:
mode:
authortoufic ar <contact@toufy.me>2026-07-07 18:29:43 +0300
committertoufic ar <contact@toufy.me>2026-07-07 18:29:43 +0300
commitf7da804e40b990e5f1ee2214a2e2e4984d704f16 (patch)
treeafec975241b8feaf40c72c924217a6a724461c51 /src/lib/components/Link.svelte
downloadwebsite-f7da804e40b990e5f1ee2214a2e2e4984d704f16.tar.gz
website-f7da804e40b990e5f1ee2214a2e2e4984d704f16.zip
initial commit
Diffstat (limited to 'src/lib/components/Link.svelte')
-rw-r--r--src/lib/components/Link.svelte10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/lib/components/Link.svelte b/src/lib/components/Link.svelte
new file mode 100644
index 0000000..97f976f
--- /dev/null
+++ b/src/lib/components/Link.svelte
@@ -0,0 +1,10 @@
+<script lang="ts">
+ const { href, children }: { href: string; children: any } = $props();
+</script>
+
+<a
+ class="text-accent hover:bg-accent hover:text-accent-content
+ selection:bg-accent! selection:text-accent-content!"
+ {href}
+ target="_blank">{@render children()}</a
+>