feat: add podcast info card styles

This commit is contained in:
2024-04-21 00:25:14 +02:00
parent 9218e20427
commit fd41dc54bc
2 changed files with 21 additions and 11 deletions

View File

@@ -23,15 +23,25 @@ export function PodcastInfoCard({
const shouldWrapWithLink = !!episodeId; const shouldWrapWithLink = !!episodeId;
return ( return (
<div> <aside className={"h-fit w-1/3 px-2 py-6 shadow-md"}>
<div className={"border-b px-10 pb-4"}>
<Wrap if={shouldWrapWithLink} with={Link} wrapperProps={{ to: href }}> <Wrap if={shouldWrapWithLink} with={Link} wrapperProps={{ to: href }}>
<img src={imageURL} alt={title} /> <img src={imageURL} alt={title} />
</Wrap> </Wrap>
<Wrap if={shouldWrapWithLink} with={Link} wrapperProps={{ to: href }}>
<h1>{title}</h1>
<h2>{author}</h2>
</Wrap>
<p dangerouslySetInnerHTML={{ __html: description }}></p>
</div> </div>
<div className={"border-b px-2 py-4"}>
<Wrap if={shouldWrapWithLink} with={Link} wrapperProps={{ to: href }}>
<strong className={"block"}>{title}</strong>
<em className={"text-sm"}>by {author}</em>
</Wrap>
</div>
<div>
<strong className={"text-sm"}>Description:</strong>
<div
className={"text-sm italic"}
dangerouslySetInnerHTML={{ __html: description }}
></div>
</div>
</aside>
); );
} }

View File

@@ -18,7 +18,7 @@ export function Podcast() {
} }
return ( return (
<div> <div className={"flex gap-10"}>
<PodcastInfoCard <PodcastInfoCard
author={podcast.author} author={podcast.author}
title={podcast.title} title={podcast.title}