diff --git a/app/not-found.tsx b/app/not-found.tsx new file mode 100644 index 0000000..85c5c90 --- /dev/null +++ b/app/not-found.tsx @@ -0,0 +1,84 @@ +'use client'; + +import * as React from 'react'; +import Link from 'next/link'; +import { motion } from 'framer-motion'; +import AnimatedBackground from '@/components/AnimatedBackground'; +import Footer from '@/components/Footer'; +import Logo from '@/components/Logo'; +import { Button } from '@/components/ui/button'; +import { Home } from 'lucide-react'; + +export default function NotFound() { + React.useEffect(() => { + // Force dark mode on html element for the 404 page + document.documentElement.classList.remove('light'); + document.documentElement.classList.add('dark'); + }, []); + + return ( +
+ + +
+
+ {/* Logo */} + + + + + {/* 404 heading */} + + 404 + + + {/* Subtitle */} + + Page Not Found + + + {/* Description */} + + The tool or page you are looking for doesn't exist or has been moved. + + + {/* CTA Button */} + + + + + +
+
+ +
+ ); +} diff --git a/nginx.conf b/nginx.conf index 1bdb588..965c6c1 100644 --- a/nginx.conf +++ b/nginx.conf @@ -30,6 +30,11 @@ http { root /usr/share/nginx/html; index index.html; + error_page 404 /404.html; + location = /404.html { + internal; + } + # Security headers add_header X-Frame-Options "SAMEORIGIN" always; add_header X-Content-Type-Options "nosniff" always;