From 7a32735de837c5aef39f3dade79289783cf2b8f7 Mon Sep 17 00:00:00 2001 From: PrathamX595 Date: Mon, 3 Jun 2024 01:01:28 +0530 Subject: [PATCH] frontend: added error page added an error page which is rendered when an unknown route is accessed Fixes: #21 --- frontend/src/pages/Error.tsx | 20 +++++++++++++++----- 1 file changed, 15 insertions(+), 5 deletions(-) diff --git a/frontend/src/pages/Error.tsx b/frontend/src/pages/Error.tsx index 7a93fd7..ca9bbef 100644 --- a/frontend/src/pages/Error.tsx +++ b/frontend/src/pages/Error.tsx @@ -2,11 +2,21 @@ import { Link } from 'react-router-dom'; function Error() { return ( -
- This page does not exist! - Go back to homepage -
+ <> +
+
+
+

404

+
+
Oops! Looks like there's an error
+
+ Back to Home +
+
+
+ + ); } -export default Error; +export default Error; \ No newline at end of file