-
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
679c2b7
commit 2e77a51
Showing
8 changed files
with
126 additions
and
4 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
import { styled } from "styled-components"; | ||
|
||
import StockPriceInfo from "./StockPriceInfo"; | ||
import StockOrderSetting from "./StockOrderSetting"; | ||
|
||
const OrderRequest = () => { | ||
return ( | ||
<Container> | ||
<StockPriceInfo /> | ||
<StockOrderSetting /> | ||
</Container> | ||
); | ||
}; | ||
|
||
export default OrderRequest; | ||
|
||
const Container = styled.div` | ||
height: 414px; | ||
border-bottom: 1px solid black; | ||
display: flex; | ||
flex-direction: row; | ||
`; |
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,12 @@ | ||
import { styled } from "styled-components"; | ||
|
||
const OrderResult = () => { | ||
return <Container></Container>; | ||
}; | ||
|
||
export default OrderResult; | ||
|
||
const Container = styled.div` | ||
flex: 1 0 0; | ||
border-bottom: 1px solid black; | ||
`; |
File renamed without changes.
41 changes: 41 additions & 0 deletions
41
client/src/components/StockOrderSection/StockOrderSetting.tsx
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,41 @@ | ||
import { styled } from "styled-components"; | ||
|
||
const orderType01: string = "매수"; | ||
const orderType02: string = "매도"; | ||
|
||
const StockOrderSetting = () => { | ||
return ( | ||
<Container> | ||
<OrderType> | ||
<div className="buying">{orderType01}</div> | ||
<div className="selling">{orderType02}</div> | ||
</OrderType> | ||
</Container> | ||
); | ||
}; | ||
|
||
export default StockOrderSetting; | ||
|
||
const Container = styled.div` | ||
width: 208px; | ||
height: 100%; | ||
border-left: 1px solid black; | ||
border-right: 1px solid black; | ||
`; | ||
|
||
const OrderType = styled.div` | ||
width: 100%; | ||
height: 32px; | ||
display: flex; | ||
flex-direction: row; | ||
& div { | ||
flex: 1 0 0; | ||
display: flex; | ||
justify-content: center; | ||
align-items: center; | ||
height: 31px; | ||
font-size: 14px; | ||
border-bottom: 1px solid darkgray; | ||
} | ||
`; |
37 changes: 37 additions & 0 deletions
37
client/src/components/StockOrderSection/StockPriceInfo.tsx
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 { styled } from "styled-components"; | ||
|
||
const StockPriceInfo = () => { | ||
return ( | ||
<Container> | ||
<HighFigure></HighFigure> | ||
<PriceInfo></PriceInfo> | ||
<LowerFigure></LowerFigure> | ||
</Container> | ||
); | ||
}; | ||
|
||
export default StockPriceInfo; | ||
|
||
const Container = styled.div` | ||
width: 160px; | ||
height: 100%; | ||
margin-right: 16px; | ||
border-right: 1px solid black; | ||
`; | ||
|
||
const HighFigure = styled.div` | ||
width: 100%; | ||
height: 32px; | ||
border-bottom: 1px solid black; | ||
`; | ||
|
||
const PriceInfo = styled.div` | ||
width: 100%; | ||
height: 348px; | ||
border-bottom: 1px solid black; | ||
`; | ||
|
||
const LowerFigure = styled.div` | ||
width: 100%; | ||
height: 32px; | ||
`; |
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