forked from my-wallpapers/my-wallpapers.github.io
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path404.html
108 lines (97 loc) · 2.73 KB
/
404.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
<html>
<head>
<title>404</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="shortcut icon" href="icons/faviconerr.ico">
</head>
<body>
<div class="all"></div>
<img class="bgimg" src="https://my-wallpapers.github.io/windows/original/windows-vista/Black%20and%20White/img3.jpg" onload="show()">
<div class="bg"></div>
<div class="content" style="display: block; text-align: center;">
<h1>404: object not found.</h1>
<a href="/">Back</a>
</div>
</body>
<style>
* {
padding: 0;
margin: 0;
}
body {
background-color: black;
color: white;
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
display: flex;
justify-content: center;
align-items: center;
}
h1 {
font-weight: 300;
z-index: 1;
font-size: 50px;
}
.bg {
background-color: black;
animation-iteration-count: 1;
z-index: -2;
width: 100%;
height: 100%;
position: absolute;
top: 0;
left: 0;
filter: opacity(1);
backdrop-filter: blur(4px);
}
.bgimg {
position: absolute;
top: 0;
left: 0;
z-index: -3;
width: 100%;
height: 100%;
object-fit: cover;
}
.all {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
z-index: 999;
background-color: black;
animation: fade 500ms linear forwards;
}
.animbg {
animation: bg 500ms linear normal forwards;
}
a {
color: white;
font-weight: 300;
font-size: 20px;
margin-top: 15px;
cursor: pointer;
}
@keyframes bg {
from {filter: opacity(1);}
to {filter: opacity(0.7);}
}
@keyframes fade {
from {filter: opacity(1);}
to {filter: opacity(0);}
}
@media screen and (max-width: 420px) {
h1 {
font-size: 30px;
}
}
</style>
<script>
setTimeout(function(){
document.querySelector('.all').remove();
}, 500)
function show(){
document.querySelector('.bg').classList.add('animbg');
}
</script>
</html>