-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex-code-snippet.txt
59 lines (51 loc) · 2.47 KB
/
index-code-snippet.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
{% extends 'bootstrap/base.html' %}
{% block styles %}
{{ super() }}
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Nunito+Sans:300,400,700">
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Poppins:300,400,700">
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Poppins:300,400,700">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.14.0/css/all.min.css"
integrity="sha512-1PKOgIY59xJ8Co8+NE6FZ+LOAZKjy+KY8iq0G4B3CyeY6wYHN3yt9PW0XpSriVlkMXe40PTKnXrLnZ9+fkDaog==" crossorigin="anonymous" />
<link rel="stylesheet" href="{{ url_for('static', filename='css/styles.css') }}">
{% endblock %}
{% block title %}My Top 10 Movies{% endblock %}
{% block content %}
<div class="container">
<h1 class="heading">My Top 10 Movies</h1>
<p class="description">These are my all time favourite movies.</p>
{% if all_movies|length > 0: %}
{% for movie in all_movies: %}
<div class="card" >
<div class="front" style="background-image: url('{{ movie.img_url }}');">
<p class="large">{{ movie.id }}</p>
</div>
<div class="back">
<div>
<div class="title">{{ movie.title }} <span class="release_date">({{ movie.year }})</span></div>
<div class="rating">
<label>{{ movie.rating }}</label>
<i class="fas fa-star star"></i>
</div>
<p class="review">{{ movie.review }}</p>
<p class="overview">{{ movie.description }}</p>
<a href="#" class="button">Update</a>
<a href="#" class="button delete-button">Delete</a>
</div>
</div>
</div>
{% endfor %}
{% else: %}
<div class="card" >
<div class="front" style="background-image: url('https://www.shortlist.com/media/images/2019/05/the-30-coolest-alternative-movie-posters-ever-2-1556670563-K61a-column-width-inline.jpg');">
<p class="large">No Movies In The Library Yet</p>
</div>
<div class="back">
<p class="large">No Movies In The Library Yet</p>
</div>
</div>
{% endif %}
</div>
<div class="container text-center add">
<a href="{{ url_for('add') }}" class="button">Add Movie</a>
</div>
{% endblock %}