Skip to content

Commit

Permalink
๐Ÿ’„ [Client] Nav.js : nav bar display ์ˆ˜์ •
Browse files Browse the repository at this point in the history
  • Loading branch information
youngseo-kangg committed Aug 29, 2021
1 parent 85f293d commit 94cb453
Show file tree
Hide file tree
Showing 6 changed files with 73 additions and 29 deletions.
Binary file modified .DS_Store
Binary file not shown.
6 changes: 3 additions & 3 deletions client/src/App.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@ function App() {
</header>

<Switch>
<div className="exNav">
<Route exact path="/mypage">
<>
<Route path="/mypage">
<Mypage />
</Route>
<Route exact path="/">
Expand All @@ -43,7 +43,7 @@ function App() {
)}
</Route>
<footer>copyright JURIMMA</footer>
</div>
</>
</Switch>
</div>
</div>
Expand Down
19 changes: 3 additions & 16 deletions client/src/app.css
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,6 @@ button {
font-family: "Nanum Gothic", "Noto Sans", sans-serif;
box-sizing: border-box;
}
/* HTML5 display-role reset for older browsers */
html {
/* font-size: 16px; */
}

body {
line-height: 1;
Expand Down Expand Up @@ -91,10 +87,13 @@ h1 {

#wrap {
display: flex;
width:100%;
height:100%;
}

.exNav {
flex: 5 1 auto;
min-height:100vh;
}

header {
Expand All @@ -104,18 +103,6 @@ header {
place-items: center;
}

nav {
background-color: #38372e;
/* background-color: blacks; */
height: 100vh;
flex: 1 1 auto;
}

section {
height: 55vh;
background-color: #ffe65b;
}

footer {
height: 10vh;
min-height: 67px;
Expand Down
12 changes: 6 additions & 6 deletions client/src/comp/Nav.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,13 @@ import profile from "../none_profile.jpeg";
function Nav({ isLogin }) {
const NavWrap = styled.nav`
background-color: #38372e;
/* background-color: black; */
position: sticky;
top: 0;
height: 100vh;
flex: 1 1 auto;
display: grid;
place-items: center;
display:flex;
min-height:100vh;
justify-content:center;
align-items:center;
/* display: grid;
place-items: center; */
`;

const Button1 = styled.button`
Expand Down
56 changes: 54 additions & 2 deletions client/src/pages/Mypage.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,16 @@ import styled from "styled-components";

const MypageWrap = styled.div`
width:100%;
display:grid;
place-items:center;
min-height:55vh;
/* display:grid;
place-items:center; */
font-size:max(16px, 0.8vw);
`
const MypageContent = styled.div`
width:75%;
border:1px solid red;
min-width:200px;
margin:0 auto;
display:flex;
flex-direction:column;
flex-wrap:wrap;
Expand Down Expand Up @@ -91,6 +94,55 @@ function Mypage(){
<p>์ถ”์ฒœ ์ˆ˜</p>
</div>
</li>
<li className="content">
<input type="checkbox" />
<div className="contentInfo">
<p>๋‹จ์–ด</p>
<p>๋‹จ์–ด ๋œป</p>
<p>์ถ”์ฒœ ์ˆ˜</p>
</div>
</li>
<li className="content">
<input type="checkbox" />
<div className="contentInfo">
<p>๋‹จ์–ด</p>
<p>๋‹จ์–ด ๋œป</p>
<p>์ถ”์ฒœ ์ˆ˜</p>
</div>
</li>
<li className="content">
<input type="checkbox" />
<div className="contentInfo">
<p>๋‹จ์–ด</p>
<p>๋‹จ์–ด ๋œป</p>
<p>์ถ”์ฒœ ์ˆ˜</p>
</div>
</li>
<li className="content">
<input type="checkbox" />
<div className="contentInfo">
<p>๋‹จ์–ด</p>
<p>๋‹จ์–ด ๋œป</p>
<p>์ถ”์ฒœ ์ˆ˜</p>
</div>
</li>
<li className="content">
<input type="checkbox" />
<div className="contentInfo">
<p>๋‹จ์–ด</p>
<p>๋‹จ์–ด ๋œป</p>
<p>์ถ”์ฒœ ์ˆ˜</p>
</div>
</li>
<li className="content">
<input type="checkbox" />
<div className="contentInfo">
<p>๋‹จ์–ด</p>
<p>๋‹จ์–ด ๋œป</p>
<p>์ถ”์ฒœ ์ˆ˜</p>
</div>
</li>

</ContentList>

<ContentCheck>
Expand Down
9 changes: 7 additions & 2 deletions client/src/pages/Search.js
Original file line number Diff line number Diff line change
@@ -1,12 +1,17 @@
import styled from "styled-components";
import SearchInput from "../comp/SearchInput";
import SearchResult from "../comp/SearchResult";

const SearchSection = styled.section`
min-height:55vh;
`

function Search({data}) {
return (
<section>
<SearchSection>
<SearchInput />
<SearchResult data={data} />
</section>
</SearchSection>
);
}

Expand Down

0 comments on commit 94cb453

Please sign in to comment.