-
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 8ed89c2
Showing
8 changed files
with
4,185 additions
and
2,761 deletions.
There are no files selected for viewing
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,44 @@ | ||
import './MovieCard.scss'; | ||
|
||
export const MovieCard = () => <>Put the card here</>; | ||
export const MovieCard = ({ movies }) => ( | ||
<div className="card" data-cy="Movie"> | ||
<div className="card-image"> | ||
<figure className="image is-4by3"> | ||
<img | ||
data-cy="MovieImage" | ||
src={movies.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"> | ||
{movies.title} | ||
</p> | ||
</div> | ||
</div> | ||
|
||
<div className="content"> | ||
<p data-cy="MovieDescription"> | ||
{movies.description} | ||
</p> | ||
|
||
<a | ||
href={movies.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,4 @@ | ||
// 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 './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 movies={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,6 @@ | ||
// add styles here | ||
.movies { | ||
display: grid; | ||
grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); | ||
gap: 20px; | ||
} |