-
Notifications
You must be signed in to change notification settings - Fork 0
/
404.html
27 lines (27 loc) · 1.28 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Page Not Found</title>
<script src="https://cdn.tailwindcss.com"></script>
</head>
<body class="flex items-center justify-center min-h-screen p-4">
<div class="bg-white p-6 rounded-lg text-center max-w-sm mx-auto">
<h1 class="text-6xl font-extrabold text-gray-800 mb-2 animate-bounce">404</h1>
<p class="text-xl text-gray-600 mb-2">Oh no! You've found a page that doesn't exist.</p>
<img src="https://i.imgur.com/oEUksmz.png" alt="Confused character" class="mx-auto mb-2 w-1/2">
<p class="text-md text-gray-700 mb-2">But don't worry, you can find your way back to the homepage!</p>
<a href="/" class="px-4 py-2 bg-green-500 text-white font-semibold rounded-lg shadow-md hover:bg-green-600 focus:outline-none focus:ring-2 focus:ring-green-400 focus:ring-opacity-75">Go back to the homepage</a>
</div>
<script>
window.onload = () => {
const currentURL = window.location.href;
const lowerCaseURL = currentURL.toLowerCase();
if (currentURL !== lowerCaseURL) {
location.replace(lowerCaseURL);
}
};
</script>
</body>
</html>