forked from saadan/embed
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
115 lines (98 loc) · 2.82 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
<!DOCTYPE html>
<html>
<head lang="en">
<meta charset="UTF-8">
<title>EasyEmbed</title>
<script src="//ajax.googleapis.com/ajax/libs/jquery/2.1.3/jquery.min.js"></script>
<link href="//fonts.googleapis.com/css?family=Open+Sans" rel="stylesheet" type="text/css">
<link href="//fonts.googleapis.com/css?family=Arvo" rel="stylesheet" type="text/css">
<script src="jquery.easyembed.js"></script>
<style>
html {
font-size: 16px;
}
body {
background-color: #f5f7fa;
font: 100%/1.618 "Open Sans", "Helvetic Neue", Helvetica, Arial, sans-serif;
text-align: center;
color: #434a54;
}
h1 {
font-family: "Arvo";
font-size: 4rem;
text-shadow: #ffffff 0px 1px 0px;
color: #8A66BB;
}
h2 {
font-family: "Arvo";
font-size: 2rem;
text-shadow: #ffffff 0px 1px 0px;
}
a {
color: inherit;
text-decoration: none;
}
a:hover {
color: #8A66BB;
}
main {
max-width: 960px;
margin: 0 auto;
}
main > div > section {
width: 100%;
margin: 0 auto;
box-sizing: border-box;
}
/* OVERLAY */
.overlay {
position: relative;
width: 100%;
height: 100%;
background-color: rgba(255, 255, 255, .5);
cursor: pointer;
}
.play {
width: 65px;
height: 65px;
margin: auto;
position: absolute;
top: 0;right: 0;bottom: 0;left: 0;
border-radius: 100%;
transition: all 0.5s ease;
cursor: pointer;
border: 5px solid #ffffff;
box-shadow: 0px 0px 5px 1px rgba(0, 0, 0, 0.5);
background: linear-gradient(135deg, #8A66BB 0%, #5B3F80 100%);
}
.play:hover {
background: linear-gradient(135deg, #5B3F80 0%, #8A66BB 100%);
}
.arrow {
width: 0;
height: 0;
margin: auto;
position: absolute;
top: 0;right: -4px;bottom: 0;left: 0;
border-top: 12px solid transparent;
border-bottom: 12px solid transparent;
border-left: 16px solid #ffffff;
}
</style>
</head>
<body>
<main>
<h1>Easy Embed</h1>
<h2><a href="https://github.com/RHNorskov/EasyEmbed" target="_blank">GITHUB</a></h2>
<section>
<div data-easy-embed="youtube:Q5691RGDUJ4">
<div class="overlay">
<div class="play">
<div class="arrow"></div>
</div>
</div>
</div>
</section>
</main>
</body>
</html>