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 ;
18
22
}
19
23
20
24
# wrapper {
21
25
display : flex;
26
+ flex-direction : column;
22
27
background-color : # 212529 !important ;
23
28
border : none;
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 ;
29
+ width : 60% ;
30
+ padding : 20px ;
31
+ border-radius : 15px ;
32
+ box-shadow : 0 0 10px rgba (0 , 0 , 0 , 0.2 );
31
33
}
32
34
33
35
# content {
34
36
text-align : center;
35
37
}
36
38
37
39
h1 {
38
- font-size : 30vh ;
39
- line-height : 30vh ;
40
+ font-size : 10vw ;
41
+ line-height : 1.2 ;
42
+ color : # f8f9fa ; /* Lighter color for the heading */
40
43
}
41
44
42
45
h2 {
43
46
margin : 2vh 0 ;
47
+ color : # adb5bd ; /* Slightly lighter color for subheading */
44
48
}
45
49
46
- h2 ,
47
50
p {
48
- color : # a1a8ae ;
51
+ color : # ced4da ; /* Lighter color for paragraph text */
52
+ margin-bottom : 20px ;
49
53
}
50
54
51
55
a {
52
56
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 */
53
63
}
64
+
54
65
</ style >
55
66
</ head >
56
67
< body >
@@ -61,5 +72,31 @@ <h2>Oops! Page not found</h2>
61
72
< p > Sorry, the page you're looking for doesn't exist. Please, go to < a href ="/ "> main page</ a > .</ p >
62
73
</ div >
63
74
</ 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 >
64
101
</ body >
65
102
</ html >
0 commit comments