first commit
This commit is contained in:
17
src/app/error.tsx
Normal file
17
src/app/error.tsx
Normal file
@@ -0,0 +1,17 @@
|
||||
"use client"
|
||||
import Link from "next/link";
|
||||
|
||||
export default function ErrorPage() {
|
||||
return (
|
||||
<div className="flex flex-col items-center justify-center h-screen bg-linear-to-b bg-radial from-red-100 to-white text-red-800">
|
||||
<h1 className="text-6xl font-bold mb-4">500</h1>
|
||||
<p className="text-xl mb-6">خطای سرور رخ داده است.</p>
|
||||
<Link
|
||||
href="/"
|
||||
className="px-6 py-3 bg-red-600 text-white rounded hover:bg-red-700 transition"
|
||||
>
|
||||
بازگشت به صفحه اصلی
|
||||
</Link>
|
||||
</div>
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user