Skip to content
Draft
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
19 changes: 11 additions & 8 deletions app/components/error-boundary/error.tsx
Original file line number Diff line number Diff line change
@@ -1,14 +1,17 @@
import { Button } from "../button";

export function Error({ error, children }: { error: Error; children?: React.ReactNode }) {
export function Error() {
return (
<div className="w-full flex items-center justify-center text-gray-800">
<div className="max-w-lg space-y-2">
<h1 className="text-xl font-semibold">500 Error</h1>
<p className="text-xl text-gray-400 pb-4 font-medium">Welp, something broke. This shouldn't be happening </p>
<Button className="bg-[#5865F2]">Let us know on Discord</Button>
{children}
</div>
<div className="w-full flex flex-col items-center justify-center text-gray-800 gap-5 mt-10">
<h1 className="text-5xl font-bold text-transparent bg-clip-text bg-gradient-to-r from-[#A0DDA9] to-[#01C2FF]">
Ooops!
</h1>
<p className="text-neutral-400 text-2xl font-bold">something went wrong</p>
<img src="/img/error.png" alt="" className="my-3" />
<p className="text-neutral-400 font-medium">It seems you've ventured too deep</p>
<Button variant="gradient" onClick={() => history.back()}>
Go Back
</Button>
</div>
);
}
7 changes: 1 addition & 6 deletions app/root.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -164,11 +164,6 @@ function App() {

export default withSentry(App, {
errorBoundaryOptions: {
fallback: ({ error }) => (
<div className="w-screen h-screen flex items-center justify-center">
<Blurs />
<ErrorBoundary error={error} />
</div>
),
fallback: <ErrorBoundary />,
},
});
Binary file added public/img/error.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.