-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
490 lines (482 loc) · 14.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
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Platzi Video</title>
<link rel="stylesheet" href="css/all.css">
<style>
img {
width: 100%
}
body {
display: grid;
grid-template-columns: 2fr 6fr;
grid-template-areas: "navbar video "
"navbar info "
"navbar comensuger";
margin: 0;
}
.Platzi {
grid-area: navbar;
background: #16182b;
padding: 2em 1em;
transition: .3s;
}
.Platzi-title {
color: white;
font-weight: 400
}
.Platzi-title span {
font-weight: 600;
background: linear-gradient(to left, #db1178, #c90021);
-webkit-background-clip: text;
color: transparent;
}
.Platzi-list {
padding: 0 1em;
width: 320px;
display: initial;
}
.Platzi-list-title {
color: rgba(255, 255, 255, .8);
font-weight: lighter;
font-size: 1.8rem;
}
.Platzi-list-item {
color: rgba(255, 255, 255, .8);
padding-bottom: 1em;
padding-left: 1em;
}
.Platzi-list-item a {
text-decoration: none;
color: rgba(255, 255, 255, .8);
font-size: 1.5em;
}
.Platzi-friend-title{
color: rgba(255, 255, 255, .8);
font-size: 1.8rem;
font-weight: lighter;
}
.Platzi-friend-item {
display: -webkit-box;
display: flex;
margin-bottom: 1em;
font-size: 1.5rem;
}
.Platzi-friend-item-image {
width: 45px;
height: 45px;
margin: 0;
border-radius: 50%;
margin-right: 1em
}
.Platzi-friend-item-name {
color: rgba(255, 255, 255, .8);
}
.Platzi.active {
height: 100%; /*al dar click y activar la clase active, se desplega el menu con elto de 100%*/
}
.Video {
grid-area: video;
position: relative;
}
.Video-overlay {
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
background: rgba(0, 0, 0, .3);
color: rgba(255, 255, 255, .98824);
text-decoration: none;
padding: 4em 3em;
display: grid;
grid-template-rows: 2rem 1fr;
transition: .3s
}
.Video-overlay i {
font-size: 2rem
}
.Video-overlay-play {
align-self: center;
justify-self: center;
border-radius: 50%;
border: 5px solid rgba(255, 255, 255, .98824);
width: 100px;
height: 100px;
display: flex;
display: -webkit-box;
-webkit-box-pack: center;
justify-content: center;
-webkit-box-align: center;
align-items: center
}
.Info {
grid-area: info;
padding: 2em 1em;
border-bottom: 4px solid #d0d0d0
}
.Info-title {
color: #43475c;
margin: 0;
font-weight: 400
}
.Info-views {
margin-top: .5em;
color: #b9b8b9
}
.Info-social {
margin: 0;
padding: 0;
list-style: none;
display: flex;
justify-content: space-evenly;
align-items: center;
}
.container-list {
display: grid;
grid-template-columns: 3fr 5fr;
-webkit-box-align: center;
align-items: center;
text-align: center;
}
.Info-social-btn a{
text-decoration: none;
}
.Info-social-btn:nth-child(1) a {
background: linear-gradient(to left, #db1178, #c90021);
color: white;
border-radius: .5em;
padding: .5em 1em;
}
.Info-social-btn:nth-child(2) a,
.Info-social-btn:nth-child(3) a {
color: #4c4e61
}
.Info-social-btn-list-item {
margin-right: 1em;
}
.Info-social-btn-list-item a {
color: white;
padding: .5em 1em;
border-radius: 1rem;
text-decoration: none;
}
.Info-social-btn-list-item:nth-child(1) a {
background: #8d3cf4;
}
.Info-social-btn-list-item:nth-child(2) a {
background: #27fdbc;
}
.Info-social-btn-list-item:nth-child(3) a {
background: #c90021;
}
.Info-social-btn-list-item:nth-child(4) a {
background: #db1178;
}
.ComenSuger {
display: grid;
grid-area: comensuger;
grid-template-columns: 3fr 2fr;
grid-gap: 30px;
padding: 2em 10em 2em 2em;
}
.comments-title {
margin: 0;
color: #43475c;
font-weight: 400;
}
.suggestions-title {
margin: 0;
color: #43475c;
font-weight: 400;
margin-bottom: 1em;
}
.comments-form-image-profile{
width: 45px;
height: 45px;
border-radius: 50%;
}
.commensts-list-item-profile-img {
width: 50px;
height: 50px;
margin-right: 20px;
border-radius: 50%;
}
.commensts-list-item-profile {
display: flex;
align-items: center;
}
.commensts-list-item-comentario {
display: block;
}
.commensts-list-item-profile-comment {
margin: 0;
color: #858388;
}
.commensts-list-item-profile-name {
margin: 0;
font-size: 1.2rem;
font-weight: 400;
color: #858388;
}
.suggestions-title-item {
color: #858388;
text-decoration: none;
}
.suggestions-title-item-img {
border-radius: .25rem;
box-shadow: 2px 4px 20px 0 #afadad;
}
.comments-form {
display: flex;
border-radius: .5rem;
margin-top: 1em;
border-bottom: 3px solid #d2d2d2;
background: #f1eff1;
margin-left: 32px;
}
.comments-form-input {
width: -webkit-fill-available;
background: #f1eff1;
border: none;
}
input, input::-webkit-input-placeholder {
font-size: 1.3rem;
padding-left: 0.5em;
}
.comments-form-image {
margin: 4px 15px 1px 25px;
}
.comments-list {
margin-top: 1em;
}
@media screen and (max-width:1024px) {
body {
grid-template-columns: 1fr;
grid-template-areas: "navbar" "video" "info" "comensuger"
}
.Platzi {
display: grid;
padding: 2em 4em;
grid-template-columns: 5fr 2fr;
grid-template-areas: "titulo boton" "lista lista" "friend friend";
height: 30px;
overflow: hidden;
}
.Platzi-title {
margin: 0;
grid-area: titulo
}
.Platzi-boton {
display: block;
grid-area: boton;
color: white;
font-size: 1.8rem;
justify-self: end;
}
.Platzi-boton:hover {
cursor: pointer; /*cuando pongo el mouse encima aparece la manito como si fuera un enlace*/
}
.Platzi-list {
grid-area: lista;
justify-self: center;
}
.Platzi-list-title {
text-align: center
}
.Platzi-friend {
grid-area: friend;
justify-self: center
}
.Platzi-friend-title {
text-align: center
}
.Info-social-btn-list-item {
margin-right: .2em;
}
.container-list {
display: grid;
grid-template-columns: 3fr 4fr;
-webkit-box-align: center;
align-items: center;
text-align: center;
}
}
@media screen and (max-width:700px) {
.Platzi {
padding: 2em 1.5em
}
.Video-overlay {
padding: 1em
}
.Video-overlay-play {
width: 90px;
height: 90px
}
.Info-social {
margin: 0.5em 0;
}
.ComenSuger {
grid-template-columns: 1fr;
padding: 2em
}
.commensts-list-item {
grid-gap: 2px 10px
}
.container-list {
display: grid;
grid-template-columns: auto;
grid-template-rows: 2fr 1fr;
-webkit-box-align: center;
align-items: center;
text-align: center;
}
}
</style>
</head>
<body>
<nav class="Platzi" id="navbar">
<h1 class="Platzi-title">Platzi <span>Video</span></h1>
<span class="fa fa-bars Platzi-boton" id="boton"></span>
<ol class="Platzi-list">
<h4 class="Platzi-list-title">My playlist</h4> <!--Si lo dejo antes del ol en el responsive el titulo queda debajo de la lista-->
<li class="Platzi-list-item"><a href="#">5 Reasons To Chose a Notebook Over A computer Desktop</a></li>
<li class="Platzi-list-item"><a href="#">How To Cook A Tender Juicy Steak</a></li>
<li class="Platzi-list-item"><a href="#">How To Remove Kidney Stones</a></li>
<li class="Platzi-list-item"><a href="#">The Science Of Superstitions</a></li>
<li class="Platzi-list-item"><a href="#">5 Reasons to Chose A Notebook Over A Computer Desktop</a></li>
<li class="Platzi-list-item"><a href="#">Get Around Easly With A New York Limousine Service</a></li>
<li class="Platzi-list-item"><a href="#">How To Cook A Tender Juicy</a></li>
<li class="Platzi-list-item"><a href="#">Goy to Remove Kidney Stonces</a></li>
<li class="Platzi-list-item"><a href="#">How To Remove Kidney Stones</a></li>
<li class="Platzi-list-item"><a href="#">The Science Of Superstitions</a></li>
</ol>
<div class="Platzi-friend">
<h4 class="Platzi-friend-title">Playlists de Amigos</h4>
<div class="Platzi-friend-item">
<img class="Platzi-friend-item-image" src="img/perfil2.jpg" alt="perfil2">
<p class="Platzi-friend-item-name">Gordon Caroll</p>
</div>
<div class="Platzi-friend-item">
<img class="Platzi-friend-item-image" src="img/perfil2.jpg" alt="perfil2">
<p class="Platzi-friend-item-name">Gordon Caroll</p>
</div>
<div class="Platzi-friend-item">
<img class="Platzi-friend-item-image" src="img/perfil2.jpg" alt="perfil2">
<p class="Platzi-friend-item-name">Gordon Caroll</p>
</div>
<div class="Platzi-friend-item">
<img class="Platzi-friend-item-image" src="img/perfil2.jpg" alt="perfil2">
<p class="Platzi-friend-item-name">Gordon Caroll</p>
</div>
</div>
</nav>
<section class="Video">
<img class="Video-image" src="img/bg.jpg" alt="background">
<a class="Video-overlay" href="javascript:void(0)">
<i class="Video-overlay-arrow fa fa-arrow-left"></i>
<i class="Video-overlay-play fa fa-play"></i>
</a>
</section>
<section class="Info">
<h2 class="Info-title">New Order - Bizarre Love Triangle</h2>
<p class="Info-views">124.886 vistas</p>
<div class="container-list">
<ul class="Info-social">
<li class="Info-social-btn"><a href="javascript:void(0)">Agregar a mi lista</a></li>
<li class="Info-social-btn">
<a href="javascript:void(0)">
<i class="fa fa-share"></i>
<p>Compartir</p>
</a>
</li>
<li class="Info-social-btn">
<a href="javascript:void(0)">
<i class="fa fa-cloud-download-alt"></i>
<p>Descargar</p>
</a>
</li>
</ul>
<ul class="Info-social">
<li class="Info-social-btn-list-item"><a href="javascript:void(0)">Naturaleza</a></li>
<li class="Info-social-btn-list-item"><a href="javascript:void(0)">Relajante</a></li>
<li class="Info-social-btn-list-item"><a href="javascript:void(0)">Musica</a></li>
<li class="Info-social-btn-list-item"><a href="javascript:void(0)">Estudiar</a></li>
</ul>
</div>
</section>
<div class="ComenSuger">
<section class="Comments">
<h3 class="comments-title">Comentarios</h3>
<form class="comments-form">
<figure class="comments-form-image">
<img class="comments-form-image-profile" src="img/perfil2.jpg" alt="perfil">
</figure>
<input class="comments-form-input" type="text" placeholder="Añade un comentario">
</form>
<div class="commensts-list">
<div class="commensts-list-item">
<figure class="commensts-list-item-profile">
<img class="commensts-list-item-profile-img" src="img/perfil2.jpg" alt="perfil1">
<div class="commensts-list-item-comentario">
<h2 class="commensts-list-item-profile-name">Gordon Carrol</h2>
<p class="commensts-list-item-profile-comment">Barbeue Sauce For a Perfect Barbeque</p>
</div>
</figure>
</div>
<div class="commensts-list-item">
<figure class="commensts-list-item-profile">
<img class="commensts-list-item-profile-img" src="img/perfil2.jpg" alt="perfil2">
<div class="commensts-list-item-comentario">
<h2 class="commensts-list-item-profile-name">Gordon Carrol</h2>
<p class="commensts-list-item-profile-comment">Why Las Vegas Hotel Rooms for you</p>
</div>
</figure>
</div>
<div class="commensts-list-item">
<figure class="commensts-list-item-profile">
<img class="commensts-list-item-profile-img" src="img/perfil2.jpg" alt="perfil3">
<div class="commensts-list-item-comentario">
<h2 class="commensts-list-item-profile-name">Gordon Carrol</h2>
<p class="commensts-list-item-profile-comment">Popular users of the internet</p>
</div>
</figure>
</div>
<div class="commensts-list-item">
<figure class="commensts-list-item-profile">
<img class="commensts-list-item-profile-img" src="img/perfil2.jpg" alt="perfil4">
<div class="commensts-list-item-comentario">
<h2 class="commensts-list-item-profile-name">Gordon Carrol</h2>
<p class="commensts-list-item-profile-comment">Whay you need to know aout oil fondue</p>
</div>
</figure>
</div>
<div class="commensts-list-item">
<figure class="commensts-list-item-profile">
<img class="commensts-list-item-profile-img" src="img/perfil2.jpg" alt="perfil5">
<div class="commensts-list-item-comentario">
<h2 class="commensts-list-item-profile-name">Gordon Carrol</h2>
<p class="commensts-list-item-profile-comment">Are You ready to buy a Home theater audio system</p>
</div>
</figure>
</div>
</div>
</section>
<section class="Suggestions">
<h3 class="suggestions-title">Sugerencias</h3>
<a class="suggestions-title-item" href="javascript:void(0)">
<img class="suggestions-title-item-img" src="img/sugerencia.jpg" alt="sugerencia">
<p class="suggestions-title-item-description">Quick And easy lunches for the cooking Challenged</p>
</a>
<a class="suggestions-title-item" href="javascript:void(0)">
<img class="suggestions-title-item-img" src="img/sugerencia.jpg" alt="sugerencia">
<p class="suggestions-title-item-description">Quick And easy lunches for the cooking Challenged</p>
</a>
</section>
</div>
<script src="index.js"></script>
</body>
</html>