-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
458 lines (439 loc) · 20.9 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
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
<!doctype html>
<html lang="en">
<!--
***************************
* Please read documention *
* This is from a tutorial *
* Please check readme.md *
***************************
-->
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Bootstrap_FirstBuild</title>
<!-- Required scripts -->
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js" integrity="sha384-YvpcrYf0tY3lHB60NNkmXc5s9fDVZLESaAA55NDzOxhy9GkcIdslK1eN7N6jIeHz" crossorigin="anonymous"></script>
<link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-QWTKZyjpPEjISv5WaRU9OFeRpok6YctnYmDr5pNlyT2bRjXh0JMhjY6hW+ALEwIH" crossorigin="anonymous">
<!-- Icon import -->
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected]/font/bootstrap-icons.css">
<!-- local css import-->
<link rel="stylesheet" href="/style/style.css">
<!-- Mapbox -->
<link href="https://api.mapbox.com/mapbox-gl-js/v2.1.1/mapbox-gl.css" rel="stylesheet"/>
</head>
<!-- Main code -->
<body>
<!-- Nav bar start -->
<nav class="navbar navbar-expand-lg bg-dark navbar-dark py-3 fixed-top"> <!-- defines navbar, sets nav to large, bg dark, and nav colour for dark bg, adds padding on y axis of 3 predefined, fix-top makes the nav always appear at the top-->
<div class="container">
<!-- Title -->
<a href="#" class="navbar-brand">Bootstrap_FirstBuild</a> <!-- Title text with href to index -->
<!-- Hamburgur menu (Collapses navmenu when scaled)-->
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navmenu"> <!-- Responce for hamburgure menu and calls for nav bar-->
<!-- Navbar Icon -->
<span class="navbar-toggler-icon"></span> <!-- calls for predefined svg-->
</button>
<!-- Navmenu -->
<!--
***********************
* Fix Nav text colour *
***********************
-->
<div class="collapse navbar navbar-collapse" id="navmenu"> <!-- Makes nav into hamburger menu when width < x ammount and adds id-->
<!-- Unordered list -->
<ul class="navbar-nav ms-auto"> <!-- defines navbar -->
<li class="nav-item">
<a href="#learn" class="nav-link text-white">What you'll learn</a>
</li>
<li class="nav-item">
<a href="#questions" class="nav-link text-white">Questions</a>
</li>
<li class="nav-item">
<a href="#instructors" class="nav-link text-white">Instructures</a>
</li>
<li class="nav-item">
<a href="./members.php" class="nav-link text-white">Members</a>
</li>
</ul>
</div>
</div>
</nav>
<!-- Navbar end -->
<!-- Showcase start -->
<section class="bg-dark text-light p-5 p-lg-0 pt-lg-5 text-center text-sm-start"> <!-- Sets bg to dark, text light, padding = predefined value 5 removes padding on bottom on lg screen, and centers text, on med-large screens will align to start -->
<!-- Container / content -->
<div class="container">
<!-- flex box -->
<div class="d-sm-flex align-items-center justify-content-between"> <!-- d-felx Makes items in a row -sm means breakpoint small | aligns items to center | sets items to align next to each other -->
<div>
<h1>Become a <span class="text-warning">web developer</span></h1> <!-- span w/ text-x means setting text colour from defult -->
<p class="lead my-4"> <!-- class lead means to make the text a little bigger? my-4 sets padding on y axis to predefined value 4 -->
Start your journey by learning the fundamentals of HTML, CSS, and JavaScript, the building blocks of the web. Explore different specializations like front-end development (focusing on user interfaces) or back-end development (working with server-side logic).
</p>
<button class="btn btn-primary btn-lg" data-bs-toggle="modal" data-bs-target="#enroll">Start the enrolment</button> <!-- Adds a button, btn-primary sets button to blue, btn-lg sets size to large-->
</div>
<img class="img-fluid w-50 d-none d-sm-block" src="./img/showcase.svg" alt=""> <!-- img-fluid makes img change, w-50 means width 50% | d-none and D-sm-block stops img on small screens, d means display -->
</div>
</div>
</section>
<!-- Showcase End -->
<!-- news letter start -->
<section class="bg-primary text-light p-5"> <!-- adds section, sets bg to light blue / primary colour, text light and padding of 5 predefined -->
<div class="container"> <!-- container -->
<div class="d-md-flex justify-content-between align-items-center"> <!-- sets flex box to start at medium display size, centers content to eachother, and centers all itesm -->
<h3 class="mb-3 mb-md-0"> <!-- sets a margine on bottom of 3 predefined, but removes it on medium screens -->
sign up for our newsletter
</h3>
<div class="input-group" news-input> <!-- Defines email field and submit btn -->
<input
type="text"
class="form-control"
placeholder="Enter email"
aria-label="Enter email"
aria-describedby="Submit"> <!-- defines text feild, aria is for vision impared -->
<button class="btn btn-dark btn-lg" type="button" id="button-submitemail">Submit</button> <!-- Defines button, sets to dark and large, sets ID -->
</div>
</div>
</div>
</section>
<!-- news letter end -->
<!-- Boxes start -->
<section class="p-5"> <!-- defines section with padding of 5-->
<div class="container"> <!-- sets class-->
<div class="row text-center g-4"> <!-- defines as row and centers text-->
<div class="col-md"> <!-- Makes a colum when smaller then med-->
<div class="card bg-dark text-light"> <!-- sets colours-->
<div class="card-body text-center">
<div class="h1 mb-3"> <!-- sets to h1 sizing and margine bottom of 3-->
<i class="bi bi-laptop"></i> <!-- sets img -->
</div>
<h3 class="card-title mb-3">Virtual</h3>
<p class="card-text">
Lorem, ipsum dolor sit amet consectetur adipisicing elit.
Iure, quas quidem possimus dolorum esse eligendi?
</p>
<a href="#" class="btn btn-primary">Read More</a> <!-- adds button -->
</div>
</div>
</div>
<div class="col-md">
<div class="card bg-secondary text-light">
<div class="card-body text-center">
<div class="h1 mb-3">
<i class="bi bi-person-square"></i>
</div>
<h3 class="card-title mb-3">Hybrid</h3>
<p class="card-text">
Lorem, ipsum dolor sit amet consectetur adipisicing elit.
Iure, quas quidem possimus dolorum esse eligendi?
</p>
<a href="#" class="btn btn-dark">Read More</a>
</div>
</div>
</div>
<div class="col-md">
<div class="card bg-dark text-light">
<div class="card-body text-center">
<div class="h1 mb-3">
<i class="bi bi-people"></i>
</div>
<h3 class="card-title mb-3">In Person</h3>
<p class="card-text">
Lorem, ipsum dolor sit amet consectetur adipisicing elit.
Iure, quas quidem possimus dolorum esse eligendi?
</p>
<a href="#" class="btn btn-primary">Read More</a>
</div>
</div>
</div>
</div>
</div>
</section>
<!-- Boxes end-->
<!-- Learn sections start-->
<section id="learn" class="p-5"> <!-- Defines area -->
<div class="container">
<div class="row align-items-cneter justify-content-between">
<div class="col-md"> <!-- sets collum to med -->
<img src="img/fundamentals.svg" class="img-fluid">
</div>
<div class="col-md p-5">
<h2>Learn the fundiments</h2>
<p class="lead">
Lorem ipsum dolor sit amet consectetur adipisicing elit. Asperiores hic velit nulla a? Cumque, corporis.
</p>
<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Optio et facere obcaecati animi doloremque alias laborum nostrum eius nulla corporis, veritatis recusandae reprehenderit aspernatur consectetur dignissimos vero temporibus natus provident?</p>
<a href="#" class="btn btn-light mt-3"> <!-- adds button -->
<i class="bi bi-chevron-right"></i> Read more
</a>
</div>
</div>
</div>
</section>
<!-- Learn section end -->
<!-- Learn react start-->
<section id="learn" class="p-5 bg-dark text-light"> <!-- Defines area -->
<div class="container">
<div class="row align-items-cneter justify-content-between">
<div class="col-md p-5">
<h2>Learn the react</h2>
<p class="lead">
Lorem ipsum dolor sit amet consectetur adipisicing elit. Asperiores hic velit nulla a? Cumque, corporis.
</p>
<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Optio et facere obcaecati animi doloremque alias laborum nostrum eius nulla corporis, veritatis recusandae reprehenderit aspernatur consectetur dignissimos vero temporibus natus provident?</p>
<a href="#" class="btn btn-light mt-3">
<i class="bi bi-chevron-right"></i> Read more
</a>
</div>
<div class="col-md"> <!-- sets collum to med -->
<img src="img/react.svg" class="img-fluid">
</div>
</div>
</div>
</section>
<!-- Learn react end -->
<!-- Questions accodion start -->
<section id="questions" class="p-5"> <!-- defines section-->
<h2 class="text-center mb-4">Frequently asked questions</h2>
<!-- Item 1-->
<div class="accordion accordion-flush" id="questions"> <!-- Defines accordion flush-->
<div class="accordion-item"> <!-- sets class -->
<h2 class="accordion-header">
<button class="accordion-button collapsed" type="button" data-bs-toggle="collapse" data-bs-target="#question-one" aria-expanded="false" aria-controls="flush-collapseOne">
Accordion Item #1
</button>
</h2>
<div id="question-one" class="accordion-collapse collapse" data-bs-parent="#questions">
<div class="accordion-body">Placeholder content for this accordion, which is intended to demonstrate the <code>.accordion-flush</code> class. This is the first item's accordion body.</div>
</div>
</div>
<!-- Item 2-->
<div class="accordion-item">
<h2 class="accordion-header">
<button class="accordion-button collapsed" type="button" data-bs-toggle="collapse" data-bs-target="#question-two" aria-expanded="false" aria-controls="flush-collapseTwo">
Accordion Item #2
</button>
</h2>
<div id="question-two" class="accordion-collapse collapse" data-bs-parent="#questions">
<div class="accordion-body">Placeholder content for this accordion, which is intended to demonstrate the <code>.accordion-flush</code> class. This is the second item's accordion body. Let's imagine this being filled with some actual content.</div>
</div>
</div>
<!-- Item 3 -->
<div class="accordion-item">
<h2 class="accordion-header">
<button class="accordion-button collapsed" type="button" data-bs-toggle="collapse" data-bs-target="#question-three" aria-expanded="false" aria-controls="flush-collapseThree">
Accordion Item #3
</button>
</h2>
<div id="question-three" class="accordion-collapse collapse" data-bs-parent="#questions">
<div class="accordion-body">Placeholder content for this accordion, which is intended to demonstrate the <code>.accordion-flush</code> class. This is the third item's accordion body. Nothing more exciting happening here in terms of content, but just filling up the space to make it look, at least at first glance, a bit more representative of how this would look in a real-world application.</div>
</div>
</div>
</div>
</section>
<!-- Questions accodion end -->
<!-- Instructors grid card start -->
<section id="instructors" class="p-5 bg-primary">
<div class="container">
<h2 class="text-center text-white">Our Instructors</h2>
<p class="lead text-center text-white mb-5">
Our instructors all have 5+ years working as a web developer in the
industry
</p>
<div class="row g-4">
<div class="col-md-6 col-lg-3">
<div class="card bg-light">
<div class="card-body text-center">
<img
src="https://randomuser.me/api/portraits/men/11.jpg"
class="rounded-circle mb-3"
alt=""
/> <!-- calls for random img and sets it to circle -->
<h3 class="card-title mb-3">John Doe</h3>
<p class="card-text">
Lorem ipsum dolor sit amet consectetur adipisicing elit.
Assumenda accusamus nobis sed cupiditate iusto? Quibusdam.
</p>
<a href="#"><i class="bi bi-twitter text-dark mx-1"></i></a> <!-- Adds icon in black -->
<a href="#"><i class="bi bi-facebook text-dark mx-1"></i></a>
<a href="#"><i class="bi bi-linkedin text-dark mx-1"></i></a>
<a href="#"><i class="bi bi-instagram text-dark mx-1"></i></a>
</div>
</div>
</div>
<div class="col-md-6 col-lg-3">
<div class="card bg-light">
<div class="card-body text-center">
<img
src="https://randomuser.me/api/portraits/women/11.jpg"
class="rounded-circle mb-3"
alt=""
/>
<h3 class="card-title mb-3">Jane Doe</h3>
<p class="card-text">
Lorem ipsum dolor sit amet consectetur adipisicing elit.
Assumenda accusamus nobis sed cupiditate iusto? Quibusdam.
</p>
<a href="#"><i class="bi bi-twitter text-dark mx-1"></i></a>
<a href="#"><i class="bi bi-facebook text-dark mx-1"></i></a>
<a href="#"><i class="bi bi-linkedin text-dark mx-1"></i></a>
<a href="#"><i class="bi bi-instagram text-dark mx-1"></i></a>
</div>
</div>
</div>
<div class="col-md-6 col-lg-3">
<div class="card bg-light">
<div class="card-body text-center">
<img
src="https://randomuser.me/api/portraits/men/12.jpg"
class="rounded-circle mb-3"
alt=""
/>
<h3 class="card-title mb-3">Steve Smith</h3>
<p class="card-text">
Lorem ipsum dolor sit amet consectetur adipisicing elit.
Assumenda accusamus nobis sed cupiditate iusto? Quibusdam.
</p>
<a href="#"><i class="bi bi-twitter text-dark mx-1"></i></a>
<a href="#"><i class="bi bi-facebook text-dark mx-1"></i></a>
<a href="#"><i class="bi bi-linkedin text-dark mx-1"></i></a>
<a href="#"><i class="bi bi-instagram text-dark mx-1"></i></a>
</div>
</div>
</div>
<div class="col-md-6 col-lg-3">
<div class="card bg-light">
<div class="card-body text-center">
<img
src="https://randomuser.me/api/portraits/women/12.jpg"
class="rounded-circle mb-3"
alt=""
/>
<h3 class="card-title mb-3">Sara Smith</h3>
<p class="card-text">
Lorem ipsum dolor sit amet consectetur adipisicing elit.
Assumenda accusamus nobis sed cupiditate iusto? Quibusdam.
</p>
<a href="#"><i class="bi bi-twitter text-dark mx-1"></i></a>
<a href="#"><i class="bi bi-facebook text-dark mx-1"></i></a>
<a href="#"><i class="bi bi-linkedin text-dark mx-1"></i></a>
<a href="#"><i class="bi bi-instagram text-dark mx-1"></i></a>
</div>
</div>
</div>
</div>
</div>
</section>
<!-- Instructors grid card end -->
<!-- contact card start-->
<section class="p-5">
<div class="container">
<div class="row g-4">
<div class="col-md">
<h2 class="text-center mb-4">Contact info</h2>
<ul class="list-group list-group-flush lead">
<li class="list-group-item">
<span class="fw-bold">Main location</span> random adress here
</li>
<li class="list-group-item">
<span class="fw-bold">Phone</span> random Phone here
</li>
<li class="list-group-item">
<span class="fw-bold">Another phone</span> random phone here
</li>
<li class="list-group-item">
<span class="fw-bold">Email</span> random email here
</li>
<li class="list-group-item">
<span class="fw-bold">Another email</span> random email here
</li>
</ul>
</div>
<div class="col-md">
<div id="map"> REMOVE THIS TEXT | MAP WILL NOT WORK WITHOUT API ID</div>
</div>
</div>
</div>
</section>
<!-- contact card end -->
<!-- footer start -->
<footer class="p-5 bg-dark text-white text-center position-relative">
<div class="container">
<p class="lead">Copyright © 2024 Callum Long</p>
<a href="#" class="position-absolute bottom-0 end-0 p-5"> <!-- Button that bings back to the top -->
<i class="bi bi-arrow-up-circle h1"></i>
</a>
</div>
</footer>
<!-- footer end -->
<!-- Modal Start -->
<!-- Modal -->
<div
class="modal fade"
id="enroll"
tabindex="-1"
aria-labelledby="enrollLabel"
aria-hidden="true"
>
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title" id="enrollLabel">Enrollment</h5>
<button
type="button"
class="btn-close"
data-bs-dismiss="modal"
aria-label="Close"
></button>
</div>
<div class="modal-body">
<p class="lead">Fill out this form and we will get back to you</p>
<form>
<div class="mb-3">
<label for="first-name" class="col-form-label">
First Name:
</label>
<input type="text" class="form-control" id="first-name" />
</div>
<div class="mb-3">
<label for="last-name" class="col-form-label">Last Name:</label>
<input type="text" class="form-control" id="last-name" />
</div>
<div class="mb-3">
<label for="email" class="col-form-label">Email:</label>
<input type="email" class="form-control" id="email" />
</div>
<div class="mb-3">
<label for="phone" class="col-form-label">Phone:</label>
<input type="tel" class="form-control" id="phone" />
</div>
</form>
</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">Submit</button>
</div>
</div>
</div>
</div>
<!-- Modal end -->
<!-- Map box config start -->
<!-- need to fill access token-->
<script>
mapboxgl.accessToken = 'Fill me'
var map = new mapboxgl.Map({
container: 'map',
style: 'mapbox://styles/mapbox/streets-v11',
center: [-71.060982, 42.35725],
zoom: 18,
})
</script>
<!-- Map box config end-->
</body>
</html>