Skip to content

Commit

Permalink
[FIX] App.js merge conflict 해결 (#7)
Browse files Browse the repository at this point in the history
  • Loading branch information
ju1e3718 committed Jul 21, 2023
2 parents a496e4a + 039b3b0 commit 12b00be
Show file tree
Hide file tree
Showing 6 changed files with 57 additions and 9 deletions.
4 changes: 4 additions & 0 deletions job1/src/App.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ import Home from "./View/Home";
import Laws from "./View/Laws";
import Board from "./View/Board";
import News from "./View/News";
import Login from "./View/Login";
import MyPage from "./View/MyPage";
import Write from "./View/Write";

function App() {
Expand All @@ -17,6 +19,8 @@ function App() {
<Route path="/law" element={<Laws />} />
<Route path="/board" element={<Board />} />
<Route path="/news" element={<News />} />
<Route path="/login" element={<Login />} />
<Route path="/mypage" element={<MyPage />} />
<Route path="/write" element={<Write />} />
</Routes>
</Router>
Expand Down
26 changes: 26 additions & 0 deletions job1/src/Main/NavBar.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
.nav-container{
top: 0;
left: 0;
width: 100%;
justify-content: space-between;
display: flex;
align-items: center;
}

.navitems-container{
display: flex;
justify-content: space-between;
}

.navmenus-list{
padding: 1rem;
}

.navuser-container{
display: flex;
justify-content: space-between;
}

.navuser-list{
padding: 1rem;
}
24 changes: 21 additions & 3 deletions job1/src/Main/NavBar.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,29 @@
import NavItems from "./NavItems";
import NavUser from "./NavUser";
import { Link } from "react-router-dom";

import "./NavBar.css";

function NavBar(){
return(
<div>
<NavItems/>
<NavUser/>
<div className="nav-container">
<div className="navitems-container">
<div className="nav-logo">
<Link to={'/'}>Job 일</Link>
</div>
<div className="navmenus">
<Link className="navmenus-list" to={'/law'}>법률</Link>
<Link className="navmenus-list" to={'/board'}>게시판</Link>
<Link className="navmenus-list" to={'/news'}>새소식/뉴스</Link>
</div>
</div>

<div className="navuser-container">
<Link className="navuser-list" to={'/login'} >로그인</Link>
<div className="navuser-list">
<Link to={'/mypage'}>마이페이지</Link>
</div>
</div>
</div>
)
}
Expand Down
2 changes: 1 addition & 1 deletion job1/src/Main/NavItems.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { Link } from "react-router-dom";

function NavItems(){
return(
<div>
<div className="navitems-container">
<div>
<Link to={'/'}>Job 일</Link>
</div>
Expand Down
4 changes: 2 additions & 2 deletions job1/src/Main/NavUser.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@ import { Link } from "react-router-dom";

function NavUser(){
return(
<div>
<div className="navuser-container">
<Link to={'/login'} >로그인</Link>
<div>
<Link to={'/mypage'}></Link>
<Link to={'/mypage'}>마이페이지</Link>
</div>
</div>
)
Expand Down
6 changes: 3 additions & 3 deletions job1/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import App from './App';

const root = ReactDOM.createRoot(document.getElementById('root'));
root.render(
<React.StrictMode>
<App />
</React.StrictMode>
<React.StrictMode>
<App />
</React.StrictMode>
);

0 comments on commit 12b00be

Please sign in to comment.