-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.html
122 lines (98 loc) · 2.63 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
<!DOCTYPE html>
<html>
<head>
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
<style>
body {
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
}
.image {
width: 100%;
height: auto;
}
.overlay {
position: absolute;
top: 0;
bottom: 0;
left: 0;
right: 0;
height: 100%;
width: 100%;
opacity: 0.3;
transition: .3s ease;
background-color: transparent;
}
.container {
position: relative;
width: 100%;
max-width: 400px;
}
.overlay:hover {
opacity: 0.7;
}
.play-icon {
color: black;
font-size: 2rem;
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
-ms-transform: translate(-50%, -50%);
cursor: pointer;
width: 20%;
z-index: 2;
}
.like-button {
position: absolute;
z-index: 2;
color: #f5f5f5;
font-size: 25px;
text-align: right;
cursor: pointer;
border-radius: 10rem;
background-color: transparent;
border: transparent;
width: 99%;
/* padding-top: 4px; */
/* padding-right: 4px; */
}
/* .like-button:hover .fa-heart {
color: red;
} */
.fa-heart:hover {
/* z-index: 2; */
color: red;
}
p {
position: absolute;
z-index: 2;
color: white;
font-size: 12px;
padding-left: 7px;
padding-bottom: 5px;
}
</style>
</head>
<body>
<h2>Video Player</h2>
<div>
</div>
<div class="container">
<div href="#" class="like-button" title="Like Button">
<p>Video of the trees</p>
<i class="fa fa-heart fa-1x"></i>
</div>
<img src="https://static-videos.pexels.com/videos/1448735/pictures/preview-0.jpg" alt="Beautiful Image"
class="image">
<div class="overlay">
<button href="#" class="play-icon" title="Video Play">
<i class="fa fa-play"></i>
</button>
</div>
</div>
</body>
</html>