-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathapp.html
More file actions
192 lines (161 loc) · 7.9 KB
/
app.html
File metadata and controls
192 lines (161 loc) · 7.9 KB
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title> MovieFinder: By Tom Farrell</title>
<!-- Bootstrap CSS -->
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.2/dist/css/bootstrap.min.css" rel="stylesheet"
integrity="sha384-T3c6CoIi6uLrA9TneNEoa7RxnatzjcDSCmG1MXxSR1GAsXEV/Dwwykc2MPK8M2HN" crossorigin="anonymous">
<!-- Bootstrap Icons -->
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap-icons@1.11.1/font/bootstrap-icons.css">
<!-- Devicnons -->
<link rel="stylesheet" href="https://cdn.jsdelivr.net/gh/devicons/devicon@v2.15.1/devicon.min.css">
<!-- Custom CSS -->
<link rel="stylesheet" href="/css/site.css" />
</head>
<body onload="displayMovies()"> <!--displays movie on load-->
<nav class="navbar navbar-expand-lg navbar-dark">
<div class="container-fluid">
<a class="navbar-brand" href="#">
<img src="/img/Logo_Only.svg" height="50" />
  Film Finder
</a>
<button class="navbar-toggler" type="button" data-bs-toggle="collapse"
data-bs-target="#navbarSupportedContent" aria-controls="navbarSupportedContent" aria-expanded="false"
aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse" id="navbarSupportedContent">
<ul class="navbar-nav me-auto mb-2 mb-lg-0">
<li class="nav-item">
<a class="nav-link" href="index.html">Home</a>
</li>
<li class="nav-item">
<a class="nav-link active" aria-current="page" href="/app.html">The App</a>
</li>
<li class="nav-item">
<a class="nav-link" href="/code.html">The Code</a>
</li>
<li class="nav-item">
<!-- CHANGE ME TO THE REPO LINK -->
<a class="nav-link" href="https://github.com/TJF71/GuardianMovieList">
The Repo
</a>
</li>
<li class="nav-item">
<!-- CHANGE ME TO THE AOBOUT LINK -->
<a class="nav-link" href="https://tomfarrell-portfolio.netlify.app/">
Portfolio
</a>
</li>
<li class="nav-item">
<!-- CHANGE ME TO THE DEPLOYED BLOG LINK -->
<!-- NOTE: it would be a great idea to write a blog post
about each challenge and link it here -->
<a class="nav-link" href="https://bits-and-bytes.up.railway.app/">
Blog
</a>
</li>
</ul>
</div>
</div>
</nav>
<main class="container-xl py-3">
<h1 class="text-center my-3 display-3">
Popular Movies
</h1>
<!-- <button class="btn btn-primary mb-5" onclick="displayMovies()"> get Movies </button> -->
<!--dont need button anymmore-->
<div class="row row-cols-1 row-cols-sm-2 row-cols-lg-3 row-cols-xl-4 g3 justify-content-center" id="movie-list">
<!-- Movie cards go here -->
</div>
</main>
<template id="movie-card-template">
<div class="col py-3">
<div class="card h-100 border-3">
<img src="https://image.tmdb.org/t/p/w500/b0Ej6fnXAP8fK75hlyi2jKqdhHz.jpg" class="card-img-top"
alt="..." class='card-img-top' alt="Movie Poster">
<div class="card-body">
<h5>The Equalizer 3</h5>
<p class="card-text">Robert McCall finds himself at home in Southern Italy but he discovers
his friends are under the control of local crime bosses. As events turn deadly, McCall knows
what he has to do: become his friends' protector by taking on the mafia.
</p>
</div>
<div class="card-footer text-end">
<button class="btn btn-primary" data-bs-toggle="modal" data-bs-target="#movieModal"
onclick="showMovieDetails(this)">
More Info
</button>
</div>
</div>
</div>
</template>
<!-- Modal -->'
<div class="modal fade" id="movieModal" tabindex="-1" aria-labelledby="movieModalLabel" aria-hidden="true">
<div class="modal-dialog modal-dialog-centered modal-lg">
<div class="modal-content">
<div class="modal-header">
<h1 class="modal-title fs-5" id="movieModalLabel">Movie Details </h1>
<button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button>
</div>
<div class="modal-boday">
<div class="row">
<div class="col">
<img src="#" class="poster img-fluid" alt="..." height="400">
</div>
<div class="col">
<p id="movieTagline"></p>
<p id="movieOverview"></p>
<p id="movieBudget"></p>
<p id="movieRuntime"></p>
<p id="movieReleaseDate"></p>
<p id="movieGenres"></p>
</div>
</div>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-secondary" data-bs-dismiss="modal">Close</button>
<!-- <button type="button" class="btn btn-primary">Go To Site</button> -->
<a href="" class="btn btn-primary" , id="movieHomepageBtn" target="_blank"> Go To Site</a>
</div>
</div>
</div>
</div>
<footer class="py-3 container-fluid">
<div class="row align-items-center row-cols-1 row-cols-lg-3 gy-2">
<div classs="container">
<div class="col text-center text-lg-start">
© 2023 Tom Farrell
</div>
</div>
<div class="col text-center">
<img src="/img/Logo_Only.svg" height="50" class="myLogo"/>
</div>
<div class="col text-center text-lg-end">
<a href="mailto:tjf7101@gmail.com" target="_blank" class="text-decoration-none">
<i class="bi bi-envelope p-2"></i>
</a>
<a href="https://www.linkedin.com/in/thomas-j-farrell-jr-75195a94"> <i class="bi bi-linkedin"></i></a>
<a href="https://github.com/TJF71/GuardianMovieList"> <i class="bi bi-github"></i></a>
<!-- <a href="#"> <i class="bi bi-youtube"></i></a>
<a href="#"> <i class="bi bi-twitter"></i></a> -->
</div>
</div>
</footer>
<!--Bootstrap JS -->
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.2/dist/js/bootstrap.bundle.min.js"
integrity="sha384-C6RzsynM9kWDrMNeT87bh95OGNyZPhcTNXj1NW7RuBCsyN/o0jlpcV8Qyq46cDfL"
crossorigin="anonymous"></script>
<!-- Sweet Alert -->
<script src="https://cdn.jsdelivr.net/npm/sweetalert2@11"></script>
<script src="/js/site.js"></script>
<script>
// get the button on the page and assign it to variable
let button = document.getElementById('btnSubmit');
// tell the button to run the displayMessage function when clicked
button.addEventListener('click', displayMessage);
</script>
</body>
</html>