Skip to content

Commit

Permalink
Merge pull request #10 from TaePoong719/revert-4-feature/#1
Browse files Browse the repository at this point in the history
Revert "디자인 초안이 나옴에 따른 컴포넌트 관계 설정 및 컴포넌트 레이아웃 재조정 (이슈 #1)"
  • Loading branch information
TaePoong719 authored Sep 12, 2023
2 parents 8250e48 + e5b5718 commit 0fdb3e5
Show file tree
Hide file tree
Showing 7 changed files with 24 additions and 37 deletions.
3 changes: 1 addition & 2 deletions src/Router.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,9 @@ const Router = () => {
}

const Container = styled.main`
margin: 0 auto;
max-width: 1200px;
position: relative;
top:60px;
padding: 10px;
`

export default Router
2 changes: 1 addition & 1 deletion src/components/Header.css
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
.header__link-wrapper{
.header__link_wrapper{
display:flex;
justify-content: flex-end;
margin-right: 3rem;
Expand Down
28 changes: 10 additions & 18 deletions src/components/Header.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,25 +9,18 @@ const Header = () => {

return (
<Container>
<InnerContainer>
<ul className="header__link-wrapper">
{
pageLink.map((link,idx)=>
<li key={pageName[idx]} >
<Link to={`/${link}`}> {pageName[idx]} </Link>
</li>
)
}
</ul>
</InnerContainer>
<ul className="header__link_wrapper">
{
pageLink.map((link,idx)=>
<li key={pageName[idx]} >
<Link to={`/${link}`}> {pageName[idx]} </Link>
</li>
)
}
</ul>
</Container>
)
}
const InnerContainer = styled.div`
margin: 0 auto;
max-width: 1200px;
`

const Container = styled.nav`
position: fixed;
Expand All @@ -36,10 +29,9 @@ const Container = styled.nav`
right: 0;
width: 100%;
height: 60px;
border-bottom: 2px solid #ddd;
background-color: #999;
font-size: 1rem;
z-index: 10;
background-color: #fff;
`

export default Header
2 changes: 1 addition & 1 deletion src/components/Sidebar.css
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
.sidebar__link-wrapper{
.sidebar__link_wrapper{
display:flex;
flex-flow: column;
gap: 20px;
Expand Down
14 changes: 7 additions & 7 deletions src/components/Sidebar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ const Sidebar = () => {
// Wiki 사이드바
return (
<Container>
<ul className="sidebar__link-wrapper">
<ul className="sidebar__link_wrapper">
{
sideLink.map((link,idx)=>
<li key={sideName[idx]} >
Expand All @@ -39,13 +39,13 @@ const Sidebar = () => {

const Container = styled.aside`
position: fixed;
left: 0;
top: 60px;
bottom: 0;
z-index: 9;
width: 180px;
height: 100vh;
border-right: 2px solid #ddd;
box-sizing: border-box;
padding: 5px;
width: 140px;
height: 100%;
background-color: #ddd;
`


Expand Down
6 changes: 2 additions & 4 deletions src/pages/Gallery.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -53,11 +53,9 @@ Vivamus sed aliquet lacus. Aenean pharetra quis mi vel tempor. Duis id velit ali

const Container = styled.section`
position: relative;
left: 180px;
left: 140px;
height: calc(100% - 60px);
width: calc(100% - 180px);
padding: 5px;
box-sizing: border-box;
width: calc(100% - 140px);
`

export default Gallery
6 changes: 2 additions & 4 deletions src/pages/Wiki.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,9 @@ const Wiki = () => {

const Container = styled.section`
position: relative;
left: 180px;
left: 140px;
height: calc(100% - 60px);
width: calc(100% - 180px);
padding: 5px;
box-sizing: border-box;
width: calc(100% - 140px);
`

export default Wiki

0 comments on commit 0fdb3e5

Please sign in to comment.