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;
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"}>
<Wrap if={shouldWrapWithLink} with={Link} wrapperProps={{ to: href }}>
<img src={imageURL} alt={title} />
@@ -38,7 +38,7 @@ export function PodcastInfoCard({
<div>
<strong className={"text-sm"}>Description:</strong>
<div
className={"text-sm italic"}
className={"break-words text-sm italic"}
dangerouslySetInnerHTML={{ __html: description }}
></div>
</div>

View File

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

View File

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

View File

@@ -14,13 +14,14 @@ export function Episode() {
);
return (
<div>
<div className={"h-fit p-4 pb-6 shadow-md"}>
<h2 className={"text-2xl font-bold tracking-tight"}>{episode?.title}</h2>
<div
className={"prose"}
className={"prose mt-2 max-w-full border-b pb-4 leading-snug"}
dangerouslySetInnerHTML={{ __html: episode?.description ?? "" }}
></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>
</div>

View File

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