1
1
import React from "react" ;
2
+ import { BrowserRouter , Routes , Route } from "react-router-dom" ;
2
3
import Homepage from "./pages/Homepage" ;
3
- import Navbar from "./components/Navbar" ;
4
4
import Team from "./pages/Team" ;
5
5
import Contacts from "./pages/Contacts" ;
6
- import Shipyard from "./pages/Shipyard"
6
+ import Shipyard from "./pages/Shipyard" ;
7
7
import About from "./pages/AboutOrg" ;
8
8
import Buiding from "./pages/Buiding" ;
9
- import ReactDOM from "react-dom/client" ;
10
9
import Guide from "./pages/Guide" ;
11
10
import Faqs from "./pages/Faqs" ;
12
11
import Resources from "./pages/Resources" ;
@@ -21,51 +20,37 @@ import Tail_wind from "./pages/Frontend/Tail_wind";
21
20
import Vue__js from "./pages/Frontend/Vue__js" ;
22
21
import React__native from "./pages/Frontend/React__native" ;
23
22
import Three__js from "./pages/Frontend/Three__js" ;
24
-
25
- // import About from './components/About'
26
- // import AboutOrg from "./pages/AboutOrg";
27
- import { BrowserRouter , Routes , Route } from "react-router-dom" ;
28
23
import PageNotFound from "./pages/PageNotFound" ;
29
24
30
- const root = ReactDOM . createRoot ( document . getElementById ( "root" ) ) ;
31
- root . render ( < App /> ) ;
32
-
33
25
function App ( ) {
34
26
return (
35
27
< BrowserRouter >
36
28
< Routes >
37
- < Route path = "/" element = { < Homepage /> } > </ Route >
38
- < Route path = "/home" element = { < Homepage /> } > </ Route >
39
- < Route path = "/team" element = { < Team /> } > </ Route >
40
- < Route path = "/contact" element = { < Contacts /> } > </ Route >
41
- < Route path = "/shipyard" element = { < Shipyard /> } > </ Route >
42
- < Route path = "/about" element = { < About /> } > </ Route >
43
- < Route path = "/building" element = { < Buiding /> } > </ Route >
44
- < Route path = "/guide" element = { < Guide /> } > </ Route >
45
- < Route path = "/faq" element = { < Faqs /> } > </ Route >
46
- < Route path = "/resource" element = { < Resources /> } > </ Route >
47
- < Route path = "/privacypolicy" element = { < Privacy /> } > </ Route >
48
- < Route path = "/frontend" element = { < Frontends /> } > </ Route >
49
- < Route path = "/html_css" element = { < HTMLCSS /> } > </ Route >
50
- < Route path = "/javascript" element = { < JS /> } > </ Route >
51
- < Route path = "/electron" element = { < Eletron /> } > </ Route >
52
- < Route path = "/reactjs" element = { < Reactjs /> } > </ Route >
53
- < Route path = "/nextjs" element = { < Next__js /> } > </ Route >
54
- < Route path = "/tailwind" element = { < Tail_wind /> } > </ Route >
55
- < Route path = "/vuejs" element = { < Vue__js /> } > </ Route >
56
- < Route path = "/threejs" element = { < Three__js /> } > </ Route >
57
- < Route path = "/reactnative" element = { < React__native /> } > </ Route >
58
- < Route path = "*" element = { < PageNotFound /> } > </ Route >
29
+ < Route path = "/" element = { < Homepage /> } / >
30
+ < Route path = "/home" element = { < Homepage /> } / >
31
+ < Route path = "/team" element = { < Team /> } / >
32
+ < Route path = "/contact" element = { < Contacts /> } / >
33
+ < Route path = "/shipyard" element = { < Shipyard /> } / >
34
+ < Route path = "/about" element = { < About /> } / >
35
+ < Route path = "/building" element = { < Buiding /> } / >
36
+ < Route path = "/guide" element = { < Guide /> } / >
37
+ < Route path = "/faq" element = { < Faqs /> } / >
38
+ < Route path = "/resource" element = { < Resources /> } / >
39
+ < Route path = "/privacypolicy" element = { < Privacy /> } / >
40
+ < Route path = "/frontend" element = { < Frontends /> } / >
41
+ < Route path = "/html_css" element = { < HTMLCSS /> } / >
42
+ < Route path = "/javascript" element = { < JS /> } / >
43
+ < Route path = "/electron" element = { < Eletron /> } / >
44
+ < Route path = "/reactjs" element = { < Reactjs /> } / >
45
+ < Route path = "/nextjs" element = { < Next__js /> } / >
46
+ < Route path = "/tailwind" element = { < Tail_wind /> } / >
47
+ < Route path = "/vuejs" element = { < Vue__js /> } / >
48
+ < Route path = "/threejs" element = { < Three__js /> } / >
49
+ < Route path = "/reactnative" element = { < React__native /> } / >
50
+ < Route path = "*" element = { < PageNotFound /> } / >
59
51
</ Routes >
60
52
</ BrowserRouter >
61
53
) ;
62
54
}
63
55
64
- export default App ;
65
-
66
- {
67
- /* <Navbar />
68
- <Hero />
69
- <About />
70
- <Newsletter/> */
71
- }
56
+ export default App ;
0 commit comments