Files
techzaa-frontend/src/pages/NotFound.tsx
T

25 lines
737 B
TypeScript
Raw Normal View History

2026-05-06 19:43:33 +06:00
import { Link, useLocation } from "react-router-dom";
2026-03-30 20:20:21 +06:00
import { useEffect } from "react";
const NotFound = () => {
const location = useLocation();
useEffect(() => {
console.error("404 Error: User attempted to access non-existent route:", location.pathname);
}, [location.pathname]);
return (
<div className="flex min-h-screen items-center justify-center bg-muted">
<div className="text-center">
<h1 className="mb-4 text-4xl font-bold">404</h1>
<p className="mb-4 text-xl text-muted-foreground">Oops! Page not found</p>
2026-05-06 19:43:33 +06:00
<Link to="/" className="text-primary underline hover:text-primary/90">
2026-03-30 20:20:21 +06:00
Return to Home
2026-05-06 19:43:33 +06:00
</Link>
2026-03-30 20:20:21 +06:00
</div>
</div>
);
};
export default NotFound;