forked from zero-to-mastery/coding_challenge-44
-
Notifications
You must be signed in to change notification settings - Fork 0
/
avinashdv.html
519 lines (505 loc) · 19.4 KB
/
avinashdv.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
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
<!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" />
<link
href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css"
rel="stylesheet"
/>
<link
rel="stylesheet"
href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css"
/>
<link rel="preconnect" href="https://fonts.googleapis.com" />
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
<link
href="https://fonts.googleapis.com/css2?family=Oswald:wght@700&family=Zen+Kurenaido&display=swap"
rel="stylesheet"
/>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js"></script>
<title>Fashion</title>
<style>
body {
background-color: #f1f1f1;
font-family: "Zen Kurenaido", sans-serif;
}
.nav-link {
padding: 0;
}
.navbar {
padding: 4px;
}
.banner {
position: relative;
}
.banner__block {
position: absolute;
left: 0;
top: 40%;
color: white;
padding-left: 2%;
}
.comments {
display: none;
}
.commentsVisible {
display: block;
}
</style>
</head>
<body>
<nav class="navbar navbar-expand-sm bg-dark navbar-dark d-none d-md-block">
<div class="container-fluid">
<div class="collapse navbar-collapse" id="collapsibleNavbar">
<ul class="navbar-nav">
<li class="nav-item">
<a class="nav-link text-light px-3" href="#"
><i style="font-size: 16px" class="fa"></i></a
>
</li>
<li class="nav-item">
<a class="nav-link text-light px-3" href="#"
><i style="font-size: 16px" class="fa"></i></a
>
</li>
<li class="nav-item">
<a class="nav-link text-light px-3" href="#"
><i style="font-size: 16px" class="fa"></i></a
>
</li>
<li class="nav-item">
<a class="nav-link text-light px-3" href="#"
><i style="font-size: 16px" class="fa"></i>
</a>
</li>
<li class="nav-item">
<a class="nav-link text-light px-3" href="#"
><i style="font-size: 16px" class="fa"></i></a
>
</li>
<li class="nav-item">
<a class="nav-link text-light px-3" href="#"
><i style="font-size: 16px" class="fa"></i></a
>
</li>
</ul>
</div>
<a class="nav-link nav-item text-light px-3 float-end" href="#"
><i style="font-size: 16px" class="fa"></i></a
>
</div>
</nav>
<div class="text-center py-5 bg-light">
<h1>JANE BLOGLIFE</h1>
<p>
Welcome to the blog of
<span class="bg-dark text-white px-2 py-1">Jane's world</span>
</p>
</div>
<div class="banner">
<img
src="https://www.w3schools.com/w3images/jane.jpg"
alt="Jane posing for her fashion blog"
class="img-fluid"
/>
<div class="banner__block">
<h1 class="lead display-6">Jane's</h1>
<h1 class="display-4 fw-bold">FASHION BLOG</h1>
<button class="btn btn-light opacity-50 p-1">SUBSCRIBE</button>
</div>
</div>
<div class="content container-lg my-3">
<div class="row">
<div class="col-md-8">
<div class="bg-light p-4 my-3">
<h4 class="display-6 text-center">TITLE HEADING</h4>
<h6 class="lead text-center">Title description, May 2, 2016</h6>
<img
src="https://www.w3schools.com/w3images/girl_hat.jpg"
alt="A lady enjoying sunset"
class="img-fluid my-2 mx-auto"
/>
<p>
More Hats! I am crazy about hats these days. Some text about this
blog entry. Fashion fashion and mauris neque quam, fermentum ut
nisl vitae, convallis maximus nisl. Sed mattis nunc id lorem
euismod placerat. Vivamus porttitor magna enim, ac accumsan tortor
cursus at. Phasellus sed ultricies mi non congue ullam corper.
Praesent tincidunt sedtellus ut rutrum. Sed vitae justo
condimentum, porta lectus vitae, ultricies congue gravida diam non
fringilla.
</p>
<p>
Sunt in culpa qui officia deserunt mollit anim id est laborum
consectetur adipiscing elit, sed do eiusmod tempor incididunt ut
labore et dolore magna aliqua. Ut enim ad minim veniam, quis
nostrud exercitation ullamco.
</p>
<div class="d-flex justify-content-between">
<button class="btn btn-light border">
<i class="fa fa-thumbs-up" aria-hidden="true"></i>
Like
</button>
<button class="btn btn-dark" id="postOne">
Replies <span class="bg-light px-2 mx-1 text-dark">1</span>
</button>
</div>
<hr class="container" />
<div class="comments" id="postOneComments">
<div class="row my-2">
<div class="col-3">
<img
src="https://www.w3schools.com/w3images/avatar_smoke.jpg"
alt="Man smoking cigarette"
class="img-fluid"
/>
</div>
<div class="col-9">
<p>
<span class="lead">George</span>
<span class="text-secondary">May 3, 2015, 6:32 PM</span>
</p>
<p>Greate blog post! Following</p>
</div>
</div>
</div>
</div>
<div class="bg-light p-4 my-3">
<h4 class="display-6 text-center">TITLE HEADING</h4>
<h6 class="lead text-center">Title description, May 2, 2016</h6>
<img
src="https://www.w3schools.com/w3images/man_hat.jpg"
alt="A lady enjoying sunset"
class="img-fluid my-2 mx-auto"
/>
<p>
More Hats! I am crazy about hats these days. Some text about this
blog entry. Fashion fashion and mauris neque quam, fermentum ut
nisl vitae, convallis maximus nisl. Sed mattis nunc id lorem
euismod placerat. Vivamus porttitor magna enim, ac accumsan tortor
cursus at. Phasellus sed ultricies mi non congue ullam corper.
Praesent tincidunt sedtellus ut rutrum. Sed vitae justo
condimentum, porta lectus vitae, ultricies congue gravida diam non
fringilla.
</p>
<p>
Sunt in culpa qui officia deserunt mollit anim id est laborum
consectetur adipiscing elit, sed do eiusmod tempor incididunt ut
labore et dolore magna aliqua. Ut enim ad minim veniam, quis
nostrud exercitation ullamco.
</p>
<div class="d-flex justify-content-between">
<button class="btn btn-light border">
<i class="fa fa-thumbs-up" aria-hidden="true"></i>
Like
</button>
<button class="btn btn-dark" id="postTwo">
Replies <span class="bg-light px-2 mx-1 text-dark">2</span>
</button>
</div>
<hr class="container" />
<div class="comments" id="postTwoComments">
<div class="row my-2">
<div class="col-3">
<img
src="https://www.w3schools.com/w3images/girl_train.jpg"
alt="Young lady looking for a cab"
class="img-fluid"
/>
</div>
<div class="col-9">
<p>
<span class="lead">Amber</span>
<span class="text-secondary">April 26, 2015, 10:52 PM</span>
</p>
<p>
Love your blog page! Simply the best! Lorem ipsum dolor sit
amet, consectetur adipiscing elit, sed do eiusmod tempor
incididunt ut labore et dolore magna aliqua.
</p>
</div>
</div>
<div class="row my-2">
<div class="col-3">
<img
src="https://www.w3schools.com/w3images/girl.jpg"
alt="Woman enjoying her boating"
class="img-fluid"
/>
</div>
<div class="col-9">
<p>
<span class="lead">Angie</span>
<span class="text-secondary">April 23, 2015, 9:12 PM</span>
</p>
<p>Love hats!!</p>
</div>
</div>
</div>
</div>
<div class="bg-light p-4 my-3">
<h4 class="display-6 text-center">TITLE HEADING</h4>
<h6 class="lead text-center">Title description, May 2, 2016</h6>
<img
src="https://www.w3schools.com/w3images/runway.jpg"
alt="Models walking on fashion parade"
class="img-fluid my-2 mx-auto"
/>
<p>
<strong>Dont miss!</strong> The runway in New York City this
weekend is gonna be legendary!
</p>
<p>
Some text about this blog entry. Fashion fashion and mauris neque
quam, fermentum ut nisl vitae, convallis maximus nisl. Sed mattis
nunc id lorem euismod placerat. Vivamus porttitor magna enim, ac
accumsan tortor cursus at. Phasellus sed ultricies mi non congue
ullam corper. Praesent tincidunt sedtellus ut rutrum. Sed vitae
justo condimentum, porta lectus vitae, ultricies congue gravida
diam non fringilla.
</p>
<div class="d-flex justify-content-between">
<button class="btn btn-light border">
<i class="fa fa-thumbs-up" aria-hidden="true"></i> Like
</button>
<button class="btn btn-dark" id="postThree">
Replies <span class="bg-light px-2 mx-1 text-dark">3</span>
</button>
</div>
<hr class="container" />
<div class="comments" id="postThreeComments">
<div class="row my-2">
<div class="col-3">
<img
src="https://www.w3schools.com/w3images/girl_mountain.jpg"
alt="Young girl enjoying the sunset on a hill"
class="img-fluid"
/>
</div>
<div class="col-9">
<p>
<span class="lead">Jane </span>
<span class="text-secondary">April 10, 2015, 7:22 PM</span>
</p>
<p>That was a great runway show! Thanks for everything.</p>
</div>
</div>
<div class="row my-2">
<div class="col-3">
<img
src="https://www.w3schools.com/w3images/boy.jpg"
alt="Image of a man facing the sea"
class="img-fluid"
/>
</div>
<div class="col-9">
<p>
<span class="lead">John</span>
<span class="text-secondary">April 8, 2015, 10:32 PM</span>
</p>
<p>
Keep up the GREAT work! I am cheering for you!! Lorem ipsum
dolor sit amet, consectetur adipiscing elit, sed do eiusmod
tempor incididunt.
</p>
</div>
</div>
<div class="row my-2">
<div class="col-3">
<img
src="https://www.w3schools.com/w3images/girl_hood.jpg"
alt="Young man facing a mountain covered with fog"
class="img-fluid"
/>
</div>
<div class="col-9">
<p>
<span class="lead">Anja</span>
<span class="text-secondary">April 7, 2015, 9:12 PM</span>
</p>
<p>Cant wait for the runway to start!</p>
</div>
</div>
</div>
</div>
</div>
<div class="col-md-4 my-3">
<div class="card">
<img
class="card-img-top"
src="https://www.w3schools.com/w3images/avatar_girl2.jpg"
alt="Card image"
/>
<div class="card-body bg-dark text-white">
<h4 class="card-title">My Name</h4>
<p class="card-text">
Just me, myself and I, exploring the universe of uknownment. I
have a heart of love and a interest of lorem ipsum and mauris
neque quam blog. I want to share my world with you.
</p>
</div>
</div>
<div class="my-3">
<p class="lead bg-dark text-white p-2 m-0">Popular Posts</p>
<div class="bg-light p-1" style="width: 100%; height: auto">
<div class="row p-2">
<div class="col-3 border border-0 border-bottom">
<img
src="https://www.w3schools.com/w3images/avatar_smoke.jpg"
alt="Man smoking cigarette"
class="img-fluid"
/>
</div>
<div class="col-9 border border-0 border-bottom">
<h4>Denim</h4>
<p>Sed mattis nunc</p>
</div>
</div>
<div class="row p-2">
<div class="col-3 border border-0 border-bottom">
<img
src="https://www.w3schools.com/w3images/bandmember.jpg"
alt="Man smoking cigarette"
class="img-fluid"
/>
</div>
<div class="col-9 border border-0 border-bottom">
<h4>Denim</h4>
<p>Sed mattis nunc</p>
</div>
</div>
<div class="row p-2">
<div class="col-3 border border-0 border-bottom">
<img
src="https://www.w3schools.com/w3images/workshop.jpg"
alt="Man smoking cigarette"
class="img-fluid"
/>
</div>
<div class="col-9 border border-0 border-bottom">
<h4>Denim</h4>
<p>Sed mattis nunc</p>
</div>
</div>
<div class="row p-2">
<div class="col-3">
<img
src="https://www.w3schools.com/w3images/avatar_smoke.jpg"
alt="Man smoking cigarette"
class="img-fluid"
/>
</div>
<div class="col-9">
<h4>Denim</h4>
<p>Sed mattis nunc</p>
</div>
</div>
</div>
</div>
<div class="my-3">
<p class="lead bg-dark text-white p-2 m-0">Advertise</p>
<div
class="bg-light p-1 d-flex justify-content-center align-items-center"
style="width: 100%; height: 200px"
>
<div class="bg-secondary w-75 h-75"></div>
</div>
</div>
<div class="my-3">
<p class="lead bg-dark text-white p-2 m-0">Inspiration</p>
<div class="bg-light p-2" style="width: 100%; height: auto">
<div class="row m-2">
<div class="col-6">
<img
src="https://www.w3schools.com/w3images/jeans.jpg"
alt="cow boy"
class="img-fluid"
/>
</div>
<div class="col-6">
<img
src="https://www.w3schools.com/w3images/avatar_hat.jpg"
alt="cow boy"
class="img-fluid"
/>
</div>
</div>
<div class="row m-2">
<div class="col-6">
<img
src="https://www.w3schools.com/w3images/team1.jpg"
alt="cow boy"
class="img-fluid"
/>
</div>
<div class="col-6">
<img
src="https://www.w3schools.com/w3images/team4.jpg"
alt="cow boy"
class="img-fluid"
/>
</div>
</div>
</div>
</div>
<div class="my-3">
<p class="lead bg-dark text-white p-2 m-0">Follow Me</p>
<div
class="bg-light p-1 d-flex justify-content-evenly p-4"
style="width: 100%; height: auto"
>
<i style="font-size: 20px" class="fa"></i>
<i style="font-size: 20px" class="fa"></i>
<i style="font-size: 20px" class="fa"></i>
<i style="font-size: 20px" class="fa"></i>
</div>
</div>
<div class="my-3">
<p class="lead bg-dark text-white p-2 m-0">Subscribe</p>
<div class="bg-light p-3" style="width: 100%; height: auto">
<p>
Enter your e-mail below and get notified on the latest blog
posts.
</p>
<div class="text-center">
<input
type="email"
class="form-control"
placeholder="Enter e-mail"
/>
<br />
<button class="btn btn-danger form-control">Subscribe</button>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="bg-secondary w-100 p-5" style="height: 200px">
<button class="btn btn-dark p-2 mt-2 mb-5">To the top</button>
<p class="text-white">
Powered by <span class="text-decoration-underline">BS5</span>
<kbd>Avinash</kbd>
</p>
</div>
</body>
<script type="text/javascript">
document.getElementById("postOne").addEventListener("click", function () {
document
.getElementById("postOneComments")
.classList.toggle("commentsVisible");
});
document.getElementById("postTwo").addEventListener("click", function () {
document
.getElementById("postTwoComments")
.classList.toggle("commentsVisible");
});
document.getElementById("postThree").addEventListener("click", function () {
document
.getElementById("postThreeComments")
.classList.toggle("commentsVisible");
});
</script>
</html>