File tree Expand file tree Collapse file tree 2 files changed +21
-0
lines changed Expand file tree Collapse file tree 2 files changed +21
-0
lines changed Original file line number Diff line number Diff line change @@ -10,6 +10,7 @@ import LineChartPage from "./pages/line"
10
10
import ChoroplethPage from "./pages/geo"
11
11
12
12
import "./main.css"
13
+ import NotFound from "./pages/404"
13
14
14
15
const router = createBrowserRouter ( [
15
16
{
@@ -32,6 +33,10 @@ const router = createBrowserRouter([
32
33
path : "/geo/" ,
33
34
element : < ChoroplethPage /> ,
34
35
} ,
36
+ {
37
+ path : "*" ,
38
+ element : < NotFound /> ,
39
+ } ,
35
40
] )
36
41
37
42
ReactDOM . createRoot ( document . getElementById ( "root" ) ! ) . render (
Original file line number Diff line number Diff line change
1
+ import * as React from "react"
2
+
3
+ interface Props { }
4
+
5
+ const NotFound : React . FC < Props > = ( ) => {
6
+ return (
7
+ < div className = "h-screen grid place-content-center text-center" >
8
+ < div className = "bg-neutral-950 p-5" >
9
+ < h1 className = "font-semibold text-xl mb-1" > Not Found</ h1 >
10
+ < p > the page you're looking for doesn't exists.</ p >
11
+ </ div >
12
+ </ div >
13
+ )
14
+ }
15
+
16
+ export default NotFound
You can’t perform that action at this time.
0 commit comments