first commit

This commit is contained in:
Jeannette Chin committed 2026-10-04 14:28:26 +01:00
commit 5d6023a8af
52 files changed
+5830

No files matched your search

+33
View File
@@ -0,0 +1,33 @@
"use client";
export default function GlobalError({
error,
reset,
}: {
error: Error & { digest?: string };
reset: () => void;
}) {
return (
<html>
<body>
<div className="min-h-[50vh] flex items-center justify-center p-4">
<div className="text-center">
<div className="text-6xl mb-4">😵</div>
<h2 className="text-2xl font-bold mb-2">Something went wrong!</h2>
<p className="text-base-content/70 mb-4">
{error.message || "An unexpected error occurred"}
</p>
<div className="flex gap-4 justify-center">
<button onClick={() => reset()} className="btn btn-primary">
Try again
</button>
<a href="/" className="btn btn-ghost">
Go home
</a>
</div>
</div>
</div>
</body>
</html>
);
}