-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
179 lines (169 loc) · 8.93 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8"/>
<meta content="width=device-width, initial-scale=1" name="viewport"/>
<title>Movies Application!</title>
<link crossorigin="anonymous" href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css"
integrity="sha384-T3c6CoIi6uLrA9TneNEoa7RxnatzjcDSCmG1MXxSR1GAsXEV/Dwwykc2MPK8M2HN" rel="stylesheet"/>
<link href="https://cdn.jsdelivr.net/npm/[email protected]/font/bootstrap-icons.css" rel="stylesheet"/>
<link href="https://fonts.googleapis.com/css?family=Old+Standard+TT:400i|Rubik" rel="stylesheet"/>
<link href="css/movies-application.css" rel="stylesheet"/>
</head>
<body>
<header>
<div>
<p>Movies</p>
</div>
</header>
<section id="messages">
<div id="liveAlertPlaceholder"></div>
</section>
<main class="container-fluid">
<div class="row">
<div class="col-4">
<button id="add-movie-btn" class="btn mb-2">Add a Movie</button>
<form id="search-movie-form">
<div class="form-control-wrapper">
<label for="search-title" class="form-label">Search for a Movie Title</label>
<input type="text" class="form-control" id="search-title" aria-describedby="title"/>
</div>
<div class="form-control-wrapper">
<select id="search-genre" class="form-select" aria-label="Movie Genre">
<option selected value="">All Genres</option>
<option value="action">Action</option>
<option value="comedy">Comedy</option>
<option value="drama">Drama</option>
<option value="horror">Horror</option>
<option value="scifi">Science Fiction</option>
<option value="romance">Romance</option>
<option value="animation">Animation</option>
<option value="fantasy">Fantasy</option>
<option value="thriller">Thriller</option>
<option value="documentary">Documentary</option>
</select>
</div>
<div class="form-control-wrapper">
<select id="search-rating" class="form-select" aria-label="Movie Rating">
<option value="" selected>All Ratings</option>
<option value="1">☆</option>
<option value="2">☆☆</option>
<option value="3">☆☆☆</option>
<option value="4">☆☆☆☆</option>
<option value="5">☆☆☆☆☆</option>
</select>
</div>
<button type="submit" class="btn custom-btn" id="search-movie">
Search For Movie
</button>
</form>
</div>
<div class="col-8">
<div class="row">
<section class="sort-commands">
<button id="sort-by-title" class="btn btn-primary">
Sort by Title <i class="bi bi-sort-alpha-up"></i>
</button>
<button id="sort-by-genre" class="btn btn-primary">
Sort by Genre <i class="bi bi-film"></i>
</button>
<button id="sort-by-rating" class="btn btn-primary">
Sort by Rating <i class="bi bi-stars"></i>
</button>
</section>
<div class="col p-2">
<section id="rendered-movies" class="row flex-wrap g-2 justify-content-evenly"></section>
</div>
</div>
</div>
</div>
<section>
<!-- Modal for Movie Details -->
<div class="modal fade" id="modal" tabindex="-1">
<div class="modal-dialog">
<div class="modal-content modal-color">
<div class="modal-header">
<h1 class="modal-title" id="modalHead"></h1>
</div>
<div class="modal-body-container">
<div class="modal-body" id="modalBody"></div>
</div>
<button class="btn custom-btn fs-4 m-3" data-bs-dismiss="modal" id="modalClose" type="button">
Close
</button>
</div>
</div>
</div>
</section>
<section>
<!-- Modal for Movie Add / Edit Form -->
<div class="modal fade" id="modal-add-edit" tabindex="-1">
<div class="modal-dialog modal-lg">
<div class="modal-content modal-color">
<div class="modal-body-container">
<div class="modal-body" id="modal-body-add-edit">
<div class="spinner-border d-none" role="status" id="spinner-form"></div>
<div id="modal-messages"></div>
<form id="add-movie-form" class="mt-2">
<input type="hidden" id="movieId" value=""/>
<div class="form-control-wrapper">
<label for="title" class="form-label">Movie Title</label>
<input required type="text" class="form-control" id="title"
aria-describedby="title"/>
</div>
<div class="form-control-wrapper">
<select required id="genre" class="form-select" aria-label="Movie Genre">
<option selected value="">Please Choose a Genre</option>
<option value="action">Action</option>
<option value="comedy">Comedy</option>
<option value="drama">Drama</option>
<option value="horror">Horror</option>
<option value="scifi">Science Fiction</option>
<option value="romance">Romance</option>
<option value="animation">Animation</option>
<option value="fantasy">Fantasy</option>
<option value="thriller">Thriller</option>
<option value="documentary">Documentary</option>
</select>
</div>
<div class="form-control-wrapper">
<select required id="rating" class="form-select" aria-label="Movie Rating">
<option value="" selected>
Choose a movie stars rating
</option>
<option value="1">☆</option>
<option value="2">☆☆</option>
<option value="3">☆☆☆</option>
<option value="4">☆☆☆☆</option>
<option value="5">☆☆☆☆☆</option>
</select>
</div>
<div class="form-control-wrapper">
<label for="movieSummary">Movie Summary</label>
<textarea required class="form-control"
placeholder="Enter the movie summary here..."
id="movieSummary"></textarea>
</div>
<button type="submit" class="btn" id="formButton">
Add Movie
</button>
<button type="submit" class="btn custom-btn" id="plotLookUp">
Autofill Plot
</button>
</form>
</div>
</div>
<br/>
<button class="btn custom-btn m-1 fs-4" data-bs-dismiss="modal" id="modal-close-add-edit" type="button">
Close
</button>
</div>
</div>
</div>
</section>
</main>
<script crossorigin="anonymous" integrity="sha384-C6RzsynM9kWDrMNeT87bh95OGNyZPhcTNXj1NW7RuBCsyN/o0jlpcV8Qyq46cDfL"
src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js"></script>
<script defer type="module" src="js/movies-application.js"></script>
</body>
</html>