Skip to content

Commit

Permalink
create test markup for Movie
Browse files Browse the repository at this point in the history
  • Loading branch information
konstantin-it-lysenko committed Dec 18, 2023
1 parent 02882e4 commit a7cd22d
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions src/components/Movie/Movie.jsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
const Movie = ({
movie: {
adult,
backdrop_path,
genres,
original_title,
overview,
poster_path,
release_date,
runtime,
},
}) => {
return (
<div background={backdrop_path}>
<div>
<h2>{original_title}</h2>
<div>
<span>{release_date}</span>
<span>{runtime}</span>
<span>{adult}</span>
</div>
<p>{overview}</p>
</div>
<img src={`https://image.tmdb.org/t/p/w200${poster_path}`} alt="" />
</div>
);
};

export default Movie;

0 comments on commit a7cd22d

Please sign in to comment.