marketing/src/pages/404.tsx
import React, { useCallback } from 'react';
import Router from 'next/router';
import Image from 'next/image';
import { ArrowLeftIcon } from '@heroicons/react/outline';
const Page404: React.FC = () => {
const handleGoBack = useCallback(() => Router.back(), []);
return (
<div className="flex justify-center h-screen place-items-center">
<div className="flex-col space-y-44">
<div>
<h1 className="mb-2 text-5xl font-semibold text-gray-900">Page not found</h1>
<p className="font-medium leading-5 text-gray-400">
Sorry, we couldn't find Page you are looking for.
</p>
<button
type="button"
onClick={handleGoBack}
className="flex mt-10 text-green-500 cursor-pointer hover:underline"
>
<ArrowLeftIcon className="w-4 h-4 mt-1 mr-1" />
Go back
</button>
</div>
</div>
<div className="ml-32">
<Image src="/images/404.svg" width="700" height="264.24" alt="404 ERROR" />
</div>
</div>
);
};
export default Page404;