forked from akiyatkin/underconstruction
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.tpl
66 lines (62 loc) · 1.49 KB
/
index.tpl
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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="shortcut icon" href="/favicon.ico" type="image/x-icon">
<style>
.underconstruction {
margin:0 auto;
width: 480px;
margin-top:50px;
background-color:rgba(0,0,0,0.6);
color:white;
line-height: 150%;
font-size:16px;
font-family:Arial;
padding:20px;
}
.opacity {
opacity:0;
transition-delay:2s;
transition-property: opacity;
transition-duration: 2s;
}
.show {
opacity:1;
}
@media only screen and (max-width : 768px) {
.underconstruction {
width:auto;
margin-top:10px;
line-height: 150%;
}
.underconstruction h1 {
font-size:22px;
text-transform: uppercase;
font-weight: normal;
}
.underconstruction h2 {
font-size:18px;
text-transform: uppercase;
font-weight: normal;
}
}
</style>
</head>
<body style="background-size:cover; background-image:url(https://source.unsplash.com/category/{Config.get(:underconstruction).category}/1920x1080);">
<div class="opacity" id="opacity">
<div class="underconstruction" id="underconstruction">
</div>
</div>
<script>
domready( function () {
setTimeout(function(){
var div = document.getElementById('opacity');
div.className = "opacity show";
}, 1);
})
</script>
</body>
</html>