mirror of
https://github.com/kogakure/website-astro-stefanimhoff.de.git
synced 2026-02-04 04:25:28 +00:00
35 lines
750 B
TypeScript
35 lines
750 B
TypeScript
import cx from 'classnames';
|
|
|
|
import type { FunctionalComponent } from 'preact';
|
|
|
|
import { Link } from '.';
|
|
|
|
interface Props {
|
|
class?: string;
|
|
id: string;
|
|
}
|
|
|
|
export const NetflixFlag: FunctionalComponent<Props> = ({ class: className, id, ...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
|
|
);
|
|
|
|
return (
|
|
<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>
|
|
);
|
|
};
|