mirror of
https://github.com/Sosokker/B2D-Ventures.git
synced 2025-12-18 21:44:06 +01:00
ui: add container to error page
This commit is contained in:
parent
fa24222760
commit
eaa5912be4
@ -7,13 +7,35 @@ interface ErrorProps {
|
||||
|
||||
export default function Error({ error, reset }: ErrorProps) {
|
||||
return (
|
||||
<main className="flex justify-center items-center flex-col gap-6">
|
||||
<h1 className="text-3xl font-semibold">Something went wrong!</h1>
|
||||
<p className="text-lg">{error.message}</p>
|
||||
<main className="flex justify-center items-center min-h-screen bg-gray-100">
|
||||
<div className="container max-w-screen-xl flex justify-center items-center flex-col gap-8 p-8 bg-white rounded-lg shadow-lg border-2 border-red-500">
|
||||
<div className="flex items-center justify-center gap-4 text-red-600">
|
||||
<svg
|
||||
xmlns="http://www.w3.org/2000/svg"
|
||||
fill="none"
|
||||
viewBox="0 0 24 24"
|
||||
stroke="currentColor"
|
||||
className="w-12 h-12"
|
||||
>
|
||||
<path
|
||||
strokeLinecap="round"
|
||||
strokeLinejoin="round"
|
||||
strokeWidth="2"
|
||||
d="M12 9v2m0 4h.01M21 12a9 9 0 10-18 0 9 9 0 0018 0z"
|
||||
/>
|
||||
</svg>
|
||||
<h1 className="text-4xl font-bold">Something went wrong!</h1>
|
||||
</div>
|
||||
|
||||
<button className="inline-block bg-accent-500 text-primary-800 px-6 py-3 text-lg" onClick={reset}>
|
||||
Try again
|
||||
</button>
|
||||
<p className="text-lg text-center text-gray-800">{error.message}</p>
|
||||
|
||||
<button
|
||||
className="inline-block bg-red-600 text-white px-8 py-3 text-lg font-semibold rounded-lg transition duration-300 transform hover:scale-105 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-red-600"
|
||||
onClick={reset}
|
||||
>
|
||||
Try again
|
||||
</button>
|
||||
</div>
|
||||
</main>
|
||||
);
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user