diff --git a/react-springboot/book/book-frontend/.prettierrc b/react-springboot/book/book-frontend/.prettierrc new file mode 100644 index 00000000..c993886c --- /dev/null +++ b/react-springboot/book/book-frontend/.prettierrc @@ -0,0 +1,7 @@ +{ + "singleQuote": true, + "semi": true, + "tabWidth": 2, + "trailingComma": "all", + "printWidth": 80 +} \ No newline at end of file diff --git a/react-springboot/book/book-frontend/src/App.js b/react-springboot/book/book-frontend/src/App.js index ecc34612..2e1e7ca0 100644 --- a/react-springboot/book/book-frontend/src/App.js +++ b/react-springboot/book/book-frontend/src/App.js @@ -1,5 +1,28 @@ +import React from 'react'; +import { Container } from 'react-bootstrap'; +import { Route } from 'react-router-dom'; +import Header from './components/Header'; +import Detail from './pages/book/Detail'; +import Home from './pages/book/Home'; +import SaveForm from './pages/book/SaveForm'; +import UpdateForm from './pages/book/UpdateForm'; +import JoinForm from './pages/user/JoinForm'; +import LoginForm from './pages/user/LoginForm'; + function App() { - return
Hello World
; + return ( +
+
+ + + + + + + + +
+ ); } export default App; diff --git a/react-springboot/book/book-frontend/src/components/Header.js b/react-springboot/book/book-frontend/src/components/Header.js new file mode 100644 index 00000000..327e0b03 --- /dev/null +++ b/react-springboot/book/book-frontend/src/components/Header.js @@ -0,0 +1,33 @@ +import React from 'react'; +import { Button, Form, FormControl, Nav, Navbar } from 'react-bootstrap'; +import { Link } from 'react-router-dom'; + +const Header = () => { + return ( + <> + + + 홈 + + +
+ + + +
+
+ + ); +}; + +export default Header; diff --git a/react-springboot/book/book-frontend/src/index.js b/react-springboot/book/book-frontend/src/index.js index c7416f65..b1427b3c 100644 --- a/react-springboot/book/book-frontend/src/index.js +++ b/react-springboot/book/book-frontend/src/index.js @@ -1,6 +1,8 @@ -import React from "react"; -import ReactDOM from "react-dom"; -import App from "./App"; +import React from 'react'; +import ReactDOM from 'react-dom'; +import App from './App'; +import { BrowserRouter } from 'react-router-dom'; +import 'bootstrap/dist/css/bootstrap.min.css'; ReactDOM.render( @@ -8,5 +10,5 @@ ReactDOM.render( , - document.getElementById("root") + document.getElementById('root'), ); diff --git a/react-springboot/book/book-frontend/src/pages/book/Detail.js b/react-springboot/book/book-frontend/src/pages/book/Detail.js new file mode 100644 index 00000000..98bfb7f6 --- /dev/null +++ b/react-springboot/book/book-frontend/src/pages/book/Detail.js @@ -0,0 +1,12 @@ +import React from 'react'; + +const Detail = () => { + return ( +
+

상세보기 페이지

+
+ ); +}; + +export default Detail; +

상세보기 페이지

; diff --git a/react-springboot/book/book-frontend/src/pages/book/Home.js b/react-springboot/book/book-frontend/src/pages/book/Home.js new file mode 100644 index 00000000..7f63daf1 --- /dev/null +++ b/react-springboot/book/book-frontend/src/pages/book/Home.js @@ -0,0 +1,11 @@ +import React from 'react'; + +const Home = () => { + return ( +
+

책 리스트 보기

+
+ ); +}; + +export default Home; diff --git a/react-springboot/book/book-frontend/src/pages/book/SaveForm.js b/react-springboot/book/book-frontend/src/pages/book/SaveForm.js new file mode 100644 index 00000000..e288b880 --- /dev/null +++ b/react-springboot/book/book-frontend/src/pages/book/SaveForm.js @@ -0,0 +1,12 @@ +import React from 'react'; + +const SaveForm = () => { + return ( +
+

책 등록하기

+
+ ); +}; + +export default SaveForm; +

책 등록하기

; diff --git a/react-springboot/book/book-frontend/src/pages/book/UpdateForm.js b/react-springboot/book/book-frontend/src/pages/book/UpdateForm.js new file mode 100644 index 00000000..393e90bf --- /dev/null +++ b/react-springboot/book/book-frontend/src/pages/book/UpdateForm.js @@ -0,0 +1,12 @@ +import React from 'react'; + +const UpdateForm = () => { + return ( +
+

책 수정하기

+
+ ); +}; + +export default UpdateForm; +

책 수정하기

; diff --git a/react-springboot/book/book-frontend/src/pages/user/JoinForm.js b/react-springboot/book/book-frontend/src/pages/user/JoinForm.js new file mode 100644 index 00000000..fbf601e1 --- /dev/null +++ b/react-springboot/book/book-frontend/src/pages/user/JoinForm.js @@ -0,0 +1,11 @@ +import React from 'react'; + +const JoinForm = () => { + return ( +
+

회원가입 화면

+
+ ); +}; + +export default JoinForm; diff --git a/react-springboot/book/book-frontend/src/pages/user/LoginForm.js b/react-springboot/book/book-frontend/src/pages/user/LoginForm.js new file mode 100644 index 00000000..0626332c --- /dev/null +++ b/react-springboot/book/book-frontend/src/pages/user/LoginForm.js @@ -0,0 +1,11 @@ +import React from 'react'; + +const LoginForm = () => { + return ( +
+

로그인 화면

+
+ ); +}; + +export default LoginForm;