-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
460 lines (395 loc) · 20.8 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
459
460
<!doctype html>
<html lang="en">
<head>
<!-- Required meta tags -->
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<!-- Bootstrap CSS -->
<link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-1BmE4kWBq78iYhFldvKuhfTAU6auU8tT94WrHftjDbrCEXSU1oBoqyl2QvZ6jIW3" crossorigin="anonymous">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected]/font/bootstrap-icons.css">
<!-- Custom Style Sheet -->
<link rel="stylesheet" href="style.css">
<title>Bootstrap Cheat Sheet</title>
</head>
<body>
<!-- Navigation Bar -->
<nav class="navbar navbar-expand-lg bg-dark navbar-dark py-3 fixed-top">
<div class="container">
<!-- Span allows color to change in the same line-->
<a href="#" class="navbar-brand"> Bootstrap <span class="text-warning">Cheat Sheet</span></a>
<button
class="navbar-toggler"
type="button"
data-bs-toggle="collapse"
data-bs-target="#navmenu"
>
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse" id="navmenu">
<ul class="navbar-nav ms-auto">
<li class="nav-item">
<a href="#learn" class="nav-link"> What You'll Learn </a>
</li>
<li class="nav-item">
<a href="#questions" class="nav-link"> Questions </a>
</li>
<li class="nav-item">
<a href="#instructors" class="nav-link"> Instructors </a>
</li>
</ul>
</div>
</div>
</nav>
<!-- Showcase (Front Page) -->
<section class="bg-dark text-light p-5 p-lg-0 text-center text-sm-start"> <!-- sm-start = starting at small breakpoint, align to start -->
<div class="container">
<div class="d-sm-flex align-items-center justify-content-between"> <!-- Mobile compatibility, doesn't display flex but column display -->
<div>
<h1>Sample Website</h1>
<p class="lead my-4"> <!-- Lead class makes the text a little bigger-->
This is a sample website created from HTML using Bootstrap.
It was adapted from sample code provided by Bootstrap. As of the release of
Bootstrap 5, JQuery is no longer needed to use the components they provide.
</p>
<button class="btn btn-primary btn-lg" data-bs-toggle="modal" data-bs-target="#enroll">A Button</button>
</div>
<img class="img-fluid w-30 d-none d-sm-block" src="images/Lunch time-rafiki.svg" alt="">
</div>
</div>
</section>
<!-- Input Form -->
<section class="bg-primary text-light p-5">
<div class="container">
<div class="d-md-flex justify-content-between align-items-center">
<h3 class="mb-3 mb-md-0"> Sample Input Form </h3>
<div class="input-group user-input">
<input
type="text"
class="form-control"
placeholder="Enter text"
aria-label="Recipient's username"
aria-describedby="button-addon2"/>
<button
class="btn btn-dark btn-lg"
type="button"
id="button-addon2">Submit</button>
</div>
</div>
</div>
</section>
<!-- Boxes -->
<section class="p-5">
<div class="container">
<!-- g gives a gap to separate boxes -->
<div class="row text-center g-4">
<!-- Column 1 -->
<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-laptop"></i>
</div>
<h3 class="card-title mb-3"> Column 1 </h3>
<p class="card-text"> Lorem ipsum dolor sit amet consectetur adipisicing elit. Mollitia, repellat. Voluptatum optio totam odit itaque!</p>
<a href="#" class="btn btn-warning">Read More</a>
</div>
</div>
</div>
<!-- Column 2 -->
<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"> Column 2 </h3>
<p class="card-text"> Lorem ipsum dolor sit amet consectetur adipisicing elit. Mollitia, repellat. Voluptatum optio totam odit itaque!</p>
<a href="#" class="btn btn-warning">Read More</a>
</div>
</div>
</div>
<!-- Column 3 -->
<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"> Column 3 </h3>
<p class="card-text"> Lorem ipsum dolor sit amet consectetur adipisicing elit. Mollitia, repellat. Voluptatum optio totam odit itaque!</p>
<a href="#" class="btn btn-warning">Read More</a>
</div>
</div>
</div>
</div>
</div>
</section>
<!-- Subsections -->
<section class="p-5" id="learn">
<div class="container">
<div class="row align-items-center justify-content-between">
<div class="col-md">
<img src="images/Hand sewing-rafiki.svg" class="imgfluid" alt="">
</div>
<div class="col-md p-5">
<h2>Lorem Ipsum Dolor</h2>
<p class="lead">Lorem ipsum dolor sit amet consectetur adipisicing elit. Ipsam deleniti sint aperiam unde, nesciunt cupiditate.</p>
<p>Lorem ipsum dolor sit amet consectetur adipisicing elit. Id officiis suscipit quis laudantium aliquam dolorum qui facere, rem dolor sequi praesentium amet, debitis veritatis tempora numquam adipisci? Nostrum, adipisci numquam?</p>
<a href="#" class="btn btn-light mt-3">
<i class="bi bi-chevron-right"></i> Read More
</a>
</div>
</div>
</div>
</section>
<section class="p-5 bg-dark text-light" id="learn">
<div class="container">
<div class="row align-items-center justify-content-between">
<div class="col-md p-5">
<h2>Bootstrap - Lorem Ipsum Dolor</h2>
<p class="lead">Lorem ipsum dolor sit amet consectetur adipisicing elit. Ipsam deleniti sint aperiam unde, nesciunt cupiditate.</p>
<p>Lorem ipsum dolor sit amet consectetur adipisicing elit. Id officiis suscipit quis laudantium aliquam dolorum qui facere, rem dolor sequi praesentium amet, debitis veritatis tempora numquam adipisci? Nostrum, adipisci numquam?</p>
<a href="#" class="btn btn-light mt-3">
<i class="bi bi-chevron-right"></i> Read More
</a>
</div>
<div class="col-md">
<img src="images/bootstrapimg-svg.png" class="imgfluid" alt="">
</div>
</div>
</div>
</section>
<!-- FAQ Section -->
<section id="questions" class="p-5">
<div class="container">
<h2 class="text-center mb-4"> Frequently Asked Questions</h2>
<div class="accordion accordion-flush" id="questions">
<!-- Accordion Initialization -->
<div class="accordion-item">
<!-- Item 1 -->
<h2 class="accordion-header">
<button
class="accordion-button collapsed"
type="button"
data-bs-toggle="collapse"
data-bs-target="#question-one"
> Where are you located? </button>
</h2>
<div
id="question-one"
class="accordion-collapse collapse"
data-bs-parent="#questions">
<div class="accordion-body">
Lorem ipsum dolor sit amet consectetur adipisicing elit. Aut ab inventore illum nemo dolor. Autem, ipsam facere aliquam accusantium, ipsum sapiente maxime tenetur vero recusandae et similique laudantium minima dolorum voluptas sed quisquam dicta ducimus nesciunt! Quisquam esse ut ipsa unde, fugit sint iusto, vero iste ex molestiae non quas.
</div>
</div>
</div>
<!-- Item 2 -->
<h2 class="accordion-header">
<button
class="accordion-button collapsed"
type="button"
data-bs-toggle="collapse"
data-bs-target="#question-two"
> Cost of Attendance </button>
</h2>
<div
id="question-two"
class="accordion-collapse collapse"
data-bs-parent="#questions">
<div class="accordion-body">
Lorem ipsum dolor sit amet consectetur adipisicing elit. Aut ab inventore illum nemo dolor. Autem, ipsam facere aliquam accusantium, ipsum sapiente maxime tenetur vero recusandae et similique laudantium minima dolorum voluptas sed quisquam dicta ducimus nesciunt! Quisquam esse ut ipsa unde, fugit sint iusto, vero iste ex molestiae non quas.
</div>
</div>
</div>
<!-- Item 3 -->
<h2 class="accordion-header">
<button
class="accordion-button collapsed"
type="button"
data-bs-toggle="collapse"
data-bs-target="#question-three"
> Useful Skills </button>
</h2>
<div
id="question-three"
class="accordion-collapse collapse"
data-bs-parent="#questions">
<div class="accordion-body">
Lorem ipsum dolor sit amet consectetur adipisicing elit. Aut ab inventore illum nemo dolor. Autem, ipsam facere aliquam accusantium, ipsum sapiente maxime tenetur vero recusandae et similique laudantium minima dolorum voluptas sed quisquam dicta ducimus nesciunt! Quisquam esse ut ipsa unde, fugit sint iusto, vero iste ex molestiae non quas.
</div>
</div>
<!-- Item 4 -->
<h2 class="accordion-header">
<button
class="accordion-button collapsed"
type="button"
data-bs-toggle="collapse"
data-bs-target="#question-four"
> Contact Points </button>
</h2>
<div
id="question-four"
class="accordion-collapse collapse"
data-bs-parent="#questions">
<div class="accordion-body">
Lorem ipsum dolor sit amet consectetur adipisicing elit. Aut ab inventore illum nemo dolor. Autem, ipsam facere aliquam accusantium, ipsum sapiente maxime tenetur vero recusandae et similique laudantium minima dolorum voluptas sed quisquam dicta ducimus nesciunt! Quisquam esse ut ipsa unde, fugit sint iusto, vero iste ex molestiae non quas.
</div>
</div>
</div>
</div>
</div>
</section>
<!-- Tiles -->
<section id="instructors" class="p-5 bg-primary">
<div class="container">
<h2 class="text-center text-white">Tiles</h2>
<p class="lead text-center text-white mb-5">
Example tile layout to display attributes. Below are some random people generated by a bot.
</p>
<div class="row g-4">
<!-- First Tile -->
<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="">
<h3 class="card-title mb-3">John Doe</h3>
<p class="card-text">Lorem ipsum dolor sit amet consectetur adipisicing elit. Quibusdam praesentium dolorum enim recusandae commodi repellendus!</p>
<!-- Fancy contact icons -->
<a href="#" id=""><i class="bi bi-twitter text-dark mx-1"></i></a>
<a href="#" id=""><i class="bi bi-facebook text-dark mx-1"></i></a>
<a href="#" id=""><i class="bi bi-linkedin text-dark mx-1"></i></a>
<a href="#" id=""><i class="bi bi-instagram text-dark mx-1"></i></a>
</div>
</div>
</div>
<!-- Second Tile -->
<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. Quibusdam praesentium dolorum enim recusandae commodi repellendus!</p>
<!-- Fancy contact icons -->
<a href="#" id=""><i class="bi bi-twitter text-dark mx-1"></i></a>
<a href="#" id=""><i class="bi bi-facebook text-dark mx-1"></i></a>
<a href="#" id=""><i class="bi bi-linkedin text-dark mx-1"></i></a>
<a href="#" id=""><i class="bi bi-instagram text-dark mx-1"></i></a>
</div>
</div>
</div>
<!-- Third Tile -->
<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">Minecraft Steve</h3>
<p class="card-text">Lorem ipsum dolor sit amet consectetur adipisicing elit. Quibusdam praesentium dolorum enim recusandae commodi repellendus!</p>
<!-- Fancy contact icons -->
<a href="#" id=""><i class="bi bi-twitter text-dark mx-1"></i></a>
<a href="#" id=""><i class="bi bi-facebook text-dark mx-1"></i></a>
<a href="#" id=""><i class="bi bi-linkedin text-dark mx-1"></i></a>
<a href="#" id=""><i class="bi bi-instagram text-dark mx-1"></i></a>
</div>
</div>
</div>
<!-- Fourth Tile -->
<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">Banana Bread</h3>
<p class="card-text">Lorem ipsum dolor sit amet consectetur adipisicing elit. Quibusdam praesentium dolorum enim recusandae commodi repellendus!</p>
<!-- Fancy contact icons -->
<a href="#" id=""><i class="bi bi-twitter text-dark mx-1"></i></a>
<a href="#" id=""><i class="bi bi-facebook text-dark mx-1"></i></a>
<a href="#" id=""><i class="bi bi-linkedin text-dark mx-1"></i></a>
<a href="#" id=""><i class="bi bi-instagram text-dark mx-1"></i></a>
</div>
</div>
</div>
</div>
</div>
</section>
<!-- Contacts -->
<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> Zoom.us
</li>
<li class="list-group-item">
<span class="fw-bold">Home Phone: </span> (123)-456-7890
</li>
<li class="list-group-item">
<span class="fw-bold">Cell Phone:</span> (098)-765-4321
</li>
<li class="list-group-item">
<span class="fw-bold">Password:</span> 12340
</li>
</ul>
</div>
</div>
</div>
</section>
<!-- Footer -->
<footer class="p-5 bg-dark text-white text-center position-relative">
<div class="container">
<p class="lead">Copyright © 2022 Sample Website</p>
<a href="#" class="position-absolute bottom-0 end-0 p-5">
<i class="bi bi-arrow-up-circle h1"></i>
</a>
</div>
</footer>
<!-- Modal For 'A Button' Button-->
<div class="modal fade" id="enroll" tabindex="-1" role="dialog" aria-labelledby="enrollLabel" aria-hidden="true">
<div class="modal-dialog" role="document">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title" id="enrollLabel">Modal title</h5>
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
<span aria-hidden="true">×</span>
</button>
</div>
<div class="modal-body">
<p class="lead">(Example) Contact Us</p>
<form>
<!-- Field 1 -->
<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>
<!-- Field 2 -->
<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>
<!-- Field 3 -->
<div class="mb-3">
<label for="email" class="col-form-label">
Email:
</label>
<input type="text" class="form-control" id="email">
</div>
</form>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-secondary" data-dismiss="modal">Close</button>
<button type="button" class="btn btn-primary">Submit</button>
</div>
</div>
</div>
</div>
<!-- Script Tags -->
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js"
integrity="sha384-ka7Sk0Gln4gmtz2MlQnikT1wXgYsOg+OMhuP+IlRH9sENBO0LRn5q+8nbTov4+1p"
crossorigin="anonymous"></script>
</body>
</html>