5
5
< meta name ="viewport " content ="width=device-width, initial-scale=1.0 "/>
6
6
< title > 404</ title >
7
7
< style >
8
- * {
8
+ * {
9
9
margin : 0 ;
10
10
padding : 0 ;
11
11
font-family : system-ui, -apple-system, "Segoe UI" , Roboto, Oxygen,
15
15
body {
16
16
background-color : # 212529 ;
17
17
color : # dee2e6 ;
18
- display : flex;
19
- align-items : center;
20
- justify-content : center;
21
- height : 100vh ;
22
18
}
23
19
24
20
# wrapper {
25
21
display : flex;
26
- flex-direction : column;
27
22
background-color : # 212529 !important ;
28
23
border : none;
29
- width : 60% ;
30
- padding : 20px ;
31
- border-radius : 15px ;
32
- box-shadow : 0 0 10px rgba (0 , 0 , 0 , 0.2 );
24
+ width : 80% ;
25
+ height : 90vh ;
26
+ margin : 5vh auto;
27
+ justify-content : center;
28
+ align-items : center;
29
+ vertical-align : middle;
30
+ border-radius : 25px ;
33
31
}
34
32
35
33
# content {
36
34
text-align : center;
37
35
}
38
36
39
37
h1 {
40
- font-size : 10vw ;
41
- line-height : 1.2 ;
42
- color : # f8f9fa ; /* Lighter color for the heading */
38
+ font-size : 30vh ;
39
+ line-height : 30vh ;
43
40
}
44
41
45
42
h2 {
46
43
margin : 2vh 0 ;
47
- color : # adb5bd ; /* Slightly lighter color for subheading */
48
44
}
49
45
46
+ h2 ,
50
47
p {
51
- color : # ced4da ; /* Lighter color for paragraph text */
52
- margin-bottom : 20px ;
48
+ color : # a1a8ae ;
53
49
}
54
50
55
51
a {
56
52
color : rgb (110 , 168 , 254 );
57
- text-decoration : none;
58
- font-weight : bold;
59
- }
60
-
61
- a : hover {
62
- text-decoration : underline; /* Underline on hover */
63
53
}
64
-
65
54
</ style >
66
55
</ head >
67
56
< body >
@@ -72,31 +61,5 @@ <h2>Oops! Page not found</h2>
72
61
< p > Sorry, the page you're looking for doesn't exist. Please, go to < a href ="/ "> main page</ a > .</ p >
73
62
</ div >
74
63
</ div >
75
- < script >
76
- document . addEventListener ( 'DOMContentLoaded' , function ( ) {
77
- const heading = document . querySelector ( 'h1' ) ;
78
-
79
- if ( heading ) {
80
- // Add a pulsating effect to the heading
81
- let scale = 1 ;
82
- let growing = true ;
83
-
84
- function updateScale ( ) {
85
- if ( growing ) {
86
- scale += 0.1 ;
87
- if ( scale >= 1.5 ) growing = false ;
88
- } else {
89
- scale -= 0.1 ;
90
- if ( scale <= 1 ) growing = true ;
91
- }
92
-
93
- heading . style . transform = `scale(${ scale } )` ;
94
- requestAnimationFrame ( updateScale ) ;
95
- }
96
-
97
- updateScale ( ) ;
98
- }
99
- } ) ;
100
- </ script >
101
64
</ body >
102
65
</ html >
0 commit comments