Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 22 additions & 0 deletions src/app/error.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
"use client";

export default function Error({
error,
reset,
}: {
error: Error;
reset: () => void;
}) {
return (
<div className="flex min-h-screen items-center justify-center flex-col gap-4">
<h2 className="text-2xl font-bold">Something went wrong</h2>

<button
onClick={() => reset()}
className="px-4 py-2 rounded bg-black text-white"
>
Try Again
</button>
</div>
);
}
7 changes: 7 additions & 0 deletions src/app/loading.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
export default function Loading() {
return (
<div className="flex min-h-screen items-center justify-center">
<div className="animate-spin rounded-full h-12 w-12 border-b-2 border-black"></div>
</div>
);
}
7 changes: 7 additions & 0 deletions src/components/loader.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
export default function Loader() {
return (
<div className="flex items-center justify-center p-6">
<div className="h-10 w-10 animate-spin rounded-full border-b-2 border-black"></div>
</div>
);
}
Loading