Skip to content

Commit

Permalink
Merge branch 'main' into main
Browse files Browse the repository at this point in the history
  • Loading branch information
samyakmaitre authored Oct 7, 2024
2 parents 0fa9c5e + d5f2cfe commit c9dd723
Show file tree
Hide file tree
Showing 2 changed files with 102 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/assets/styles/Header.css
Original file line number Diff line number Diff line change
Expand Up @@ -128,4 +128,4 @@
.location {
width: 100%;
}
}

101 changes: 101 additions & 0 deletions src/components/MovieList.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,101 @@
import React from 'react';
import Movie from './Movie';
import '../assets/styles/MovieList.css';

import poster1 from '../assets/images/poster1.jpg';
import poster2 from '../assets/images/poster2.jpg';
import poster3 from '../assets/images/poster3.jpg';
import poster4 from '../assets/images/poster4.jpg';
import poster5 from '../assets/images/poster5.jpg';

function MovieList() {
const movies = [
{
poster: poster1,
title: 'Hindustani 2',
rating: 5.7,
votes: '3.9K',
genre: 'Action/Drama/Thriller'
},
{
poster: poster2,
title: 'Kalki 2898 AD',
rating: 8.7,
votes: '630.2K',
genre: 'Action/Sci-Fi/Thriller'
},
{
poster: poster3,
title: 'Deadpool & Wolverine',
rating: 8.9,
votes: '268.9K',
genre: 'Action/Adventure/Comedy'
},
{
poster: poster4,
title: 'Sarfira',
rating: 8.9,
votes: '7.5K',
genre: 'Biography/Drama'
},
{
poster: poster5,
title: 'Kill',
rating: 9.0,
votes: '24.7K',
genre: 'Action/Thriller'
},
{
poster: poster1,
title: 'Hindustani 2',
rating: 5.7,
votes: '3.9K',
genre: 'Action/Drama/Thriller'
},
{
poster: poster2,
title: 'Kalki 2898 AD',
rating: 8.7,
votes: '630.2K',
genre: 'Action/Sci-Fi/Thriller'
},
{
poster: poster3,
title: 'Deadpool & Wolverine',
rating: 8.9,
votes: '268.9K',
genre: 'Action/Adventure/Comedy'
},
{
poster: poster4,
title: 'Sarfira',
rating: 8.9,
votes: '7.5K',
genre: 'Biography/Drama'
},
{
poster: poster5,
title: 'Kill',
rating: 9.0,
votes: '24.7K',
genre: 'Action/Thriller'
}
];

return (
<div className="movie-list">
{movies.map((movie, index) => (
<Movie
key={index}
poster={movie.poster}
title={movie.title}
rating={movie.rating}
votes={movie.votes}
genre={movie.genre}
/>
))}
</div>
);
}

export default MovieList;

0 comments on commit c9dd723

Please sign in to comment.