mirror of
https://github.com/ershisan99/podcaster.git
synced 2025-12-17 05:09:27 +00:00
feat: add podcast info card styles
This commit is contained in:
@@ -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>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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}
|
||||||
|
|||||||
Reference in New Issue
Block a user