feat: enhance actor details page with MovieGallery and Carousel components; implement movie conversion helper for improved movie data handling

This commit is contained in:
Norbert Maciaszek
2025-08-18 01:04:59 +02:00
parent cf7ec070fd
commit 3c286e705c
8 changed files with 73 additions and 37 deletions

View File

@@ -16,7 +16,7 @@ type Props = Movie & {
};
export const MovieCard: FC<Props> = ({
layout = "minimal",
layout = "aurora",
showDayCounter = true,
simpleToggle = false,
...movie
@@ -73,6 +73,8 @@ export const MovieCard: FC<Props> = ({
simpleToggle,
buttonClass,
iconSize,
favorite: alreadyInStore?.favorite || movie.favorite,
seen: alreadyInStore?.seen || movie.seen,
};
switch (layout) {

View File

@@ -65,7 +65,7 @@ export const AuroraLayout: FC<AuroraLayoutProps> = ({
>
<Link href={`/film/${id}`}>
<img
className="w-full h-full object-cover transition-all duration-700 group-hover:scale-110 group-hover:brightness-110"
className="w-full h-full object-cover transition-all duration-700 group-hover:scale-110 group-hover:brightness-110 bg-gradient-to-b from-purple-600/50 to-emerald-600"
src={`http://image.tmdb.org/t/p/w342${poster_path}`}
alt={title}
/>