浏览代码

add custom 404 page

Milo Schwartz 7 月之前
父节点
当前提交
e0b1aa98e0
共有 1 个文件被更改,包括 15 次插入0 次删除
  1. 15 0
      src/app/not-found.tsx

+ 15 - 0
src/app/not-found.tsx

@@ -0,0 +1,15 @@
+import Link from "next/link";
+
+export default async function NotFound() {
+    return (
+        <div className="w-full max-w-md mx-auto p-3 md:mt-32 text-center">
+            <h1 className="text-6xl font-bold text-gray-800 mb-4">404</h1>
+            <h2 className="text-2xl font-semibold text-gray-600 mb-4">
+                Page Not Found
+            </h2>
+            <p className="text-gray-500 mb-8">
+                Oops! The page you're looking for doesn't exist.
+            </p>
+        </div>
+    );
+}