File tree Expand file tree Collapse file tree 3 files changed +27
-2
lines changed Expand file tree Collapse file tree 3 files changed +27
-2
lines changed Original file line number Diff line number Diff line change 1
1
import { ThemeProvider } from "@/components/theme-provider"
2
2
import { Route , Routes } from "react-router-dom"
3
- import Home from "@/pages/Home"
3
+ // Layouts
4
4
import Header from "@/layouts/header"
5
+ // Pages
6
+ import Home from "@/pages/Home"
7
+ import NotFound from '@/pages/404'
5
8
6
9
function App ( ) {
7
10
8
11
return (
9
12
< ThemeProvider defaultTheme = "system" storageKey = "ui-theme" >
10
13
< Header />
11
14
< Routes >
12
- < Route path = "React-Project/" element = { < Home /> } />
15
+ < Route path = 'React-Project' >
16
+ < Route index element = { < Home /> } />
17
+ < Route path = "*" element = { < NotFound /> } />
18
+ </ Route >
13
19
</ Routes >
14
20
</ ThemeProvider >
15
21
)
Original file line number Diff line number Diff line change 58
58
body {
59
59
@apply bg-background text-foreground;
60
60
}
61
+ # root {
62
+ @apply h-screen w-screen flex flex-col
63
+ }
61
64
}
62
65
@layer components {
63
66
.focusing {
Original file line number Diff line number Diff line change
1
+
2
+ function NotFound ( ) {
3
+
4
+ return (
5
+ < div className = "flex items-center justify-center flex-1 space-x-4" >
6
+ < div className = "text-4xl font-bold border-r-2 border-primary pr-4 font-mono" >
7
+ 404
8
+ </ div >
9
+ < div className = "text-lg" >
10
+ Not Found
11
+ </ div >
12
+ </ div >
13
+ )
14
+ }
15
+
16
+ export default NotFound ;
You can’t perform that action at this time.
0 commit comments