feat: added favorites page

This commit is contained in:
ner committed 2023-08-09 18:43:48 +03:00
1 parent 0cb860d0a0
commit 89e76f5df6
27 files changed
+412 -116

No files matched your search

+3 -5
View File
@@ -2,6 +2,7 @@ import { FC } from 'react';
import { Star } from 'lucide-react';
import Poster from '@/components/Movie/components/Poster';
import Rating from '@/components/Movie/components/Rating';
import Title from '@/components/Movie/components/Title';
interface Props {
@@ -23,12 +24,9 @@ const Card: FC<Props> = ({ movie, className }) => {
<span className='flex justify-end text-lg font-semibold'>{new Date(movie.release_date).getFullYear()}</span>
)}
</div>
<div className='flex w-full justify-end items-center gap-1 mt-[-8px]'>
<Star size={17} />
<span className='text-lg font-semibold'>{movie.vote_average}</span>
</div>
<Rating movie={movie} />
</div>
<div className='flex justify-center relative mt-1'>
<div className='flex justify-center relative mt-1 grow'>
<Poster title={movie.title} width={300} height={450} size={100} poster={movie.poster_path} />
</div>
</div>