Skip to content

Commit

Permalink
center the error state headings
Browse files Browse the repository at this point in the history
did not alter .special, as that is used for the homepage
  • Loading branch information
bmuenzenmeyer committed Sep 24, 2024
1 parent 1088162 commit 81cb95a
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
2 changes: 1 addition & 1 deletion apps/site/app/[locale]/error.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ const ErrorPage: FC<{ error: Error }> = ({ error }) => {

<main>
500
<h1 className="special -mt-4">
<h1 className="special -mt-4 text-center">
{t('layouts.error.internalServerError.title')}
</h1>
<p className="-mt-4 max-w-sm text-center text-lg">
Expand Down
4 changes: 3 additions & 1 deletion apps/site/app/[locale]/not-found.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,9 @@ const NotFoundPage: FC = () => {

<main>
404
<h1 className="special -mt-4">{t('layouts.error.notFound.title')}</h1>
<h1 className="special -mt-4 text-center">
{t('layouts.error.notFound.title')}
</h1>
<div className="my-4 flex h-[150px] items-center justify-center md:h-[300px]">
<div className="turtle motion-safe:animate-surf motion-reduce:animate-none">
<Image
Expand Down
4 changes: 3 additions & 1 deletion apps/site/app/global-error.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,9 @@ const GlobalErrorPage: FC<{ error: Error }> = ({ error }) => {

<main>
500
<h1 className="special -mt-4">Internal Server Error</h1>
<h1 className="special -mt-4 text-center">
Internal Server Error
</h1>
<p className="-mt-4 max-w-sm text-center text-lg">
This page has thrown a non-recoverable error.
</p>
Expand Down

0 comments on commit 81cb95a

Please # to comment.