forked from Eugene-Kwaka/BOOTSTRAP-5
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgrid-layout-2.html
457 lines (426 loc) · 21.4 KB
/
grid-layout-2.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=\, initial-scale=1.0">
<link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-EVSTQN3/azprG1Anm3QDgpJLIm9Nao0Yz1ztcQTwFspd3yD65VohhpuuCOmLASjC" crossorigin="anonymous">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected]/font/bootstrap-icons.css">
<title>E-BOOK SITE | BOOTSTRAP GRID-LAYOUT PART 2</title>
</head>
<style>
section{
padding: 60px 0;
}
</style>
<body>
<!-- NAV -->
<!-- navbar-expand-md will make the navbar expand and show nav-links when the screen size is medium
navbar-light will make the navbar visible with a light-colored background
fixed-top will make the navbar stay fixed at the top of the screen even when scrolling
-->
<nav class="navbar navbar-expand-md navbar-light bg-light fixed-top">
<div class="container-xxl">
<!-- navbar-brand is the title inside the Navbar -->
<a href="#intro" class="navbar-brand">
<!-- span will place the text next to the <a>link in the navbar -->
<span class="fw-bold text-secondary"><i class="bi bi-vinyl-fill"></i> DAYS BEFORE RODEO - The Album</span>
</a>
<!-- Toogle button for mobile screens -->
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#main-nav" aria-controls="main-nav" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<!-- navbar links -->
<!-- collapse will invoke the toggle function as stated above in button class
navbar-collapse styles the collapse class
-->
<div class="collapse navbar-collapse justify-content-end align-center" id="main-nav">
<ul class="navbar-nav">
<li class="nav-item">
<a class="nav-link" href="#topics">About The Book</a>
</li>
<li class="nav-item">
<a class="nav-link" href="#reviews">Reviews</a>
</li>
<li class="nav-item">
<a class="nav-link" href="#contact">Get In Touch</a>
</li>
<li class="nav-item">
<a class="nav-link" href="#pricing">Pricing</a>
</li>
<!-- ms-2 will give the button a margin of 2 from the left,
d-none will not display the button,
d-md-inline will display the button when the screen size is medium -->
<li class="nav-item ms-2 d-none d-md-inline">
<a class="btn btn-secondary" href="#pricing">Buy Now</a>
</li>
</ul>
</div>
</div>
</nav>
<!-- INTRO & MAIN IMAGE -->
<section id="intro">
<div class="container-lg">
<!-- align-items-center will place the items in the container in the center along the y(vertical) axis -->
<div class="row justify-content-center align-items-center">
<!-- text-md-start will make text start from the left page when screen becomes medium size -->
<div class="col-md-5 text-center text-md-start">
<div class="justify-content-center">
<h1>
<div class="display-2">DAYS BEFORE RODEO</div>
<div class="display-5 text-muted">Travis Scott</div>
</h1>
<p class="lead my-4 text-muted">Lorem ipsum dolor sit amet consectetur adipisicing elit. Harum, tempora.</p>
<a href="#pricing" class="btn btn-secondary btn-lg">Buy Now</a>
</div>
<!-- OFFCANVAS TRIGGER/SIDEBAR TRIGGER -->
<!-- I create a button that will initiate the offcanvas to pop out of the sides of the screen
d-block class will make the sidebar a block as it is originally inline -->
<a href="#sidebar" class="d-block mt-3 text-decoration-none" data-bs-toggle="offcanvas"
role="button" aria-controls="sidebar">
Explore other albums from Travis Scott
</a>
</div>
<!-- d-none will remove the img when the screen size is small, d-md-block will display the img when screen size is medium -->
<div class="col-md-5 text-center d-none d-md-block mt-5">
<!-- TOOLTIP -->
<span class="tt" data-bs-placement="bottom" title="Days Before Rodeo Album">
<!-- img-fluid will make the img size fluid within its the parent class -->
<img class="img-fluid" src="/assets/Days Before Rodeo.png" alt="">
</span>
</div>
</div>
</section>
<!-- PRICING PLANS -->
<section id="pricing" class="bg-light mt-5" >
<div class="container-lg">
<div class="text-center">
<h2>Pricing Plans</h2>
<p class="lead text-muted">Choose a Pricing Plan that suits you</p>
</div>
<!-- align-items-center will place the items in the center(vertical axis)
justify-content-center will place the items in the center(horizontally)
g-2 creates a grid gap between the elements
-->
<div class="row my-5 align-items-center justify-content-center g-2">
<!-- col-8 means the card item will have 8/12 of screen size when small
col-lg-4 means means the card item will have 4/12 of screen size when large
col-xl-3 means the card item will have 3/12 of screen size when desktop size -->
<div class="col-8 col-lg-4 col-xl-3">
<!-- creates a card body -->
<div class="card border-0">
<!-- card-body is the content inside the card -->
<div class="card-body text-center py-5">
<h4 class="card-title">Starter Edition</h4>
<p class="lead card-subtitle">Album download only</p>
<p class="display-5 my-4 text-primary fw-bold">$5.00</p>
<p class="card-text mx-5 text-muted d-none d-lg-block">Lorem ipsum dolor sit amet.</p>
<a href="" class="btn btn-outline-primary btn-lg mt-3">Buy Now</a>
</div>
</div>
</div>
<div class="col-9 col-lg-4">
<!-- creates a card body -->
<div class="card border-primary border-2">
<!-- card-body is the content inside the card -->
<div class="card-header text-center text-primary">Most Popular</div>
<div class="card-body text-center py-5">
<h4 class="card-title">Complete Edition</h4>
<p class="lead card-subtitle">Album download & Artist Signature</p>
<p class="display-3 my-4 text-primary fw-bold">$10.00</p>
<p class="card-text mx-5 text-muted d-none d-lg-block">Lorem ipsum dolor sit amet.</p>
<a href="" class="btn btn-outline-primary btn-lg mt-3">Buy Now</a>
</div>
</div>
</div>
<div class="col-8 col-lg-4 col-xl-3">
<!-- creates a card body -->
<div class="card border-0 my-4">
<!-- card-body is the content inside the card -->
<div class="card-body text-center py-5">
<h4 class="card-title">Ultimate Edition</h4>
<p class="lead card-subtitle">Download, Signature, Vinyl</p>
<p class="display-5 my-4 text-primary fw-bold">$15.00</p>
<p class="card-text mx-5 text-muted d-none d-lg-block">Lorem ipsum dolor sit amet.</p>
<a href="" class="btn btn-outline-primary btn-lg mt-3">Buy Now</a>
</div>
</div>
</div>
</div>
</div>
</section>
<!-- ACCORDION -->
<section id="topics">
<div class="container-md">
<div class="text-center">
<h2>Inside the Album....</h2>
<p class="lead text-muted">A quick glance at the tracks you'll listen to </p>
</div>
<!-- justify-content-around will make the items have an equal gap between them along the x axis(horizontally) -->
<div class="row my-5 g-5 justify-content-around align-items-center">
<div class="col-6 col-lg-4">
<span class="tt" data-bs-placement="bottom" title="Days Before Rodeo Album">
<img src="assets/toy-travis.jpg" class="img-fluid" alt="album">
</span>
</div>
<!-- accordion -->
<div class="col-lg-6">
<div class="accordion" id="chapters">
<div class="accordion-item">
<h2 class="accordion-header" id="heading-1">
<button class="accordion-button" type="button" data-bs-toggle="collapse"
data-bs-target="#chapter-1" aria-expanded="true" aria-controls="#chapter-1">Track 1 - Days Before Rodeo: The Prayer</button>
</h2>
<div id="chapter-1" class="accordion-collapse collapse-show"
aria-labelledby="heading-1" data-bs-parent="#chapters">
<div class="accordion-body">
<p>Lorem ipsum dolor sit amet consectetur, adipisicing elit. Sequi, saepe!</p>
</div>
</div>
</div>
<div class="accordion-item">
<h2 class="accordion-header" id="heading-2">
<button class="accordion-button" type="button" data-bs-toggle="collapse"
data-bs-target="#chapter-2" aria-expanded="true" aria-controls="#chapter-2">Track 2 - Mamacita</button>
</h2>
<div id="chapter-2" class="accordion-collapse collapse-show"
aria-labelledby="heading-2" data-bs-parent="#chapters">
<div class="accordion-body">
<p>Lorem ipsum dolor sit amet consectetur, adipisicing elit. Sequi, saepe!</p>
</div>
</div>
</div>
<div class="accordion-item">
<h2 class="accordion-header" id="heading-3">
<button class="accordion-button" type="button" data-bs-toggle="collapse"
data-bs-target="#chapter-3" aria-expanded="true" aria-controls="#chapter-3">Track 3 - Quintana, Part 2</button>
</h2>
<div id="chapter-3" class="accordion-collapse collapse-show"
aria-labelledby="heading-3" data-bs-parent="#chapters">
<div class="accordion-body">
<p>Lorem ipsum dolor sit amet consectetur, adipisicing elit. Sequi, saepe!</p>
</div>
</div>
</div>
<div class="accordion-item">
<h2 class="accordion-header" id="heading-4">
<button class="accordion-button" type="button" data-bs-toggle="collapse"
data-bs-target="#chapter-4" aria-expanded="true" aria-controls="#chapter-4">Track 4 - Drugs You Should Try It</button>
</h2>
<div id="chapter-4" class="accordion-collapse collapse-show"
aria-labelledby="heading-4" data-bs-parent="#chapters">
<div class="accordion-body">
<p>Lorem ipsum dolor sit amet consectetur, adipisicing elit. Sequi, saepe!</p>
</div>
</div>
</div>
<div class="accordion-item">
<h2 class="accordion-header" id="heading-5">
<button class="accordion-button" type="button" data-bs-toggle="collapse"
data-bs-target="#chapter-5" aria-expanded="true" aria-controls="#chapter-5">Track 5 - Don't Play</button>
</h2>
<div id="chapter-5" class="accordion-collapse collapse-show"
aria-labelledby="heading-5" data-bs-parent="#chapters">
<div class="accordion-body">
<p>Lorem ipsum dolor sit amet consectetur, adipisicing elit. Sequi, saepe!</p>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</section>
<!-- REVIEWS LIST -->
<section id="reviews" class="bg-light">
<div class="container-lg">
<div class="text-center">
<h2><i class="bi bi-stars"></i> Album Reviews</h2>
<p class="lead">This is what fans & critics have said about the album...</p>
</div>
<div class="row justify-content-center">
<div class="col-lg-8">
<div class="list-group g-2">
<div class="list-group-item py-3">
<div class="pb-2">
<i class="bi bi-star-fill"></i>
<i class="bi bi-star-fill"></i>
<i class="bi bi-star-fill"></i>
<i class="bi bi-star-fill"></i>
<i class="bi bi-star-fill"></i>
</div>
<h5 class="mb-1">A must buy for every Hip Hop fan</h5>
<p class="mb-1">Lorem ipsum dolor sit amet, consectetur adipisicing elit. Sunt commodi quae facere! Consequuntur, reprehenderit architecto tempora esse sit repellendus quae.</p>
<small>Review by Don Toliver</small>
</div>
<div class="list-group-item py-3">
<div class="pb-2">
<i class="bi bi-star-fill"></i>
<i class="bi bi-star-fill"></i>
<i class="bi bi-star-fill"></i>
<i class="bi bi-star-fill"></i>
<i class="bi bi-star-fill"></i>
</div>
<h5 class="mb-1">I produced this album by myself</h5>
<p class="mb-1">Lorem ipsum dolor sit amet, consectetur adipisicing elit. Sunt commodi quae facere! Consequuntur, reprehenderit architecto tempora esse sit repellendus quae.</p>
<small>Review by Kanye West</small>
</div>
<div class="list-group-item py-3">
<div class="pb-2">
<i class="bi bi-star-fill"></i>
<i class="bi bi-star-fill"></i>
<i class="bi bi-star-fill"></i>
<i class="bi bi-star-fill"></i>
<i class="bi bi-star-half"></i>
</div>
<h5 class="mb-1">Repping Texas</h5>
<p class="mb-1">Lorem ipsum dolor sit amet, consectetur adipisicing elit. Sunt commodi quae facere! Consequuntur, reprehenderit architecto tempora esse sit repellendus quae.</p>
<small>Review by Jack Wes</small>
</div>
<div class="list-group-item py-3">
<div class="pb-2">
<i class="bi bi-star-fill"></i>
<i class="bi bi-star-fill"></i>
<i class="bi bi-star-fill"></i>
<i class="bi bi-star-fill"></i>
<i class="bi bi-star-fill"></i>
</div>
<h5 class="mb-1">It's lit</h5>
<p class="mb-1">Lorem ipsum dolor sit amet, consectetur adipisicing elit. Sunt commodi quae facere! Consequuntur, reprehenderit architecto tempora esse sit repellendus quae.</p>
<small>Review by Cactus Jack Management</small>
</div>
</div>
</div>
</div>
</div>
</section>
<!-- FORMS -->
<section id="contact">
<div class="container-lg">
<div class="text-center">
<h2>Get In Touch</h2>
<p class="lead">Got Questions? Fill out the form below and contact me directly</p>
</div>
<div class="row justify-content-center my-5">
<div class="col-lg-6">
<!-- All labels for a form need to have the "form-label" class -->
<form>
<label for="name" class="form-label">Your Name:</label>
<!-- To include an icon next to the inputs/labels, we use a class called input group and place the icon in a span element
The span element takes the class "input-group-text" -->
<div class="mb-4 input-group">
<span class="input-group-text">
<i class="bi bi-person-fill"></i>
</span>
<input type="text" class="form-control" id="name">
</div>
<label for="email" class="form-label">Email address:</label>
<div class="mb-4 input-group">
<span class="input-group-text">
<i class="bi bi-envelope-fill"></i>
</span>
<input type="email" class="form-control" id="email" placeholder="[email protected]">
</div>
<label for="subject" class="form-label">What is your question about?</label>
<div class="mb-4 input-group">
<span class="input-group-text">
<i class="bi bi-question-circle-fill"></i>
</span>
<select id="subject" class="form-select">
<option value="pricing">Pricing Question</option>
<option value="content">Content Question</option>
<option value="other">Other Questions</option>
</select>
</div>
<label for="query" class="form-label">Your Question:</label>
<textarea id="query" class="form-control" cols="30" rows="10"></textarea>
<div class="mb-4 mt-3">
<button class="btn btn-primary">Submit</button>
</div>
</form>
</div>
</div>
</div>
</section>
<!-- MODAL TRIGGER -->
<section class="bg-light">
<div class="container">
<div class="text-center">
<h2>More from Travis Scott...</h2>
<p class="lead">Get the latest Albums, News and Merch as they happen</p>
</div>
<div class="row justify-content-center">
<div class="col-md-8 text-center">
<p class="text-muted my-4">Lorem ipsum dolor sit amet consectetur adipisicing elit.
Labore dicta quisquam deserunt, porro saepe nobis nam, repellat reiciendis unde quam architecto beatae aperiam error perferendis culpa optio eaque in ut.
</p>
<!-- #reg-modal is the id for the modal where a user can register to get the latest info -->
<button class="btn btn-secondary" data-bs-toggle="modal" data-bs-target="#reg-modal">
Register for updates
</button>
</div>
</div>
</div>
</section>
<!-- MODAL ITSELF -->
<!-- the #reg-modal id will prompt this modal to be displayed when the button above is pressed
-->
<div class="modal fade" id="reg-modal"
tabindex="-1" aria-labelledby="modal-title" aria-hidden="true">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title" id="modal-title">Get the latest updates</h5>
<button class="btn-close" type="button"
data-bs-dismiss="modal" aria-label="Close"></button>
</div>
<div class="modal-body">
<p>Lorem, ipsum dolor sit amet consectetur adipisicing elit.
Architecto illo molestias earum, iste maxime ullam quisquam modi quae officiis alias.
</p>
<label for="modal-email" class="form-label">Enter your email address:</label>
<input type="email" class="form-control" id="modal-email" placeholder="e.g [email protected]">
</div>
<div class="modal-footer">
<button class="btn btn-primary">Submit</button>
</div>
</div>
</div>
</div>
<!-- OFFCANVAS ITSELF -->
<!-- offcanvas-start(left) is a position of the offcanvas meaning it will pop from the LEFT -->
<div class="offcanvas offcanvas-start" tabindex="-1" id="sidebar"
aria-labelledby="sidebar-label">
<div class="offcanvas-header">
<h5 class="offcanvas-title" id="sidebar-label">
Travis Scott Albums
</h5>
<button class="btn-close" type="button" data-bs-dismiss="offcanvas" aria-label="close">
</button>
</div>
<div class="offcanvas-body">
<div class="mb-4">
<p class="lead">Check Out his other albums</p>
</div>
<div class="dropdown mt-3">
<button class="btn btn-secondary dropdown-toggle" type="button" id="album-dropdown" data-bs-toggle="dropdown">
Albums
</button>
<ul class="dropdown-menu" aria-labelledby="album-dropdown">
<li><a class="dropdown-item" href="#">Birds In The Trap Sing McKnight (2016)</a></li>
<li><a class="dropdown-item" href="#">Astroworld (2018)</a></li>
<li><a class="dropdown-item" href="#">Jackboys (2019)</a></li>
</ul>
</div>
</div>
</div>
</body>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js" integrity="sha384-MrcW6ZMFYlzcLA8Nl+NtUVF0sA7MsXsP1UyJoMp4YLEuNSfAP+JcXn/tWtIaxVXM" crossorigin="anonymous"></script>
<!-- ToolTip JS -->
<script>
const tooltips = document.querySelectorAll('.tt')
tooltips.forEach(t => {
new bootstrap.Tooltip(t)
})
</script>
</html>