|
|
<!DOCTYPE html>
|
|
|
<html lang="en">
|
|
|
<head>
|
|
|
|
|
|
<meta charset="UTF-8">
|
|
|
|
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
|
|
|
|
<title>Movie Recommender</title>
|
|
|
|
|
|
|
|
|
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.5.2/css/bootstrap.min.css">
|
|
|
|
|
|
<link rel="stylesheet" href="{{ url_for('static', filename='styles.css') }}">
|
|
|
</head>
|
|
|
<body>
|
|
|
|
|
|
|
|
|
<div class="hero-banner">
|
|
|
|
|
|
<h1>Discover Movies You'll Love</h1>
|
|
|
|
|
|
<p>Choose a favorite, and we’ll recommend similar movies!</p>
|
|
|
</div>
|
|
|
|
|
|
|
|
|
<div class="container mt-5">
|
|
|
|
|
|
<form method="POST" class="text-center mb-4">
|
|
|
|
|
|
<select class="form-control" name="movie" required>
|
|
|
|
|
|
<option disabled selected>Select a movie...</option>
|
|
|
|
|
|
{% for movie in movies %}
|
|
|
<option>{{ movie }}</option>
|
|
|
{% endfor %}
|
|
|
</select>
|
|
|
|
|
|
<button type="submit" class="btn btn-primary mt-3">Show Recommendations</button>
|
|
|
</form>
|
|
|
|
|
|
|
|
|
|
|
|
{% if recommended_movie_names %}
|
|
|
<h3 class="text-center">Recommendations for "{{ selected_movie }}"</h3>
|
|
|
<div class="row">
|
|
|
|
|
|
{% for name, poster in zip(recommended_movie_names, recommended_movie_posters) %}
|
|
|
<div class="col-md-3 col-sm-6 mb-3">
|
|
|
|
|
|
<div class="card">
|
|
|
|
|
|
<img src="{{ poster }}" class="card-img-top" alt="{{ name }}">
|
|
|
|
|
|
<div class="card-body text-center">
|
|
|
<h5 class="card-title">{{ name }}</h5>
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
{% endfor %}
|
|
|
</div>
|
|
|
{% endif %}
|
|
|
</div>
|
|
|
|
|
|
|
|
|
<footer class="footer">
|
|
|
|
|
|
<p>© 2023 Movie Recommender</p>
|
|
|
</footer>
|
|
|
</body>
|
|
|
</html>
|
|
|
|