feat: add podcast episode styles

This commit is contained in:
2024-04-21 01:24:42 +02:00
parent bea8cc2bb9
commit ebf5733774
5 changed files with 14 additions and 8 deletions

View File

@@ -23,7 +23,7 @@ export function PodcastInfoCard({
const shouldWrapWithLink = !!episodeId; const shouldWrapWithLink = !!episodeId;
return ( return (
<aside className={"h-fit w-1/3 shrink-0 px-2 py-6 shadow-md"}> <aside className={"h-fit w-1/3 shrink-0 grow-0 px-2 py-6 shadow-md"}>
<div className={"border-b px-10 pb-4"}> <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} />
@@ -38,7 +38,7 @@ export function PodcastInfoCard({
<div> <div>
<strong className={"text-sm"}>Description:</strong> <strong className={"text-sm"}>Description:</strong>
<div <div
className={"text-sm italic"} className={"break-words text-sm italic"}
dangerouslySetInnerHTML={{ __html: description }} dangerouslySetInnerHTML={{ __html: description }}
></div> ></div>
</div> </div>

View File

@@ -2,11 +2,12 @@
width: 24px; width: 24px;
height: 24px; height: 24px;
border: 3px solid #fff; border: 3px solid #fff;
border-bottom-color: #ff3d00;
border-radius: 50%; border-radius: 50%;
display: inline-block; display: inline-block;
box-sizing: border-box; box-sizing: border-box;
animation: rotation 1s linear infinite; animation: rotation 1s linear infinite;
@apply border-gray-200 border-b-sky-600;
} }
@keyframes rotation { @keyframes rotation {

View File

@@ -1,3 +1,7 @@
@tailwind base; @tailwind base;
@tailwind components; @tailwind components;
@tailwind utilities; @tailwind utilities;
:root {
scrollbar-gutter: stable;
}

View File

@@ -14,13 +14,14 @@ export function Episode() {
); );
return ( return (
<div> <div className={"h-fit p-4 pb-6 shadow-md"}>
<h2 className={"text-2xl font-bold tracking-tight"}>{episode?.title}</h2>
<div <div
className={"prose"} className={"prose mt-2 max-w-full border-b pb-4 leading-snug"}
dangerouslySetInnerHTML={{ __html: episode?.description ?? "" }} dangerouslySetInnerHTML={{ __html: episode?.description ?? "" }}
></div> />
<div> <div>
<audio controls src={episode?.audioUrl}> <audio controls src={episode?.audioUrl} className={"mt-4 w-full"}>
Audio is not supported by your browser Audio is not supported by your browser
</audio> </audio>
</div> </div>

View File

@@ -44,5 +44,5 @@
## Other ## Other
- [x] Close all todos - [x] Close all todos
- [ ] Add styles - [x] Add styles
- [ ] Refactor to use better names - [ ] Refactor to use better names