-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy path404.css
121 lines (107 loc) · 2.03 KB
/
404.css
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
@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap');
:root{
margin: 0;
padding: 0;
--white: #f2f5f5;
--black: #121212;
--blue: #308bd1;
--gray: #959695;
}
body{
height: 100vh;
display: flex;
align-items: center;
justify-content: center;
margin: 0 auto;
font-family: "Montserrat", sans-serif;
color: var(--white);
background-color: var(--black);
}
.error_container{
max-width: 800px;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
gap: 10px;
margin: 0 10px;
}
.error_code{
width: 100%;
margin: 0 auto;
font-size: 6rem;
font-weight: 800;
display: flex;
justify-content: center;
align-items: center;
gap: 10px;
}
p:first-of-type{
animation: fall 1s linear;
transform: rotateZ(-20deg);
}
P:last-of-type{
animation: fall 1.8s linear;
transform: rotateZ(8deg);
}
p:nth-of-type(2){
color: var(--blue);
animation: bounce 1.2s 1.8s linear forwards;
opacity: 0;
}
.error_title{
font-size: 1.5rem;
font-weight: 700;
pad: 0 3%;
}
.error_description{
font-size: 0.9rem;
text-align: justify;
line-height: 1.6;
padding: 0 10%;
color: var(--gray);
}
.action{
font: inherit;
padding: 10px 30px;
border: none;
border-radius: 20px;
cursor: pointer;
background-color: var(--blue);
color: var(--white);
}
.action:hover{
opacity: 0.8;
}
@media screen and (min-width: 48rem) {
.error_description{
padding: 0;
}
}
@keyframes fall{
0%{
transform: translateY(-100vh);
}
100%{
transform: translateY(0);
}
}
@keyframes bounce{
0%,40%,75%,95%{
transform: translateY(0);
opacity: 1;
}
15%{
transform: translateY(-25px);
}
65%{
transform: translateY(-15px);
}
85%{
transform: translateY(-5px);
}
100%{
transform: rotateZ(45deg);
opacity: 1;
}
}