mirror of
https://github.com/apricote/ein-pfeil-am-rechten-fleck.de.git
synced 2026-02-09 03:07:00 +00:00
feat: add download buttons
This commit is contained in:
parent
6bf33e9664
commit
917a96411b
4 changed files with 55 additions and 32 deletions
11
src/lib/download-button.svelte
Normal file
11
src/lib/download-button.svelte
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
<script lang="ts">
|
||||
export let href: string;
|
||||
</script>
|
||||
|
||||
<a
|
||||
class="p-4 m-4 border rounded-md border-red hover:border-yellow-400 hover:bg-yellow-800 transition-colors duration-500 ease-in-out"
|
||||
target="_blank"
|
||||
{href}
|
||||
>
|
||||
<slot />
|
||||
</a>
|
||||
Loading…
Add table
Add a link
Reference in a new issue