-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- 주식주문 컴포넌트 (매수/매도 버튼 클릭시 렌더링 되는 화면) 레이아웃 일부 구현 - 상단바 구현 Issues #12
- Loading branch information
1 parent
abeda5e
commit 8203e04
Showing
3 changed files
with
73 additions
and
10 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
import { styled } from "styled-components"; | ||
|
||
import UpperBar from "./UpperBar"; | ||
|
||
const StockOrder = () => { | ||
return ( | ||
<Container> | ||
<UpperBar /> | ||
</Container> | ||
); | ||
}; | ||
|
||
export default StockOrder; | ||
|
||
const Container = styled.div` | ||
flex: 3.3 0 0; | ||
min-width: 400px; | ||
height: 100%; | ||
border-left: 1px solid #2f4f4f; | ||
`; |
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,42 @@ | ||
import { styled } from "styled-components"; | ||
|
||
const titleText: string = "주식주문"; | ||
|
||
const UpperBar = () => { | ||
return ( | ||
<Container> | ||
<Title>{titleText}</Title> | ||
<CloseBtn>✕</CloseBtn> | ||
</Container> | ||
); | ||
}; | ||
|
||
export default UpperBar; | ||
|
||
const Container = styled.div` | ||
position: relative; | ||
display: flex; | ||
flex-direction: row; | ||
justify-content: center; | ||
align-items: center; | ||
width: 100%; | ||
height: 43px; | ||
border-bottom: 1px solid black; | ||
`; | ||
|
||
const Title = styled.div` | ||
font-size: 17px; | ||
font-weight: 450; | ||
color: #1c1c1c; | ||
`; | ||
|
||
const CloseBtn = styled.button` | ||
position: absolute; | ||
right: 10px; | ||
width: 28px; | ||
height: 100%; | ||
border: none; | ||
font-size: 20px; | ||
color: #525252; | ||
background-color: #ffff; | ||
`; |
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