-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.html
216 lines (194 loc) · 6.39 KB
/
index.html
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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>My Favourite Movie</title>
<!-- Bootstrap CSS -->
<link
rel="stylesheet"
href="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css"
integrity="sha384-ggOyR0iXCbMQv3Xipma34MD+dH/1fQ784/j6cY/iJTQUOhcWr7x9JvoRxT2MZw1T"
crossorigin="anonymous"
/>
<!-- Font Awesome -->
<link
href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0/css/all.min.css"
rel="stylesheet"
/>
<!-- Gets rid of favicon error from the console -->
<link rel="shortcut icon" href="data:image/x-icon;," type="image/x-icon" />
<!-- Custom CSS -->
<link rel="stylesheet" href="assets/styles.css" />
</head>
<body>
<!-- Navbar start -->
<nav
id="nav"
class="navbar navbar-expand-lg navbar-dark navbar-expand text-light text-center"
>
<h1>My Favourite Movie</h1>
</nav>
<!-- Navbar end -->
<!-- Jumbotron start -->
<div class="jumbotron jumbotron-fluid">
<div class="container text-center">
<h2 id="form-heading" class="w-100">Search for a movie</h2>
<form id="search-form" class="form w-100 d-flex justify-content-center">
<div class="form-inline form-group">
<div class="input-group w-100">
<input
class="form-input btn-lg btn-block text-center"
type="text"
id="search-input"
placeholder="Enter movie name"
aria-labelledby="form-heading"
aria-controls="search"
/>
<div class="btn-block">
<button
type="submit"
class="mt-2 btn btn-lg btn-success btn-block w-100"
id="search-button"
aria-label="submit search"
>
Search
</button>
</div>
</div>
</div>
</form>
<div class="d-flex align-items-center justify-content-center">
<button
type="button"
id="show-fav-btn"
class="btn btn-lg btn-block btn-primary w-25"
data-toggle="modal"
data-target="#modal-1"
>
Favourites
</button>
</div>
</div>
</div>
<!-- Jumbotron end -->
<!-- Content start-->
<main>
<div class="container">
<!-- row 1 start -->
<section id="movie-summary" class="row text-white mt-2">
<img id="poster-background" class="mx-auto d-block" src="assets/images/71u1GTrSQRL._AC_SL1216_.jpg" alt="">
<div class="col-md-12">
<div id="movies" class="row no-gutters">
</div>
</div>
</section>
<!-- row 2 start -->
<section class="row bg-white mt-2">
<div class="col-md-12">
<div id="you-tube">
</div>
</div>
</section>
</div>
</main>
<!-- Content end-->
<!-- Footer section start -->
<section id="footer">
<footer class="text-center text-white">
<!--footer banner start -->
<div id="bottom-banner">
<div class="bottom-banner-image">
</div>
</div>
<!-- footer banner end -->
</footer>
</section>
<!-- Footer section end -->
<!-- MODALS start -->
<!-- Favourites modal-->
<div id="modal-1" class="modal fade" tabindex="-1" role="dialog">
<div class="modal-dialog modal-dialog-centered" role="document">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title">Favourites</h5>
</div>
<div class="modal-body">
<div id="favourite">Please add a movie to favourites to see them displayed here</div>
</div>
<div class="modal-footer">
<button
type="button"
class="btn btn-secondary"
data-dismiss="modal"
>
Close
</button>
</div>
</div>
</div>
</div>
<!-- Favourites modal end-->
<!-- Error modal-->
<div id="modal-2" class="modal fade" tabindex="-1" role="dialog">
<div class="modal-dialog" role="document">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title">Error!</h5>
</div>
<div class="modal-body">
<div id="error">Please enter a valid movie name to continue</div>
</div>
<div class="modal-footer">
<button
type="button"
class="btn btn-secondary"
data-dismiss="modal"
>
Close
</button>
</div>
</div>
</div>
</div>
<!-- Error modal end-->
<!-- Main Card modal-->
<div id="modal-3" class="modal fade" tabindex="-1" role="dialog">
<div class="modal-dialog modal-dialog-centered" role="document">
<div class="modal-content">
<div class="modal-body">
<div id="main-card"></div>
</div>
<div class="modal-footer">
<button
type="button"
class="btn btn-secondary"
data-dismiss="modal"
>
Close
</button>
</div>
</div>
</div>
</div>
<!-- Main Card modal end-->
<!--MODALS end -->
<!-- Bootstrap Optional JavaScript -->
<!-- jQuery first, then Popper.js, then Bootstrap JS -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>
<script
src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.7/umd/popper.min.js"
integrity="sha384-UO2eT0CpHqdSJQ6hJty5KVphtPhzWj9WO1clHTMGa3JDZwrnQq4sF86dIHNDz0W1"
crossorigin="anonymous"
></script>
<script
src="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/js/bootstrap.min.js"
integrity="sha384-JjSmVgyd0p3pXB1rRibZUAYoIIy6OrQ6VrjIEaFf/nJGzIxFDsf4x0xIM+B07jRM"
crossorigin="anonymous"
></script>
<!-- custom JavaScript -->
<!--script type="module" src="assets/config.js"></script-->
<script src="assets/script.js"></script>
</body>
</html>