mirror of
https://github.com/kogakure/website-astro-stefanimhoff.de.git
synced 2026-02-04 04:25:28 +00:00
24 lines
511 B
Plaintext
24 lines
511 B
Plaintext
---
|
|
import { Sprite } from 'astro-icon';
|
|
|
|
import { TextLink } from '../components';
|
|
|
|
export interface Props {
|
|
href: string;
|
|
text: string;
|
|
}
|
|
|
|
const { href, text, ...props } = Astro.props;
|
|
---
|
|
|
|
<TextLink class="group" href={href} {...props}>
|
|
{text}
|
|
<span class="more-icon relative inline-flex mis-[0.2em] block-start-[0.2em]">
|
|
<Sprite
|
|
name="ri:download-line"
|
|
aria-hidden="true"
|
|
class="h-icon w-icon group-hover:translate-y-1 transition-transform duration-500 ease-in-out"
|
|
/>
|
|
</span>
|
|
</TextLink>
|