diff --git a/app/(pages)/dashboard/page.tsx b/app/(pages)/dashboard/page.tsx index 69fff29..b152b73 100644 --- a/app/(pages)/dashboard/page.tsx +++ b/app/(pages)/dashboard/page.tsx @@ -20,6 +20,7 @@ interface ContinueWatchingItem { id: string; title: string; posterPath: string | null; + backdropPath: string | null; type: string; }; nextEpisode: { @@ -27,6 +28,8 @@ interface ContinueWatchingItem { seasonNumber: number; episodeNumber: number; name: string | null; + stillPath: string | null; + overview: string | null; } | null; totalEpisodes: number; watchedEpisodes: number; @@ -267,9 +270,11 @@ function FeedSection({ } function ContinueWatchingCard({ item }: { item: ContinueWatchingItem }) { - const posterUrl = item.title.posterPath - ? `https://image.tmdb.org/t/p/w300${item.title.posterPath}` - : null; + const stillUrl = item.nextEpisode?.stillPath + ? `https://image.tmdb.org/t/p/w500${item.nextEpisode.stillPath}` + : item.title.backdropPath + ? `https://image.tmdb.org/t/p/w500${item.title.backdropPath}` + : null; const progress = item.totalEpisodes > 0 ? (item.watchedEpisodes / item.totalEpisodes) * 100 @@ -278,46 +283,62 @@ function ContinueWatchingCard({ item }: { item: ContinueWatchingItem }) { return ( -
- {item.title.title} -
+ + {/* Episode label overlay */} {item.nextEpisode && ( -- S{item.nextEpisode.seasonNumber} E{item.nextEpisode.episodeNumber} -
++ + Up next +
++ + S{item.nextEpisode.seasonNumber} E + {item.nextEpisode.episodeNumber} + {" "} + {item.nextEpisode.name} +
+- - Up next -
{item.title.title}
++ {item.watchedEpisodes}/{item.totalEpisodes} episodes +
++ {title} +
+