-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
0b857a7
commit 602a953
Showing
4 changed files
with
47 additions
and
91 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,37 @@ | ||
import './MovieCard.scss'; | ||
|
||
export const MovieCard = () => <>Put the card here</>; | ||
export const MovieCard = ({ movie }) => ( | ||
// <> | ||
<div className="card" data-cy="Movie"> | ||
<div className="card-image"> | ||
<figure className="image is-4by3"> | ||
<img data-cy="MovieImage" src={movie.imgUrl} alt="Film logo" /> | ||
</figure> | ||
</div> | ||
|
||
<div className="card-content"> | ||
<div className="media"> | ||
<div className="media-left"> | ||
<figure className="image is-48x48"> | ||
<img src="images/imdb-logo.jpeg" alt="imdb" /> | ||
</figure> | ||
</div> | ||
|
||
<div className="media-content"> | ||
<p className="title is-8" data-cy="MovieTitle"> | ||
{movie.title} | ||
</p> | ||
</div> | ||
</div> | ||
|
||
<div className="content"> | ||
<p data-cy="MovieDescription">{movie.description}</p> | ||
|
||
<a href={movie.imdbUrl} data-cy="MovieLink"> | ||
IMDB | ||
</a> | ||
</div> | ||
</div> | ||
</div> | ||
// </> | ||
); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,10 @@ | ||
import './MovieList.scss'; | ||
import { MovieCard } from '../MovieCard/MovieCard'; | ||
|
||
export const MovieList = () => <>Put the list here</>; | ||
export const MovieList = ({ movies }) => ( | ||
<div className="movies"> | ||
{movies.map(movie => ( | ||
<MovieCard key={movie.imdbId} movie={movie} /> | ||
))} | ||
</div> | ||
); |