mirror of
https://github.com/kogakure/website-astro-stefanimhoff.de.git
synced 2026-02-03 20:15:27 +00:00
refactor: migrate Preact components to Astro
This commit is contained in:
21
src/components/TextLink.astro
Normal file
21
src/components/TextLink.astro
Normal file
@@ -0,0 +1,21 @@
|
||||
---
|
||||
// Cspell:words astro classnames shibui
|
||||
import cx from 'classnames';
|
||||
import Link from './Link.astro';
|
||||
|
||||
interface Props {
|
||||
class?: string;
|
||||
[key: string]: any;
|
||||
}
|
||||
|
||||
const { class: className, ...props } = Astro.props;
|
||||
|
||||
const classes = cx(
|
||||
'inline font-semibold text-shibui-950 underline decoration-shibui-900/20 decoration-4 underline-offset-auto no-common-ligatures hover:!decoration-accent focus:!decoration-accent dark:text-shibui-200/[0.87] dark:decoration-shibui-100/20',
|
||||
className
|
||||
);
|
||||
---
|
||||
|
||||
<Link class={classes} {...props}>
|
||||
<slot />
|
||||
</Link>
|
||||
Reference in New Issue
Block a user