-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
30 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,24 @@ | ||
import { Button } from '@/components/ui/button'; | ||
import { Link } from 'react-router-dom'; | ||
import { useTranslation } from 'react-i18next'; | ||
|
||
export default function NotFound() { | ||
const { t } = useTranslation(); | ||
|
||
return ( | ||
<div id="error-page"> | ||
<h1>Oops!</h1> | ||
<p>Sorry, an unexpected error has occurred.</p> | ||
<div className="relative overflow-hidden before:absolute before:start-1/2 before:top-0"> | ||
<div className="mx-auto max-w-[85rem] px-4 pb-10 pt-24 sm:px-6 lg:px-8"> | ||
<div className="mx-auto mt-5 max-w-2xl text-center"> | ||
<h2>{t('error.notFound.title')}</h2> | ||
<p>{t('error.notFound.content')}</p> | ||
<Link to="/"> | ||
<Button className="mt-4">{t('error.notFound.button')}</Button> | ||
</Link> | ||
</div> | ||
</div> | ||
|
||
</div> | ||
</div> | ||
); | ||
} |