🐛 fix(redirect): auto after 5000ms

This commit is contained in:
eshanized
2024-12-25 11:03:39 +05:30
parent 8167dac7a4
commit 902d2f802a

View File

@@ -27,7 +27,7 @@
h1 {
font-size: 5rem;
margin: 0;
color: #ff616f;
color: #6495ed;
}
p {
font-size: 1.2rem;
@@ -40,13 +40,13 @@
font-size: 1rem;
font-weight: 600;
color: #ffffff;
background-color: #ff616f;
background-color: #6495ed;
text-decoration: none;
border-radius: 5px;
transition: background-color 0.3s ease;
}
a:hover {
background-color: #e0505e;
background-color: #4a7fcf;
}
.logo {
margin-bottom: 2rem;
@@ -56,6 +56,12 @@
height: auto;
}
</style>
<script>
// Redirect to homepage after 5 seconds
setTimeout(() => {
window.location.href = '/';
}, 5000);
</script>
</head>
<body>
<div class="container">
@@ -64,7 +70,8 @@
</div>
<h1>404</h1>
<p>Oops! The page you're looking for doesn't exist or has been moved.</p>
<a href="/">Go to Homepage</a>
<p>You will be redirected to the homepage in 5 seconds.</p>
<a href="/">Go to Homepage Now</a>
</div>
</body>
</html>