This is a Next.js project bootstrapped with create-next-app
.
For styling, we use Tailwindcss and Preline components. You are welcome to use any other UI framework to get Tasks done. For Icons, we use https://lucide.dev/guide/packages/lucide-react. Again you are welcome to use a raw svg (or any other package.)
First, run the development server:
npm i
npm run dev
Open http://localhost:3000 with your browser to see the result.
- Rotten Tomatos movies (provider rt) are not showing up on the front page. Eg: Breaking Bad should show up under "Crime" genre, but its not.
Differences between RT (not working) and Imdb (working):
- Data might have different structure compared to IMDB data (e.g. field names).
- RT data doesn't have a poster, assume the first image as the poster.
- Genre List is not sorted.
- Show a fallback image when image fails to load. (There is a poster without an image)
- Favorite feature.
- [Backend] Expose functionality to favorite a movie. (keep favorites in memory)
- [Frontend] Show "star" icon to enable favorite.
- note: You can assume that the favoriting is a global feature. no need to worry about user authentication.
- Make the front page look pretty.
- Get caraousel working. https://preline.co/docs/carousel.html
- Make Plot show up on hover. (extra points: after 500ms delay)
- Make thumbnails switch from time to time.
- You are welcome to make changes to the font / padding / margins if you think they are needed.
- Next.js Documentation - learn about Next.js features and API.
- Tailwindcss Documentation - learn tailwindcss to quickly improve css styling.
- Preline documenation - learn preline components