-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- 전체화면 스크롤 없앰 - 전체화면 리사이즈 될 때마다 캔버스도 리사이즈 - 그 외 컴포넌트 구조 변경 등...
- Loading branch information
Showing
16 changed files
with
182 additions
and
124 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
import React from 'react'; | ||
import styled from 'styled-components'; | ||
|
||
const MainWrapper = styled.main` | ||
width: 100vw; | ||
height: 100vh; | ||
`; | ||
|
||
const Header = styled.header` | ||
position: fixed; | ||
top: 0; | ||
width: 100vw; | ||
height: 26px; | ||
h1 { | ||
padding: 5px; | ||
background-color: var(--darkest-gray); | ||
color: #fff; | ||
} | ||
`; | ||
|
||
const MainContents = styled.section` | ||
display: flex; | ||
height: 100vh; | ||
background-color: var(--dark-gray); | ||
`; | ||
|
||
const Main = ({ children }) => { | ||
return ( | ||
<MainWrapper> | ||
<Header> | ||
<h1>Pictor</h1> | ||
</Header> | ||
<MainContents>{children}</MainContents> | ||
</MainWrapper> | ||
); | ||
}; | ||
|
||
export default Main; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
import React from 'react'; | ||
import styled from 'styled-components'; | ||
|
||
const Wrapper = styled.div` | ||
flex: 1 0 50vh; | ||
overflow-x: hidden; | ||
overflow-y: auto; | ||
`; | ||
|
||
const Content = ({ children }) => { | ||
return <Wrapper>{children}</Wrapper>; | ||
}; | ||
|
||
export default Content; |
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
import React from 'react'; | ||
import styled from 'styled-components'; | ||
|
||
import Tabs from './Tabs'; | ||
|
||
const Wrapper = styled.div` | ||
flex-basis: ${props => (props.target === 'SIDEBAR' ? '20vw' : '80vw')}; | ||
display: flex; | ||
flex-direction: column; | ||
min-width: 0; | ||
padding: 5px; | ||
padding-top: 31px; | ||
&:last-of-type { | ||
padding-left: 0; | ||
} | ||
`; | ||
|
||
const ContentWrapper = styled.div` | ||
flex-grow: 1; | ||
display: flex; | ||
flex-direction: column; | ||
background: var(--middle-gray); | ||
border: 2px solid var(--border-dark-gray); | ||
`; | ||
|
||
const TabPanel = ({ children, ...props }) => { | ||
const { target, tabs, activeTab, handleTab } = props; | ||
//console.log('TabPanel layout ', target, tabs); | ||
return ( | ||
<Wrapper target={target}> | ||
<Tabs tabs={tabs} activeTab={activeTab} handleTab={handleTab} /> | ||
<ContentWrapper>{children}</ContentWrapper> | ||
</Wrapper> | ||
); | ||
}; | ||
|
||
export default TabPanel; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.