-
Notifications
You must be signed in to change notification settings - Fork 34
/
404.html
77 lines (76 loc) · 1.92 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>404:Page not found</title>
<link rel="icon" href="data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'><text y='.9em' font-size='90'>🚀</text></svg>">
</head>
<style>
body{
margin: 0;
padding: 0;
font-family: Arial, sans-serif;
background: linear-gradient(to bottom right, #FFEA7E, #FFA500); /* Default background gradient */
background-repeat: no-repeat;
background-attachment: fixed;
background-size: cover;
height: 100vh;
overflow: hidden;
}
.center {
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
height: 90vh;
}
.pic{
width: 550px;
height: 550px;
animation: updown 2s ease-in-out infinite alternate;
transition: all 0.3s ease-in-out;
}
.pic:hover{
filter: drop-shadow(0 0 10px #fffdef);
}
@keyframes updown {
from{
transform: translateY(0);
}
to{
transform: translateY(20px);
}
}
a{
text-decoration: none;
color: #353535;
}
.btn{
position: absolute;
padding: 10px 20px;
background-color: #32ddaac9;
border-radius: 5px;
font-size: 20px;
font-weight: bold;
border: none;
top: 600px;
}
@media screen and (max-width: 600px) {
.pic{
width: 300px;
height: 300px;
}
.btn{
top: 500px;
}
}
</style>
<body>
<div class="center">
<img src="404pic2.png" alt="404 pic" class="pic">
<button class="btn"><a href="index.html">Home</a></button>
</div>
<script src="game.js"></script>
</body>
</html>