-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
136 lines (136 loc) · 3.57 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1, height=device-height">
<link rel="icon" href="favicon.ico">
<title>Rebelstack.io</title>
<link href="https://fonts.googleapis.com/css?family=Oswald:400" rel="stylesheet" type="text/css">
<style type="text/css">
body, html {
margin:0; padding:0;height:100%;
}
html {
background: url('g/bg1.jpg') no-repeat center center fixed;
-webkit-background-size: cover;
-moz-background-size: cover;
-o-background-size: cover;
background-size: cover;
}
.video-container {
position: absolute;
top: 0;
bottom: 0;
width: 100%;
height: 100%;
z-index: 2;
overflow: hidden;
}
.video-container video {
min-width: 100%;
min-height: 100%;
width: auto;
height: auto;
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%,-50%);
}
.video-container * {
z-index: 2
}
.parent-element {
position: absolute;
top: 0;
left: 0;
z-index: 3;
-webkit-transform-style: preserve-3d;
-moz-transform-style: preserve-3d;
transform-style: preserve-3d;
width: 100%;
height: 100%;
}
.element {
position: relative;
top: 50%;
transform: translateY(-50%);
width: 100%
}
.element img {
display: block;
height: 180pt;
margin: auto;
z-index: 3
}
.element h1 {
font-family:"Oswald";
color:rgba(255,255,255,0.9);
width: 100vw;
z-index:3;
font-size:50pt;
font-weight:400;
letter-spacing: 8px;
word-spacing: 4px;
text-align:center;
}
@media only screen and (max-device-width: 768px) and (orientation: portrait) {
.element img {
height: 120pt;
}
.element h1 {
font-size: 20pt
}
.video-container {
-webkit-transform-style: preserve-3d;
-moz-transform-style: preserve-3d;
transform-style: preserve-3d;
}
.video-container video {
position: relative;
top: 50%;
transform: translateY(-50%,-50%);
width: 100%
}
}
@media only screen and (max-device-width: 768px) and (orientation: landscape) {
.element img {
height: 120pt;
}
.element h1 {
font-size: 30pt
}
.video-container {
-webkit-transform-style: preserve-3d;
-moz-transform-style: preserve-3d;
transform-style: preserve-3d;
}
.video-container video {
position: relative;
top: 50%;
transform: translateY(-50%,-50%);
width: 100%
}
}
</style>
</head>
<body>
<div class="video-container">
<video playsinline="true" autoplay="true" muted="true" loop="true">
<source src="./v/rebelstackio_1024.webm" type="video/webm" media="screen and (max-device-width:1024px)">
<source src="./v/rebelstackio_768.webm" type="video/webm" media="screen and (max-device-width:768px)">
<source src="./v/rebelstackio_600.webm" type="video/webm" media="screen and (max-device-width:600px)">
<source src="./v/rebelstackio_500.webm" type="video/webm" media="screen and (max-device-width:500px)">
<source src="./v/rebelstackio_400.webm" type="video/webm" media="screen and (max-device-width:400px)">
<source src="./v/rebelstackio.webm" type="video/webm">
<source src="./v/rebelstackio.mp4" type="video/mp4">
</video>
</div>
<div class="parent-element">
<div class="element">
<img src="./g/logo.svg" alt="logo">
<h1>Fullstack Powerhouse<br />Bleeding-edgesters</h1>
</div>
</div>
</body>
</html>