Showing
4 changed files
with
35 additions
and
21 deletions
... | @@ -3,11 +3,17 @@ | ... | @@ -3,11 +3,17 @@ |
3 | "version": "0.1.0", | 3 | "version": "0.1.0", |
4 | "private": true, | 4 | "private": true, |
5 | "dependencies": { | 5 | "dependencies": { |
6 | + "@chakra-ui/core": "^0.8.0", | ||
7 | + "@chakra-ui/react": "^1.6.3", | ||
8 | + "@emotion/react": "11", | ||
9 | + "@emotion/styled": "11", | ||
6 | "@testing-library/jest-dom": "^5.11.4", | 10 | "@testing-library/jest-dom": "^5.11.4", |
7 | "@testing-library/react": "^11.1.0", | 11 | "@testing-library/react": "^11.1.0", |
8 | "@testing-library/user-event": "^12.1.10", | 12 | "@testing-library/user-event": "^12.1.10", |
13 | + "framer-motion": "4", | ||
9 | "react": "^17.0.2", | 14 | "react": "^17.0.2", |
10 | "react-dom": "^17.0.2", | 15 | "react-dom": "^17.0.2", |
16 | + "react-router-dom": "^5.2.0", | ||
11 | "react-scripts": "4.0.3", | 17 | "react-scripts": "4.0.3", |
12 | "web-vitals": "^1.0.1" | 18 | "web-vitals": "^1.0.1" |
13 | }, | 19 | }, | ... | ... |
1 | -import logo from './logo.svg'; | 1 | +import React, { useEffect } from 'react' |
2 | -import './App.css'; | 2 | +import { BrowserRouter, Route, Redirect, Switch, Link } from 'react-router-dom' |
3 | +import { ChakraProvider } from "@chakra-ui/react" | ||
4 | +import Index from './components/Index' | ||
3 | 5 | ||
4 | -function App() { | 6 | +const App = () => { |
5 | return ( | 7 | return ( |
6 | - <div className="App"> | 8 | + <ChakraProvider> |
7 | - <header className="App-header"> | 9 | + <BrowserRouter> |
8 | - <img src={logo} className="App-logo" alt="logo" /> | 10 | + <Switch> |
9 | - <p> | 11 | + <Route exact path="/" component={Index}/> |
10 | - Edit <code>src/App.js</code> and save to reload. | 12 | + <Redirect path="*" to="/"/> |
11 | - </p> | 13 | + </Switch> |
12 | - <a | 14 | + </BrowserRouter> |
13 | - className="App-link" | 15 | + </ChakraProvider> |
14 | - href="https://reactjs.org" | 16 | + ) |
15 | - target="_blank" | ||
16 | - rel="noopener noreferrer" | ||
17 | - > | ||
18 | - Learn React | ||
19 | - </a> | ||
20 | - </header> | ||
21 | - </div> | ||
22 | - ); | ||
23 | } | 17 | } |
24 | 18 | ||
25 | -export default App; | 19 | +export default App | ... | ... |
frontend/src/components/Index.js
0 → 100644
1 | +import React, { useEffect } from 'react' | ||
2 | +import { BrowserRouter, Route, Redirect, Switch, Link } from 'react-router-dom' | ||
3 | +import { Container } from "@chakra-ui/react" | ||
4 | + | ||
5 | + | ||
6 | +const Index = () => { | ||
7 | + return ( | ||
8 | + <Container> | ||
9 | + asdfasdfasdf | ||
10 | + </Container> | ||
11 | + ) | ||
12 | +} | ||
13 | + | ||
14 | +export default Index |
This diff is collapsed. Click to expand it.
-
Please register or login to post a comment