48 lines
1.6 KiB
TypeScript
48 lines
1.6 KiB
TypeScript
'use client';
|
|
|
|
import Link from 'next/link';
|
|
import { motion } from 'framer-motion';
|
|
import { Home, ArrowLeft } from 'lucide-react';
|
|
|
|
export default function NotFound() {
|
|
return (
|
|
<div className="min-h-[80vh] flex items-center justify-center px-4">
|
|
<div className="text-center">
|
|
<motion.div
|
|
initial={{ opacity: 0, scale: 0.5 }}
|
|
animate={{ opacity: 1, scale: 1 }}
|
|
transition={{ duration: 0.5 }}
|
|
className="text-9xl font-extrabold text-slate-200 mb-8"
|
|
>
|
|
404
|
|
</motion.div>
|
|
|
|
<motion.div
|
|
initial={{ opacity: 0, y: 20 }}
|
|
animate={{ opacity: 1, y: 0 }}
|
|
transition={{ delay: 0.2, duration: 0.5 }}
|
|
>
|
|
<h1 className="text-4xl font-bold text-primary mb-4">Seite nicht gefunden</h1>
|
|
<p className="text-slate-600 text-lg mb-12 max-w-md mx-auto">
|
|
Die von Ihnen gesuchte Seite scheint nicht zu existieren oder wurde verschoben.
|
|
</p>
|
|
|
|
<div className="flex flex-col sm:flex-row items-center justify-center gap-4">
|
|
<Link href="/" className="btn-primary flex items-center gap-2">
|
|
<Home size={18} />
|
|
Zur Startseite
|
|
</Link>
|
|
<button
|
|
onClick={() => window.history.back()}
|
|
className="btn-primary bg-slate-100 !text-primary hover:bg-slate-200 flex items-center gap-2"
|
|
>
|
|
<ArrowLeft size={18} />
|
|
Zurück
|
|
</button>
|
|
</div>
|
|
</motion.div>
|
|
</div>
|
|
</div>
|
|
);
|
|
}
|