Skip to content

Commit

Permalink
feat: NotFoundページのスタイル
Browse files Browse the repository at this point in the history
  • Loading branch information
sor4chi committed Oct 27, 2024
1 parent 2c2f8d1 commit 6585e0c
Showing 1 changed file with 30 additions and 8 deletions.
38 changes: 30 additions & 8 deletions webapp/app/root.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,14 +17,36 @@ export function ErrorBoundary() {
const error = useRouteError()
if (isRouteErrorResponse(error)) {
return (
<main>
<h1>
{error.status} - {error.statusText}
</h1>
<p>{error.data}</p>
<p>Are you trying malicious login? 🤔</p>
<p>&copy; Maximum - Programming Circle at Saitama University.</p>
</main>
<div
className={css({
display: 'grid',
placeItems: 'center',
height: '100dvh',
width: '100vw',
})}
>
<div
className={css({
display: 'flex',
flexDirection: 'column',
alignItems: 'center',
gap: 2,
})}
>
<h1
className={css({
fontSize: '4xl',
fontWeight: 'bold',
color: 'text',
})}
>
{error.status} - {error.statusText}
</h1>
<p>{error.data}</p>
<p>Are you trying malicious login? 🤔</p>
<p>&copy; Maximum - Programming Circle at Saitama University.</p>
</div>
</div>
)
}
}
Expand Down

0 comments on commit 6585e0c

Please sign in to comment.