-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #71 from Quiddlee/feat/add_404_page
Feat/add 404 page
- Loading branch information
Showing
2 changed files
with
29 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
import { Link } from 'react-router-dom'; | ||
|
||
import ROUTES from '@/shared/constants/routes'; | ||
|
||
const Page404 = () => { | ||
return ( | ||
<section className="flex h-full w-full items-center justify-center"> | ||
<div className="mx-4 w-full max-w-[500px] rounded-md bg-surface-container p-8 text-center text-xl text-on-surface"> | ||
<p className="leading-10"> | ||
The route you are trying to reach does not exist <span className="text-4xl">🤷♂️</span> | ||
</p> | ||
<p> | ||
Try to go{' '} | ||
<Link className="text-primary" to={ROUTES.WELCOME_PAGE}> | ||
Home | ||
</Link>{' '} | ||
instead | ||
</p> | ||
</div> | ||
</section> | ||
); | ||
}; | ||
|
||
export default Page404; |
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