From 4b3778de1b2a2c5f01d582e52a1e5e5ca69b9aa9 Mon Sep 17 00:00:00 2001 From: Saksham Jain <137368917+Sakshamjain98@users.noreply.github.com> Date: Sat, 1 Feb 2025 13:15:09 +0530 Subject: [PATCH] =?UTF-8?q?=F0=9F=A7=91=E2=80=8D=F0=9F=92=BB:=20404=20Erro?= =?UTF-8?q?r=20page=20#402=20(#1066)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- package-lock.json | 2 +- src/app/not-found.tsx | 97 +++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 98 insertions(+), 1 deletion(-) create mode 100644 src/app/not-found.tsx diff --git a/package-lock.json b/package-lock.json index 5b7b663ca..bfcdfc21b 100644 --- a/package-lock.json +++ b/package-lock.json @@ -6499,4 +6499,4 @@ } } } -} \ No newline at end of file +} diff --git a/src/app/not-found.tsx b/src/app/not-found.tsx new file mode 100644 index 000000000..2df7b1878 --- /dev/null +++ b/src/app/not-found.tsx @@ -0,0 +1,97 @@ +"use client"; + +import React, { useEffect } from "react"; +import { Code, Terminal, Database, Globe } from "lucide-react"; + +import { LucideIcon } from "lucide-react"; + +const FloatingIcon = ({ icon: Icon, className }: { icon: LucideIcon; className: string }) => ( +
+ +
+); + +const NotFoundPage = () => { + useEffect(() => { + const styles = ` + @keyframes float { + 0% { transform: translateY(0px); } + 50% { transform: translateY(-10px); } + 100% { transform: translateY(0px); } + } + + @keyframes shine { + from { transform: translateX(-100%); } + to { transform: translateX(100%); } + } + + .animate-float { + animation: float 3s ease-in-out infinite; + } + + .animate-shine { + animation: shine 2s infinite; + } + `; + + const styleSheet = document.createElement("style"); + styleSheet.innerText = styles; + document.head.appendChild(styleSheet); + + return () => { + document.head.removeChild(styleSheet); // Cleanup on unmount + }; + }, []); + + return ( +
+ {/* Floating Background Icons */} + + + + + + + + + + + + + + {/* Main Content Card */} +
+ {/* Animated 404 Text */} +

404

+

Page Not Found

+

+ Explore, learn, and find your way back to our diverse web development projects. +

+

+ Continue your development journey with our other resources. +

+

+ Try searching our projects or checking out our latest tutorials. +

+ + {/* Action Buttons */} +
+ + +
+
+
+ ); +}; + +export default NotFoundPage;