Skip to content
This repository was archived by the owner on Oct 6, 2024. It is now read-only.

Commit fffb532

Browse files
authored
Update 404.html (#78)
1 parent c877aef commit fffb532

File tree

1 file changed

+49
-12
lines changed

1 file changed

+49
-12
lines changed

404.html

Lines changed: 49 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<meta name="viewport" content="width=device-width, initial-scale=1.0"/>
66
<title>404</title>
77
<style>
8-
* {
8+
* {
99
margin: 0;
1010
padding: 0;
1111
font-family: system-ui, -apple-system, "Segoe UI", Roboto, Oxygen,
@@ -15,42 +15,53 @@
1515
body {
1616
background-color: #212529;
1717
color: #dee2e6;
18+
display: flex;
19+
align-items: center;
20+
justify-content: center;
21+
height: 100vh;
1822
}
1923

2024
#wrapper {
2125
display: flex;
26+
flex-direction: column;
2227
background-color: #212529 !important;
2328
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);
3133
}
3234

3335
#content {
3436
text-align: center;
3537
}
3638

3739
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 */
4043
}
4144

4245
h2 {
4346
margin: 2vh 0;
47+
color: #adb5bd; /* Slightly lighter color for subheading */
4448
}
4549

46-
h2,
4750
p {
48-
color: #a1a8ae;
51+
color: #ced4da; /* Lighter color for paragraph text */
52+
margin-bottom: 20px;
4953
}
5054

5155
a {
5256
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 */
5363
}
64+
5465
</style>
5566
</head>
5667
<body>
@@ -61,5 +72,31 @@ <h2>Oops! Page not found</h2>
6172
<p>Sorry, the page you're looking for doesn't exist. Please, go to <a href="/">main page</a>.</p>
6273
</div>
6374
</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>
64101
</body>
65102
</html>

0 commit comments

Comments
 (0)