-
Notifications
You must be signed in to change notification settings - Fork 1
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
4 changed files
with
65 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,15 @@ | ||
import React from 'react'; | ||
|
||
export default function ReturnHomeButton({ onClick }) { | ||
return ( | ||
<button | ||
type="button" | ||
className="bg-mv-green rounded-[5px] shadow-searchBarShadow w-full flex items-center justify-center px-[59px] py-[10px]" | ||
onClick={onClick} | ||
> | ||
<div className="flex items-center justify-center"> | ||
<p className="text-mv-white text-sm font-medium">Return home</p> | ||
</div> | ||
</button> | ||
); | ||
} |
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,47 @@ | ||
import React from 'react'; | ||
import { useNavigate } from 'react-router-dom'; | ||
import logo from '../assets/microvan_logo.svg'; | ||
import NavBar from '../components/navBars/NavBar'; | ||
import ReturnHomeButton from '../components/buttons/ReturnHomeButton'; | ||
|
||
export default function NotFoundPage() { | ||
const navigate = useNavigate(); | ||
|
||
const handleContactUs = (e) => { | ||
e.preventDefault(); | ||
navigate('/contact'); | ||
}; | ||
|
||
const handleGoHome = (e) => { | ||
e.preventDefault(); | ||
navigate('/'); | ||
}; | ||
|
||
return ( | ||
<div className="flex flex-col items-center min-h-screen bg-mv-white"> | ||
<NavBar /> | ||
<div className="flex flex-col items-center mt-[138px]"> | ||
<img src={logo} alt="Microvan logo" className="w-[168px] h-[168px]" /> | ||
<h1 className="mt-[20px] text-not-found-header text-[64px] font-medium"> | ||
404 | ||
</h1> | ||
<p className="text-center mt-4"> | ||
Sorry, the page you're looking for doesn't | ||
<br /> | ||
exist. Try{' '} | ||
<a | ||
href="/contact" | ||
onClick={handleContactUs} | ||
className="underline text-mv-green hover:cursor-pointer" | ||
> | ||
contacting us | ||
</a>{' '} | ||
for help and assistance. | ||
</p> | ||
<div className="mt-[20px]"> | ||
<ReturnHomeButton onClick={handleGoHome} /> | ||
</div> | ||
</div> | ||
</div> | ||
); | ||
} |
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