Skip to content

Instantly share code, notes, and snippets.

@nwebpro
Created October 15, 2022 07:21
Show Gist options
  • Save nwebpro/3ad3b4928e00ff897a98bbad97be9cf7 to your computer and use it in GitHub Desktop.
Save nwebpro/3ad3b4928e00ff897a98bbad97be9cf7 to your computer and use it in GitHub Desktop.
React Error Page
import React from 'react';
import { Link } from 'react-router-dom';
const ErrorPage = () => {
return (
<section className="flex items-center h-screen p-16 dark:bg-gray-900 dark:text-gray-100">
<div className="container flex flex-col items-center justify-center px-5 mx-auto my-8">
<div className="max-w-md text-center">
<h2 className="mb-8 font-extrabold text-9xl dark:text-gray-600">
<span className="sr-only">Error</span>404
</h2>
<p className="text-2xl font-semibold md:text-3xl">Sorry, we couldn't find this page.</p>
<p className="mt-4 mb-8 dark:text-gray-400">But dont worry, you can find plenty of other things on our homepage.</p>
<Link rel="noopener noreferrer" to="/" className="px-8 py-3 font-semibold rounded bg-themeOrange-10 text-themeWhite">Back to homepage</Link>
</div>
</div>
</section>
);
};
export default ErrorPage;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment