diff --git a/src/app/[stream]/podcasts/podcastCard.tsx b/src/app/[stream]/podcasts/podcastCard.tsx index 9deb4f9..922579f 100644 --- a/src/app/[stream]/podcasts/podcastCard.tsx +++ b/src/app/[stream]/podcasts/podcastCard.tsx @@ -1,5 +1,6 @@ import Image from 'next/image'; import { PodcastDto } from '../../../common/dtos/podcastDto'; +import { useState } from 'react'; export default function PodcastCard({ imageUrl = "https://placehold.co/400", @@ -9,15 +10,28 @@ export default function PodcastCard({ url, author, }: PodcastDto) { + const [descriptionExpanded, setDescriptionExpanded] = useState(false), + toggleExpand = () => { + setDescriptionExpanded(!descriptionExpanded); + }; + return ( -
+
{title

{title}

-

{description}

+
+ {description} +
+

By: {author}

Uploaded: {uploadDate}

diff --git a/src/app/layout/main.tsx b/src/app/layout/main.tsx index e8204f9..d29de85 100644 --- a/src/app/layout/main.tsx +++ b/src/app/layout/main.tsx @@ -21,6 +21,9 @@ export default function Main({ children }: MainProps) {
{children}
+
) } \ No newline at end of file