From a245383f8c8d89d2a170aef0ec76e7fd419b4fa5 Mon Sep 17 00:00:00 2001 From: unknown Date: Fri, 20 Oct 2023 16:22:35 +0530 Subject: [PATCH] Added a custom 404 not found page --- frontend/src/App.tsx | 2 ++ frontend/src/PageNotFound.tsx | 15 +++++++++++++++ 2 files changed, 17 insertions(+) create mode 100644 frontend/src/PageNotFound.tsx diff --git a/frontend/src/App.tsx b/frontend/src/App.tsx index 4454094..878a98f 100644 --- a/frontend/src/App.tsx +++ b/frontend/src/App.tsx @@ -2,6 +2,7 @@ import { Routes, Route } from 'react-router-dom'; import Navigation from './Navigation'; import Conversation from './conversation/Conversation'; import About from './About'; +import PageNotFound from './PageNotFound'; import { inject } from '@vercel/analytics'; import { useMediaQuery } from './hooks'; import { useState } from 'react'; @@ -25,6 +26,7 @@ export default function App() { } /> } /> + } /> diff --git a/frontend/src/PageNotFound.tsx b/frontend/src/PageNotFound.tsx new file mode 100644 index 0000000..eaea5cc --- /dev/null +++ b/frontend/src/PageNotFound.tsx @@ -0,0 +1,15 @@ +import { Link } from 'react-router-dom'; + +export default function PageNotFound() { + return ( +
+

+

404

+

The page you are looking for does not exist.

+ +

+
+ ); +}