Files
website-astro-stefanimhoff.de/src/components/NetflixFlag.astro
2024-09-11 17:02:01 +02:00

25 lines
676 B
Plaintext

---
// Cspell:words astro etflix classnames
import cx from 'classnames';
import Link from './Link.astro';
export interface Props {
class?: string;
id: string;
[key: string]: any;
}
const { class: className, id, ...props } = Astro.props;
const classes = cx(
'rounded-1 border-1 border-solid border-red-600 bg-red-600 font-mono text-[0.7em] text-white decoration-0 pli-[0.3em] pbe-0 pbs-[0.1em] print:bg-transparent print:border-gray-500',
className
);
---
<Link class={classes} href={`https://www.netflix.com/title/${id}`} title="Netflix" {...props}>
<span class="hidden" aria-hidden="true">[</span>
N
<span class="hidden" aria-hidden="true">etflix]</span>
</Link>