Skip to content

Commit 344f27c

Browse files
committed
added animation
1 parent dccb2dc commit 344f27c

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

frontend/src/pages/404.tsx

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import Footer from '@/components/Footer';
22
import Navbar from '@/components/Navbar';
3-
3+
import { motion } from 'framer-motion';
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">
@@ -11,9 +11,11 @@ export default function Custom404() {
1111
Sorry! We can't find the page you're looking for!
1212
<br />
1313
</p>
14-
<p className="text-2xl pt-10">
15-
While we may have found some tomfoolery, we haven't found your page :'(
16-
</p>
14+
<motion.div className="opacity-0" whileHover={{ opacity: 1 }} transition={{duration: 0.2}}>
15+
<p className="text-2xl pt-10">
16+
While we may have found some tomfoolery, we haven't found your page :'(
17+
</p>
18+
</motion.div>
1719
<a href="/">
1820
<button className="mt-10 bg-white border text-[#3977F8] border-[#A7A6E5] text-lg rounded-xl w-[30%] xl:h-12 h-10">
1921
Back to saftey

0 commit comments

Comments
 (0)