Skip to content

Commit e5073a0

Browse files
committed
changed error message and implemented tailwind transitions
1 parent 19aabbe commit e5073a0

File tree

1 file changed

+6
-12
lines changed

1 file changed

+6
-12
lines changed

Diff for: frontend/src/pages/404.tsx

+6-12
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,21 @@
11
import Footer from '@/components/Footer';
22
import Navbar from '@/components/Navbar';
3-
import { motion } from 'framer-motion';
3+
44
export default function Custom404() {
55
return (
66
<section className="flex flex-col min-h-screen justify-between py-8 xl:px-24 md:px-10 px-5 relative overflow-hidden">
77
<div className="items-center text-center">
88
<Navbar />
99
<h1 className="text-5xl font-bold pt-24">404 - Page Not Found</h1>
1010
<p className="text-4xl pt-10">
11-
Oops! This page must have been garbage collected.
11+
Sorry! We can't find the page you're looking for!
1212
<br />
1313
</p>
14-
<motion.div
15-
className="opacity-0"
16-
whileHover={{ opacity: 1 }}
17-
transition={{ duration: 0.2 }}
18-
>
19-
<p className="text-2xl pt-10">
20-
While we may have found some tomfoolery, we haven't found your page :'(
21-
</p>
22-
</motion.div>
14+
<div className="opacity-0 transition-opacity duration-200 hover:opacity-100">
15+
<p className="text-2xl pt-10">Oops! This page must have been garbage collected.</p>
16+
</div>
2317
<a href="/">
24-
<button className="mt-10 bg-white border text-[#3977F8] border-[#A7A6E5] text-lg rounded-xl w-[30%] xl:h-12 h-10">
18+
<button className="mt-10 bg-white border text-[#3977F8] border-[#A7A6E5] text-lg rounded-xl w-[30%] xl:h-12 h-10 transition-all duration-200 hover:bg-[#F3F4F6] hover:text-[#1A202C]">
2519
Back to safety
2620
</button>
2721
</a>

0 commit comments

Comments
 (0)