feat: Add open in podcast-app button

Signed-off-by: Tim Hårek Andreassen <tim@harek.no>
This commit is contained in:
Tim Hårek Andreassen 2024-04-12 10:58:56 +02:00
parent 33dbdfefcc
commit 800f8cb32d
No known key found for this signature in database
GPG Key ID: E59C7734F0E10EB5
1 changed files with 12 additions and 4 deletions

View File

@ -10,10 +10,18 @@ export default function SeriesCard(props: { serie: SearchResult; origin: string
<h3 className="text-xl font-semibold">{props.serie.title}</h3>
<p className="text-md">{props.serie.description}</p>
<img src={image.uri} width={image.width} alt="" />
<code className="font-mono bg-black text-white select-all p-2">{feedUrl.toString()}</code>
<CopyButton text={feedUrl.toString()}>
Kopier URL
</CopyButton>
<a
className="block w-max bg-blue-100 text-black p-2 border-black border"
href={`podcast:${feedUrl.toString()}`}
>
📻 Åpne i din podkast-app
</a>
<div className="">
<code className="font-mono bg-black text-white select-all p-2">{feedUrl.toString()}</code>
<CopyButton text={feedUrl.toString()}>
Kopier URL
</CopyButton>
</div>
</div>
</div>
);