-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathindex.html
91 lines (79 loc) · 1.94 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
<!DOCTYPE html>
<html>
<head>
<style>
@import url(https://fonts.googleapis.com/css?family=Roboto:400,300,700,100);
@media {
main {
background: url({{imageUrl}}) no-repeat center center fixed;
}
}
body {
margin: 0;
padding: 0;
font-family: 'Roboto';
font-weight: 100;
}
/* Background image transitions do not work with body, hence main is used. */
main {
position: absolute;
display: block;
width: 100%;
height: 100%;
background-size: cover;
background-color: white;
animation: fadein 0.5s;
}
footer {
background: linear-gradient(to bottom, rgba(0,0,0,0) 0%, rgba(0,0,0,0.5) 100%);
position: absolute;
bottom: 0;
width: 100%;
text-align: center;
padding-top: 160px;
animation: fadein 0.75s;
}
.countdown {
color: #dddddd;
display: inline-flex;
margin: 0 auto;
margin-bottom: 26px;
text-shadow: 2px 2px rgba(0,0,0,0.2);
}
.countdown__timer {
line-height: 1;
font-size: 64px;
font-weight: 300;
margin-right: 12px;
}
.countdown__message {
text-align: left;
text-transform: uppercase;
}
.countdown__text {
font-size: 32px;
font-weight: 200;
}
.countdown__text:last-of-type {
font-size: 0.8em;
font-weight: 200;
}
@keyframes fadein {
from { opacity: 0; }
to { opacity: 1; }
}
</style>
</head>
<body>
<main />
<footer>
<div class="countdown">
<div class="countdown__timer" id="timer"></div>
<div class="countdown__message">
<div class="countdown__text">seconds</div>
<div class="countdown__text">to change your mind</div>
</div>
</div>
</footer>
</body>
</html>