mirror of
https://github.com/kogakure/website-astro-stefanimhoff.de.git
synced 2026-02-03 20:15:27 +00:00
feat: add AppleTV flag
This commit is contained in:
26
src/components/AppleTVFlag.astro
Normal file
26
src/components/AppleTVFlag.astro
Normal file
@@ -0,0 +1,26 @@
|
||||
---
|
||||
// Cspell:words astro etflix
|
||||
import Link from './Link.astro';
|
||||
|
||||
export interface Props {
|
||||
class?: string;
|
||||
id: string;
|
||||
[key: string]: any;
|
||||
}
|
||||
|
||||
const { class: className, id, ...props } = Astro.props;
|
||||
---
|
||||
|
||||
<Link
|
||||
class:list={[
|
||||
'rounded-1 border-1 border-solid border-gray-600 bg-black font-mono text-[0.7em] text-white decoration-0 pli-[0.3em] pbe-0 pbs-[0.1em] print:border-gray-500 print:bg-transparent',
|
||||
className,
|
||||
]}
|
||||
data-umami-event={`Apple TV+: ${id}`}
|
||||
href={`https://tv.apple.com/show/foundation/umc.cmc.${id}`}
|
||||
title="Apple TV+"
|
||||
{...props}
|
||||
><span class="hidden" aria-hidden="true">[</span><span class="hidden" aria-hidden="true"
|
||||
>etflix]</span
|
||||
></Link
|
||||
>
|
||||
Reference in New Issue
Block a user