-
Notifications
You must be signed in to change notification settings - Fork 0
/
slide.html
93 lines (91 loc) · 1.55 KB
/
slide.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
<style>
body{
margin: 0;
padding: 0;
color: white;
overflow-x: hidden;
font-family: 'Tajawal',sans-serif;
}
.video-container video{
position: fixed;
right: 0;
bottom: 0;
min-width: 100vw;
min-height: 100vh;
height: 100vh;
}
.video-container{
z-index: 1;
}
.text-container{
position: fixed;
z-index: 2;
top: 0;
left:0;
height: 100vh;
width: 100vw;
background-color:rgba(215,19,137,0.39);
display: table;
}
.content{
text-align: center;
padding: 20px;
display: table-cell;
vertical-align: middle;
}
.content h2{
font-family: 'Pacifico', cursive;
letter-spacing: 0.2em;
}
.h-button{
background-color: #fff;
font-size: 10px;
font-weight: bold;
padding: 5px 20px;
border-width: 0;
cursor: pointer;
}
.h-button:active{
font-size: 9px;
}
@media only screen and (min-width:768px){
.video-container video{
width: 100vw;
height: auto;
}
.content h2{
font-size: 30px;
}
.h-button{
font-size: 13px;
}
.h-button:active{
font-size: 12px;
}
}
</style>
<html>
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
</head>
<body>
<header>
<div class="video-container">
<video autoplay muted loop>
<source src="video.mp4" type="video/mp4">
</video>
</div>
<div class="content">
<h2>
Christmas collection
</h2>
<p>
Lorem ipsum dolor sit amet, no nec exerci dolores, mei et nibh deterruisset vituperatoribus, pro assum indoctum at.
</p>
<button class="h-button">SHOP NOW</button>
</div>
</div>
</header>
</body>
</html>