mirror of
https://gitlab.com/foxixus/neomovies.git
synced 2025-10-28 01:48:50 +05:00
v2.1 release
This commit is contained in:
@@ -40,9 +40,16 @@ const Card = styled(Link)`
|
|||||||
`;
|
`;
|
||||||
|
|
||||||
const Poster = styled.div`
|
const Poster = styled.div`
|
||||||
|
position: relative;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
aspect-ratio: 2/3;
|
aspect-ratio: 2/3;
|
||||||
object-fit: cover;
|
background: rgba(0, 0, 0, 0.2);
|
||||||
|
border-radius: 0.5rem;
|
||||||
|
overflow: hidden;
|
||||||
|
|
||||||
|
img {
|
||||||
|
object-fit: cover;
|
||||||
|
}
|
||||||
`;
|
`;
|
||||||
|
|
||||||
const Info = styled.div`
|
const Info = styled.div`
|
||||||
@@ -146,11 +153,12 @@ export default function FavoritesPage() {
|
|||||||
>
|
>
|
||||||
<Poster>
|
<Poster>
|
||||||
<Image
|
<Image
|
||||||
src={favorite.posterPath ? getImageUrl(favorite.posterPath) : '/placeholder.jpg'}
|
src={favorite.posterPath ? getImageUrl(favorite.posterPath) : '/images/placeholder.jpg'}
|
||||||
alt={favorite.title}
|
alt={favorite.title}
|
||||||
width={200}
|
fill
|
||||||
height={300}
|
sizes="(max-width: 768px) 100vw, (max-width: 1200px) 50vw, 33vw"
|
||||||
className="rounded-lg"
|
className="object-cover"
|
||||||
|
unoptimized
|
||||||
/>
|
/>
|
||||||
</Poster>
|
</Poster>
|
||||||
<Info>
|
<Info>
|
||||||
|
|||||||
Reference in New Issue
Block a user