Files
diyaa.de/app/not-found.tsx
T
2026-03-13 09:26:40 +01:00

40 lines
1.3 KiB
TypeScript

import Link from "next/link";
import { isComingSoonMode } from "@/lib/site";
export default function NotFound() {
const comingSoon = isComingSoonMode();
return (
<main className="page-content">
<section className="panel section-stack">
<div>
<p className="eyebrow">404</p>
<h1>الصفحة غير موجودة</h1>
<p className="lead">
{comingSoon
? "الصفحة المطلوبة غير متاحة حاليًا. يمكنك العودة إلى الصفحة الرئيسية."
: "الصفحة المطلوبة غير متاحة حاليًا. يمكنك العودة إلى النسخة العربية أو الإنجليزية من الصفحة الرئيسية."}
</p>
</div>
<div className="cta-row">
{comingSoon ? (
<Link href="/" className="cta-btn">
العودة إلى الرئيسية
</Link>
) : (
<>
<Link href="/ar" className="cta-btn">
العودة إلى العربية
</Link>
<Link href="/en" className="ghost-btn">
Go to English
</Link>
</>
)}
</div>
</section>
</main>
);
}