Skip to content

Commit

Permalink
done for the night
Browse files Browse the repository at this point in the history
  • Loading branch information
brycecoon committed Dec 7, 2024
1 parent 7f59cbf commit 2331f41
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 12 deletions.
6 changes: 2 additions & 4 deletions src/Components/CollectionMovieCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,16 +17,14 @@ const CollectionMovieCard: FC<CollectionMovieCardProps> = ({ movie }) => {

return (
<div
className="max-w-sm w-full rounded-lg overflow-hidden shadow-lg transform transition duration-300 hover:scale-105 hover:shadow-xl cursor-pointer mb-4"
className="relative max-w-sm w-full rounded-lg overflow-hidden shadow-lg transform transition duration-300 hover:scale-105 hover:shadow-xl cursor-pointer mb-4"
onClick={() => navigate(`/movieDetails/${movie.id}`)}
>
<div className="relative w-full">
<img
src={`${imageBaseUrl}/${movie.poster_path}`}
alt={movie.title}
className="w-full h-auto object-cover"
className="w-full h-auto object-cover md:min-h-80"
/>
</div>
</div>
);
};
Expand Down
17 changes: 9 additions & 8 deletions src/Components/MovieList.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -48,12 +48,12 @@ const MovieList: FC<MovieListProps> = ({ list }) => {

return (
<div className="max-w-7xl mx-auto p-6 space-y-6">
<div className="grid grid-cols-1 md:grid-cols-3 lg:grid-cols-5 gap-6">
<div className="sm:px-24 grid grid-cols-1 md:grid-cols-3 lg:grid-cols-5 gap-6">
{MovieList?.map((movie) => {
const displayMovie = transformedMovie(movie);
return (
<div
className="relative flex flex-col items-end space-y-4 rounded-lg"
className="relative flex flex-col items-center space-y-4 rounded-lg"
key={movie.id || `movie-${movie.id}`}
>
<CollectionMovieCard movie={displayMovie} />
Expand All @@ -66,12 +66,13 @@ const MovieList: FC<MovieListProps> = ({ list }) => {
</div>
);
})}{" "}
<div
className="max-w-sm w-full rounded-lg shadow-lg transform transition duration-300 hover:scale-105 hover:shadow-2xl cursor-pointer mb-4 "
onClick={() => navigate(`/allMovies`)}
>
<div className="relative w-full h-full bg-gray-400 opacity-30 bg-opacity-90 flex items-center justify-center rounded-lg overflow-hidden border-4 border-slate-800">
<img src={plusSign} className="text-slate-800 w-24 h-24" />
{/* add Movie Card */}
<div className="" onClick={() => navigate(`/allMovies`)}>
<div
className="sm:max-h-16 md:max-w-sm shadow-lg transform transition duration-300 hover:scale-105 hover:shadow-xl cursor-pointer mb-4 relative w-full bg-gray-400 opacity-30 bg-opacity-90 flex items-center justify-center rounded-lg overflow-hidden border-4 border-slate-800 md:min-h-80"
onClick={() => navigate(`/allMovies`)}
>
<img src={plusSign} className="text-slate-800 w-24 h-24 " />
</div>
</div>
</div>
Expand Down

0 comments on commit 2331f41

Please sign in to comment.