-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
45b9728
commit 3ceace6
Showing
9 changed files
with
14,325 additions
and
7,551 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
Large diffs are not rendered by default.
Oops, something went wrong.
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
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,35 @@ | ||
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 +1,3 @@ | ||
// add styles here | ||
.card-image img { | ||
object-fit: contain; | ||
} |
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 { MovieCard } from '../MovieCard/MovieCard'; | ||
import './MovieList.scss'; | ||
|
||
export const MovieList = () => <>Put the list here</>; | ||
export const MovieList = ({ movies }) => ( | ||
<div className="movies"> | ||
{movies.map(movie => ( | ||
<MovieCard movie={movie} key={movie.imdbId} /> | ||
))} | ||
</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 +1,5 @@ | ||
// add styles here | ||
.movies { | ||
display: grid; | ||
grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); | ||
gap: 20px; | ||
} |