|
1 | | -import React from 'react' |
2 | | -import Main from './components/main' |
3 | | -import Navbar from './components/navbar' |
4 | | -import InfogramBelowMain from './components/infobelowmain' |
5 | | -import { HashRouter } from './components/HashRouter' |
6 | | -import Route from './components/HashRouter/Route' |
7 | | -import AboutPage from './components/AboutPage' |
8 | | -import SkillSet from './components/AboutPage/SkillSet' |
9 | | -import GithubStats from './components/AboutPage/Github' |
10 | | -import Projects from './components/Projects' |
11 | | -import Page404 from './components/static/404' |
12 | | -import ContactPage from './components/ContactPage' |
13 | | -import ReWork from './components/ReWork' |
| 1 | +import React from "react"; |
| 2 | +import Main from "./components/main"; |
| 3 | +import Navbar from "./components/navbar"; |
| 4 | +import InfogramBelowMain from "./components/infobelowmain"; |
| 5 | +import { HashRouter } from "./components/HashRouter"; |
| 6 | +import Route from "./components/HashRouter/Route"; |
| 7 | +import AboutPage from "./components/AboutPage"; |
| 8 | +import SkillSet from "./components/AboutPage/SkillSet"; |
| 9 | +import GithubStats from "./components/AboutPage/Github"; |
| 10 | +import Projects from "./components/Projects"; |
| 11 | +import Page404 from "./components/static/404"; |
| 12 | +import ContactPage from "./components/ContactPage"; |
| 13 | +import ReWork from "./components/ReWork"; |
14 | 14 |
|
15 | | -function App ({ analytics }: any) { |
16 | | - return <ReWork /> |
| 15 | +function App({ analytics }: any) { |
| 16 | + return <ReWork />; |
17 | 17 | return ( |
18 | 18 | <HashRouter> |
19 | | - <Route path={'#/'} index component={<div style={{ zIndex: 9999 }}> |
20 | | - <Main /> |
21 | | - <InfogramBelowMain /> |
22 | | - <br /> |
23 | | - </div>} /> |
24 | | - <Route path='#/about' component={<> |
25 | | - <AboutPage /> |
26 | | - <SkillSet /> |
27 | | - <GithubStats /> |
28 | | - </>} /> |
29 | | - <Route path='#/projects' component={<Projects />} /> |
30 | | - <Route path='#/contact' component={<ContactPage analytics={analytics} />} /> |
31 | | - <Route path='*' component={<Page404 />} /> |
| 19 | + <Route |
| 20 | + path={"#/"} |
| 21 | + index |
| 22 | + component={ |
| 23 | + <div style={{ zIndex: 9999 }}> |
| 24 | + <Main /> |
| 25 | + <InfogramBelowMain /> |
| 26 | + <br /> |
| 27 | + </div> |
| 28 | + } |
| 29 | + /> |
| 30 | + <Route |
| 31 | + path="#/about" |
| 32 | + component={ |
| 33 | + <> |
| 34 | + <AboutPage /> |
| 35 | + <SkillSet /> |
| 36 | + <GithubStats /> |
| 37 | + </> |
| 38 | + } |
| 39 | + /> |
| 40 | + <Route path="#/projects" component={<Projects />} /> |
| 41 | + <Route |
| 42 | + path="#/contact" |
| 43 | + component={<ContactPage analytics={analytics} />} |
| 44 | + /> |
| 45 | + <Route path="*" component={<Page404 />} /> |
32 | 46 | </HashRouter> |
33 | | - ) |
| 47 | + ); |
34 | 48 | } |
35 | 49 |
|
36 | | -export default App |
| 50 | +export default App; |
0 commit comments