-
Notifications
You must be signed in to change notification settings - Fork 1
/
home-page.html
487 lines (420 loc) · 28.1 KB
/
home-page.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
<!doctype html>
<html lang="en">
<head>
<!-- Required meta tags -->
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<!-- Bootstrap CSS -->
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@4.6.1/dist/css/bootstrap.min.css"
integrity="sha384-zCbKRCUGaJDkqS1kPbPd7TveP5iyJE0EjAuZQTgFLD2ylzuqKfdKlfG/eSrtxUkn" crossorigin="anonymous">
<link rel="stylesheet" href="./home-page.css">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap-icons@1.7.1/font/bootstrap-icons.css">
<link rel="icon" href="./assets/spotify-icons-logos/icons/01_RGB/02_PNG/Spotify_Icon_RGB_White.png"
type="image/icon type">
<link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">
<title>Spotify - Web Player</title>
</head>
<body>
<div class="container-fluid">
<div class="row">
<div class="col-2 side-bar show">
<div class="d-flex py-3"><a href="./home-page.html"><img src="./assets/Spotify_Logo_RGB_White.png"
alt="logo" height="40px"></a></div>
<a href="./home-page.html">
<div class="home d-flex"><i class="bi bi-house-door-fill my-2 px-3"></i><strong>Home</strong></div>
</a>
<div class="search d-flex"><i class="bi bi-search my-2 px-3"></i><strong>Search</strong></div>
<div class="library d-flex"><i class="bi bi-list my-2 px-3"></i><strong>Your Library</strong></div>
<div class="square d-flex mt-3"><i class="bi bi-plus-square-fill my-2 px-3"></i><strong>Create
Playlists</strong></div>
<div class="liked-songs d-flex mt-1"><i class="bi bi-heart-fill px-3"></i><strong>Liked Songs</strong>
</div>
<hr>
<div class="sidebar-list mr-n2">
<p class="my-1">Boiler Room: Room 1 🔥</p>
<p class="my-1">L'Imperatrice Mix</p>
<p class="my-1">Oceanvs Orientalis 🌙</p>
<p class="my-1">Afro Indie</p>
<p class="my-1">Taba Brasilis 🍁</p>
<p class="my-1">Discover Weekly</p>
<p class="my-1">Modern Psychedelia</p>
<p class="my-1">Voix de l'Hexagone</p>
<p class="my-1">Afrobeat Essencials ⚡</p>
<p class="my-1">Cuendano Tabado</p>
<p class="my-1">Boiler Room: Room 1</p>
<p class="my-1">L'Imperatrice Mix</p>
<p class="my-1">Oceanvs Orientalis</p>
<p class="my-1">Afro Indie</p>
<p class="my-1">Taba Brasilis</p>
<p class="my-1">Discover Weekly</p>
<p class="my-1">Modern Psychedelia 🌈</p>
<p class="my-1">Voix de l'Hexagone</p>
<p class="my-1">Afrobeat Essencials</p>
<p class="my-1">Cuendano Tabado</p>
</div>
<div class="install d-flex pt-1 mb-2"><i class="bi bi-arrow-down-circle pr-2"></i><strong>Install
App</strong></div>
</div>
<div class="col-10 bg-grad ml-auto">
<div class="container pt-3">
<div class="container">
<div class="row d-flex justify-content-between align-items-center">
<div class="d-flex align-items-center mt-n3">
<div>
<i id="toggle-btn" class="bi bi-toggle-on position-relative"></i>
</div>
<div>
<i class="bi bi-circle-fill position-relative"
style="font-size: xx-large; color: rgba(0, 0, 0, 0.486);">
<span class="material-icons chevrons position-absolute">chevron_left</span>
</i>
<i class="bi bi-circle-fill position-relative"
style="font-size: xx-large; color: rgba(0, 0, 0, 0.486);">
<span class="material-icons chevrons position-absolute">chevron_right</span>
</i>
</div>
</div>
<div class="dropdown align-items-center">
<button class="btn btn-secondary dropdown-toggle"
style="font-size: 15px; font-weight: 500;" type="button" id="dropdownMenuButton"
data-toggle="dropdown" aria-expanded="false">
<i class="bi bi-person-circle mr-2"></i>Username</button>
<div class="dropdown-menu dropdown-menu-right dropdown-secondary"
aria-labelledby="dropdownMenuButton">
<a class="dropdown-item" href="#">Account</a>
<a class="dropdown-item" href="#">Profile</a>
<a class="dropdown-item" href="./login-page.html">Log out</a>
</div>
</div>
</div>
</div>
</div>
<div class="container pt-1">
<p style="font-size: 28px; font-weight: 700; color:white;">Good morning</p>
<a href="./artist-page.html">
<div class="row card-deck justify-content-around">
<div class="small-card align-items-center col-sm-6 col-md-4 col-lg-2 position-relative">
<div class="play-btn position-absolute"><i
class="bi bi-play-circle-fill play-circle position-relative"></i></div>
<img src="https://picsum.photos/60/60" class="small-card-img ml-n3" alt="cover">
<strong class="text-white mx-2">Burning Jazz-rock Fusion</strong>
</div>
<div class="small-card align-items-center col-sm-6 col-md-4 col-lg-2 position-relative">
<div class="play-btn position-absolute"><i
class="bi bi-play-circle-fill play-circle position-relative"></i></div>
<img src="https://picsum.photos/60/60" class="small-card-img ml-n3" alt="cover">
<strong class="text-white mx-2">Discover Weekly</strong>
</div>
<div class="small-card align-items-center col-sm-6 col-md-4 col-lg-2 position-relative">
<div class="play-btn position-absolute"><i
class="bi bi-play-circle-fill play-circle position-relative"></i></div>
<img src="https://picsum.photos/60/60" class="small-card-img ml-n3" alt="cover">
<strong class="text-white mx-2">TGIF</strong>
</div>
<div class="small-card align-items-center col-sm-6 col-md-4 col-lg-2 position-relative">
<div class="play-btn position-absolute"><i
class="bi bi-play-circle-fill play-circle position-relative"></i></div>
<img src="https://picsum.photos/60/60" class="small-card-img ml-n3" alt="cover">
<strong class="text-white mx-2">Chilling</strong>
</div>
<div class="small-card align-items-center col-sm-6 col-md-4 col-lg-2 position-relative">
<div class="play-btn position-absolute"><i
class="bi bi-play-circle-fill play-circle position-relative"></i></div>
<img src="https://picsum.photos/60/60" class="small-card-img ml-n3" alt="cover">
<strong class="text-white mx-2">Music for Studying</strong>
</div>
<div class="small-card align-items-center col-sm-6 col-md-4 col-lg-2 position-relative">
<div class="play-btn position-absolute"><i
class="bi bi-play-circle-fill play-circle position-relative"></i></div>
<img src="https://picsum.photos/60/60" class="small-card-img ml-n3" alt="cover">
<strong class="text-white mx-2">FKJ</strong>
</div>
<div class="small-card align-items-center col-sm-6 col-md-4 col-lg-2 position-relative">
<div class="play-btn position-absolute"><i
class="bi bi-play-circle-fill play-circle position-relative"></i></div>
<img src="https://picsum.photos/60/60" class="small-card-img ml-n3" alt="cover">
<strong class="text-white mx-2">Oceanvs Orientalis</strong>
</div>
<div class="small-card align-items-center col-sm-6 col-md-4 col-lg-2 position-relative">
<div class="play-btn position-absolute"><i
class="bi bi-play-circle-fill play-circle position-relative"></i></div>
<img src="https://picsum.photos/60/60" class="small-card-img ml-n3" alt="cover">
<strong class="text-white mx-2">Nicola Cruz</strong>
</div>
<div class="small-card align-items-center col-sm-6 col-md-4 col-lg-2 position-relative">
<div class="play-btn position-absolute"><i
class="bi bi-play-circle-fill play-circle position-relative"></i></div>
<img src="https://picsum.photos/60/60" class="small-card-img ml-n3" alt="cover">
<strong class="text-white mx-2">Carrot Green</strong>
</div>
<div class="small-card align-items-center col-sm-6 col-md-4 col-lg-2 position-relative">
<div class="play-btn position-absolute"><i
class="bi bi-play-circle-fill play-circle position-relative"></i></div>
<img src="https://picsum.photos/60/60" class="small-card-img ml-n3" alt="cover">
<strong class="text-white mx-2">Céu</strong>
</div>
</div>
</a>
</div>
<div class="container my-3">
<a href="./album-page.html">
<div class="row justify-content-between mx-2 align-items-end">
<p style="font-size: 20px; font-weight: 700; color:white;">Recently played</p>
<p style="float: right; font-size: 12px; font-weight: 700; color:white;">SEE ALL</p>
</div>
<div class="row card-deck justify-content-around mx-n3">
<div class="card col-sm-6 col-md-4 col-lg-2 position-relative">
<div class="play-btn2 position-absolute"><i
class="bi bi-play-circle-fill play-circle2 position-relative"></i></div>
<img src="https://picsum.photos/300/300" class="card-img-top pt-3" alt="cover">
<div class="card-body mx-n3 mt-n2">
<p class="card-text">Some quick example text to build on the card title and make up
the bulk of the card's content.</p>
</div>
</div>
<div class="card col-sm-6 col-md-4 col-lg-2 position-relative">
<div class="play-btn2 position-absolute"><i
class="bi bi-play-circle-fill play-circle2 position-relative"></i></div>
<img src="https://picsum.photos/300/300" class="card-img-top pt-3" alt="cover">
<div class="card-body mx-n3 mt-n2">
<p class="card-text">Some quick example text to build on the card title and make up
the bulk of the card's content.</p>
</div>
</div>
<div class="card col-sm-6 col-md-4 col-lg-2 position-relative">
<div class="play-btn2 position-absolute"><i
class="bi bi-play-circle-fill play-circle2 position-relative"></i></div>
<img src="https://picsum.photos/300/300" class="card-img-top pt-3" alt="cover">
<div class="card-body mx-n3 mt-n2">
<p class="card-text">Some quick example text to build on the card title and make up
the bulk of the card's content.</p>
</div>
</div>
<div class="card col-sm-6 col-md-4 col-lg-2 position-relative">
<div class="play-btn2 position-absolute"><i
class="bi bi-play-circle-fill play-circle2 position-relative"></i></div>
<img src="https://picsum.photos/300/300" class="card-img-top pt-3" alt="cover">
<div class="card-body mx-n3 mt-n2">
<p class="card-text">Some quick example text to build on the card title and make up
the bulk of the card's content.</p>
</div>
</div>
<div class="card col-sm-6 col-md-4 col-lg-2 position-relative">
<div class="play-btn2 position-absolute"><i
class="bi bi-play-circle-fill play-circle2 position-relative"></i></div>
<img src="https://picsum.photos/300/300" class="card-img-top pt-3" alt="cover">
<div class="card-body mx-n3 mt-n2">
<p class="card-text">Some quick example text to build on the card title and make up
the bulk of the card's content.</p>
</div>
</div>
</div>
</a>
</div>
<div class="container my-3">
<p style=" margin-left: 7px; font-size: 20px; font-weight: 700; color:white;">Shows to try</p>
<div class="row justify-content-between mx-2 mt-n2 align-items-end">
<p class="sub-text mt-n2">Podcasts we think you'll get hooked on</p>
<p style="float: right; font-size: 12px; font-weight: 700; color:white;">SEE ALL</p>
</div>
<div class="row card-deck justify-content-around mx-n3">
<div class="card col-sm-6 col-md-4 col-lg-2 pt-3 position-relative">
<div class="play-btn2 position-absolute"><i
class="bi bi-play-circle-fill play-circle2 position-relative"></i></div>
<img src="https://picsum.photos/200/200" class="pod-img card-img-top" alt="cover">
<div class="card-body mx-n3 mt-n2">
<p class="card-text">Some quick example text to build on the card title and make up
the bulk of the card's content.</p>
</div>
</div>
<div class="card col-sm-6 col-md-4 col-lg-2 pt-3 position-relative">
<div class="play-btn2 position-absolute"><i
class="bi bi-play-circle-fill play-circle2 position-relative"></i></div>
<img src="https://picsum.photos/200/200" class="pod-img card-img-top" alt="cover">
<div class="card-body mx-n3 mt-n2">
<p class="card-text">Some quick example text to build on the card title and make up
the bulk of the card's content.</p>
</div>
</div>
<div class="card col-sm-6 col-md-4 col-lg-2 pt-3 position-relative">
<div class="play-btn2 position-absolute"><i
class="bi bi-play-circle-fill play-circle2 position-relative"></i></div>
<img src="https://picsum.photos/200/200" class="pod-img card-img-top" alt="cover">
<div class="card-body mx-n3 mt-n2">
<p class="card-text">Some quick example text to build on the card title and make up
the bulk of the card's content.</p>
</div>
</div>
<div class="card col-sm-6 col-md-4 col-lg-2 pt-3 position-relative">
<div class="play-btn2 position-absolute"><i
class="bi bi-play-circle-fill play-circle2 position-relative"></i></div>
<img src="https://picsum.photos/200/200" class="pod-img card-img-top" alt="cover">
<div class="card-body mx-n3 mt-n2">
<p class="card-text">Some quick example text to build on the card title and make up
the bulk of the card's content.</p>
</div>
</div>
<div class="card col-sm-6 col-md-4 col-lg-2 pt-3 position-relative">
<div class="play-btn2 position-absolute"><i
class="bi bi-play-circle-fill play-circle2 position-relative"></i></div>
<img src="https://picsum.photos/200/200" class="pod-img card-img-top" alt="cover">
<div class="card-body mx-n3 mt-n2">
<p class="card-text">Some quick example text to build on the card title and make up
the bulk of the card's content.</p>
</div>
</div>
</div>
</div>
<div class="container my-3 last-container">
<p style=" margin-left: 7px; font-size: 20px; font-weight: 700; color:white;">Your favorite artists
</p>
<div class="row justify-content-between mx-2 mt-n2 align-items-end">
<p class="sub-text mt-n2">Inspired by your recent activity</p>
<p style="float: right; font-size: 12px; font-weight: 700; color:white;">SEE ALL</p>
</div>
<div class="row card-deck justify-content-around mx-n3">
<div class="card col-sm-6 col-md-4 col-lg-2 pt-3 position-relative">
<div class="play-btn2 position-absolute"><i
class="bi bi-play-circle-fill play-circle2 position-relative"></i></div>
<img src="https://picsum.photos/100/100" class="art-img card-img-top" alt="cover">
<div class="card-body mx-n3 mt-n2">
<p class="card-text">Some quick example text to build on the card title and make up
the bulk of the card's content.</p>
</div>
</div>
<div class="card col-sm-6 col-md-4 col-lg-2 pt-3 position-relative">
<div class="play-btn2 position-absolute"><i
class="bi bi-play-circle-fill play-circle2 position-relative"></i></div>
<img src="https://picsum.photos/100/100" class="art-img card-img-top" alt="cover">
<div class="card-body mx-n3 mt-n2">
<p class="card-text">Some quick example text to build on the card title and make up
the bulk of the card's content.</p>
</div>
</div>
<div class="card col-sm-6 col-md-4 col-lg-2 pt-3 position-relative">
<div class="play-btn2 position-absolute"><i
class="bi bi-play-circle-fill play-circle2 position-relative"></i></div>
<img src="https://picsum.photos/100/100" class="art-img card-img-top" alt="cover">
<div class="card-body mx-n3 mt-n2">
<p class="card-text">Some quick example text to build on the card title and make up
the bulk of the card's content.</p>
</div>
</div>
<div class="card col-sm-6 col-md-4 col-lg-2 pt-3 position-relative">
<div class="play-btn2 position-absolute"><i
class="bi bi-play-circle-fill play-circle2 position-relative"></i></div>
<img src="https://picsum.photos/100/100" class="art-img card-img-top" alt="cover">
<div class="card-body mx-n3 mt-n2">
<p class="card-text">Some quick example text to build on the card title and make up
the bulk of the card's content.</p>
</div>
</div>
<div class="card col-sm-6 col-md-4 col-lg-2 pt-3 position-relative">
<div class="play-btn2 position-absolute"><i
class="bi bi-play-circle-fill play-circle2 position-relative"></i></div>
<img src="https://picsum.photos/100/100" class="art-img card-img-top" alt="cover">
<div class="card-body mx-n3 mt-n2">
<p class="card-text">Some quick example text to build on the card title and make up
the bulk of the card's content.</p>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<footer>
<div class="play-bar container-fluid mb-n4">
<div class="row align-items-center">
<div class="col-12 col-12 m-0 m-md-0 col-lg-3 align-items-center d-inline-block play-hidden">
<div class="d-flex justify-content-around align-items-center">
<img src="https://picsum.photos/50/50" style="width:55px" alt="">
<div class="d-inline-block">
<p class="p-0 m-0">We Will Rock You <br> <small>Queen</small></p>
</div>
<i class="far fa-heart"></i>
<i class="bi bi-pip"></i>
</div>
</div>
<div class="col-12 col-12 m-0 pb-n5 m-md-0 col-lg-7 play-hidden-center">
<div class="d-flex justify-content-center align-items-center">
<i class="fas fa-random mx-2"></i>
<i class="fas fa-step-backward mx-2"></i>
<i class="bi bi-play-circle-fill mx-2 play-bottom"></i>
<i class="fas fa-step-forward mx-2"></i>
<i class="fas fa-retweet mx-2"></i>
</div>
<div class="d-flex justify-content-center mt-n2 align-items-center">
<span class="mr-2" style="font-size: 14px;">3:45</span>
<hr>
<span class="ml-2" style="font-size: 14px;">4:01</span>
</div>
</div>
<div class="col-12 m-0 m-md-0 col-lg-2 d-flex justify-content-around align-items-center play-hidden">
<i class="bi bi-mic"></i>
<i class="bi bi-card-text"></i>
<i class="bi bi-pc-display"></i>
<i class="bi bi-volume-up"></i>
<span class="volume">
<hr>
</span>
</div>
</div>
</div>
</footer>
<script>
const toggleSideBar = function () {
let sideBar = document.querySelector(".side-bar")
let col10 = document.querySelector(".bg-grad")
sideBar.classList.toggle("d-none")
col10.classList.toggle("col-10")
col10.classList.toggle("col-12")
let toggle = document.querySelector("#toggle-btn")
toggle.classList.toggle("bi-toggle-on")
toggle.classList.toggle("bi-toggle-off")
}
let toggleBtn = document.querySelector("#toggle-btn")
toggleBtn.addEventListener("click", toggleSideBar)
const GetRandomColor = function () {
let red = Math.floor(Math.random() * 255)
let green = Math.floor(Math.random() * 255)
let blue = Math.floor(Math.random() * 255)
return 'rgb(' + red + ', ' + green + ', ' + blue + ')'
}
const changeBgColor = function () {
let randomColor = GetRandomColor()
let bgGrad = document.querySelector(".bg-grad")
bgGrad.style.background = `linear-gradient(0deg, rgba(18, 18, 18, 1) 0%, ${randomColor} 100%)`
}
let changeBg = document.getElementsByClassName("small-card")
for (let i = 0; i < changeBg.length; i++) {
changeBg[i].addEventListener("mouseenter", changeBgColor)
}
window.onload = function () {
changeBgSize();
$(window).bind('resize',function(){
changeBgSize()
});
}
const changeBgSize = function () {
let bgGrad = document.querySelector(".bg-grad")
if (window.innerWidth < 1000) {
bgGrad.classList.remove("col-10");
bgGrad.classList.add("col-12");
}
else {
bgGrad.classList.remove("col-12");
bgGrad.classList.add("col-10");
}
}
</script>
<script src="https://kit.fontawesome.com/73c4ca1b43.js" crossorigin="anonymous"></script>
<!-- Option 1: jQuery and Bootstrap Bundle (includes Popper) -->
<script src="https://cdn.jsdelivr.net/npm/jquery@3.5.1/dist/jquery.slim.min.js"
integrity="sha384-DfXdz2htPH0lsSSs5nCTpuj/zy4C+OGpamoFVy38MVBnE+IbbVYUew+OrCXaRkfj"
crossorigin="anonymous"></script>
<script src="https://cdn.jsdelivr.net/npm/bootstrap@4.6.1/dist/js/bootstrap.bundle.min.js"
integrity="sha384-fQybjgWLrvvRgtW6bFlB7jaZrFsaBXjsOMm/tB9LTS58ONXgqbR9W8oWht/amnpF"
crossorigin="anonymous"></script>
</body>
</html>