generated from Code-Institute-Org/gitpod-full-template
-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.html
214 lines (201 loc) · 9.79 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
<!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>Derby Duel</title>
<!-- Bootstrap CSS -->
<link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" rel="stylesheet"
integrity="sha384-GLhlTQ8iRABdZLl6O3oVMWSktQOp6b7In1Zl3/Jr59b6EGGoI1aFkw7cmDA6j6gD" crossorigin="anonymous">
<!-- Favicon -->
<link rel="apple-touch-icon" sizes="180x180" href="assets/favicon/apple-touch-icon.png">
<link rel="icon" type="image/png" sizes="32x32" href="assets/favicon/favicon-32x32.png">
<link rel="icon" type="image/png" sizes="16x16" href="assets/favicon/favicon-16x16.png">
<!-- Main Stylesheet -->
<link href="assets/css/styles.css" rel="stylesheet">
</head>
<body class="home-page">
<!-- HEADER -->
<header>
<!-- Fixed offcanvas bootstrap navbar within hamburger menu -->
<nav class="navbar fixed-top">
<div class="container-fluid justify-content-end">
<button class="navbar-toggler bg-color-3" type="button" aria-label="open navbar" aria-labelledby="offcanvasNavbarLabel" data-bs-toggle="offcanvas"
data-bs-target="#offcanvasNavbar" aria-controls="offcanvasNavbar">
<span class="navbar-toggler-icon"></span>
</button>
<div class="offcanvas offcanvas-end" tabindex="-1" id="offcanvasNavbar"
aria-labelledby="offcanvasNavbarLabel">
<div class="offcanvas-header">
<h5 class="offcanvas-title" id="offcanvasNavbarLabel">Menu</h5>
<button type="button" class="btn-close" data-bs-dismiss="offcanvas" aria-label="Close"></button>
</div>
<div class="offcanvas-body">
<ul class="navbar-nav justify-content-end flex-grow-1 pe-3">
<li class="nav-item">
<a class="nav-link active" aria-current="page" href="index.html">Home</a>
</li>
<li class="nav-item">
<a class="nav-link" href="#about-section">About</a>
</li>
<li class="nav-item">
<a class="nav-link" href="#news-section">Derby News</a>
</li>
<li class="nav-item">
<a class="nav-link" href="#form-section">Contact</a>
</li>
</ul>
</div>
</div>
</div>
</nav>
</header>
<!-- MAIN SECTION -->
<!-- contains title, team logos and button to go to quiz -->
<section id="main-section">
<div class="container-fluid">
<div class="row logo-row text-center align-items-center mb-5">
<div class="col-3 col-md-2"></div>
<div class="col-3">
<!-- Arsenal logo - Permission obtained from Arsenal Football Club -->
<img class="img-fluid logo" src="assets/images/arsenal-logo.webp" alt="Arsenal football team logo"
id="arsenal-logo">
</div>
<div class="d-none d-md-block col-md-2"></div>
<div class="col-3">
<!-- Tottenham Hotspurs logo - Permission obtained from Tottenham Hotspurs Football Club -->
<img class="img-fluid logo" src="assets/images/spurs-logo.webp" alt="Tottenham Hotspurs team logo"
id="spurs-logo">
</div>
<div class="col-3 col-md-2"></div>
</div>
<div class="row text-center mb-3">
<div class="txt-color-1">
<h1>Derby Duel</h1>
<p>So you think you know everything there is <br>to know about the North London Derby?</p>
</div>
</div>
<div class="row text-center mb-5">
<div class="col">
<!-- Button to redirect to quiz page -->
<a href="game.html" class="btn btn-primary txt-color-2" role="button">Take Quiz</a>
</div>
</div>
</div>
</section>
<!-- ABOUT SECTION -->
<!-- Game play explained-->
<section id="about-section">
<div class="container-fluid bg-color-1 txt-color-2 pt-5 pb-5">
<div class="row text-center">
<div class="col">
<h2>About Derby Duel</h2>
<p>Derby Duel is a trivia game to test your knowledge on the infamous North London Derby</p>
<ul>
<li>Answer correctly, goal scored! = <strong>1 point</strong></li>
<li>Win a match = <strong>3 points</strong></li>
<li>Draw a match = <strong>1 point</strong></li>
</ul>
<br>
<ul>
<li>Results after 3 matches:
<ul>
<li><strong>3 points or less</strong> - relegated!</li>
<li><strong>4 - 9 points</strong> - Premiership champions!</li>
<li><strong>10 - 18 points</strong> - Europa League winners!</li>
<li><strong>19 + points</strong> - Champions League winners!</li>
</ul>
</li>
</ul>
</div>
</div>
</div>
</section>
<!-- NEWS SECTION -->
<!-- News 67 API inserted here via javascript -->
<section id="news-section">
<div class="container-fluid">
<div class="row text-center pt-5 pb-5">
<div class="col">
<h2>Derby Team News</h2>
<div class="row" id="news-container">
</div>
</div>
</div>
</div>
</section>
<!-- FORM SECTION -->
<section id="form-section">
<div class="container-fluid bg-color-1 txt-color-2 pt-5 pb-5">
<div class="row">
<div class="col text-center">
<h2>Get in Touch</h2>
<p>We love to hear from our players.</p>
<p>Compliments or critique, we would love to know.</p>
</div>
</div>
<div class="row">
<!-- Form centered using div's either side on medium and large screens -->
<div class="d-none d-md-block col-md-4"></div>
<div class="col-12 col-md-4 mt-3">
<!-- EmailJS used to forward form inputs onto site owner -->
<form onsubmit="return sendMail(this);">
<div class="mb-3">
<label for="name" class="form-label">Name:</label>
<input type="text" class="form-control" id="name" aria-describedby="name" required>
</div>
<div class="mb-3">
<label for="email" class="form-label">Email:</label>
<input type="email" class="form-control" id="email" required>
</div>
<div class="mb-3">
<label for="message" class="form-label">Message:</label>
<textarea class="form-control" id="message" rows="3" required></textarea>
</div>
<button type="submit" class="btn btn-primary">Submit</button>
</form>
<!-- Success message displayed via javascript in sendEmail.js if successful -->
<div class="col-12 mt-3 bg-color-3 rounded hide" id="success-element">
<p class="txt-color-3 p-2">Your message has been sent.</p>
</div>
<!-- Failed message displayed via javascript in sendEmail.js if unsuccessful -->
<div class="col-12 mt-3 bg-color-3 rounded hide" id="failed-element">
<p class="txt-color-3 p-2">There is a problem with your message being sent. Try again later</p>
</div>
</div>
<div class="d-none d-md-block col-md-4"></div>
</div>
</div>
</section>
<!-- FOOTER SECTION -->
<footer>
<div class="container-fluid">
<div class="row pt-5 pb-5 txt-color-1">
<div class="col-12 col-md-6 mb-2">
<p>© Abby Humphreys 2023</p>
</div>
<!-- To comply with usage terms for team logos, this site is for educational purposes only -->
<div class="col-12 col-md-6 text-md-end">
<p>Site created for educational purposes only</p>
</div>
</div>
</div>
</footer>
<!-- Bootstrap Script Tag -->
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js"
integrity="sha384-w76AqPfDkMBDXo30jS1Sgez6pr3x5MlQ1ZAGC+nuZB+EYdgRZgiwxhTBTkF7CXvN" crossorigin="anonymous">
</script>
<!-- Email JS Script Tag -->
<script src="https://cdn.jsdelivr.net/npm/@emailjs/browser@3/dist/email.min.js">
</script>
<script>
(function(){
emailjs.init("lOit3QM5Exl4CLX_f"); //Public Key
})();
</script>
<!-- game.js Script Tag -->
<script defer src="./assets/js/index.js"></script>
<script src="assets/js/sendEmail.js"></script>
</body>
</html>