-
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
2e77a51
commit 323b525
Showing
10 changed files
with
357 additions
and
20 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,52 @@ | ||
import { styled } from "styled-components"; | ||
|
||
const titleText: string = "주문내역"; | ||
const orderPendingTitle: string = "미체결"; | ||
const orderPendingEmptyMessage: string = "미체결 내역이 없습니다"; | ||
|
||
const OrderResult = () => { | ||
return <Container></Container>; | ||
return ( | ||
<Container> | ||
<Title>{titleText}</Title> | ||
<OrderPending> | ||
<div className="orderPendingTitle">{orderPendingTitle}</div> | ||
<div className="emptyIndicator">{orderPendingEmptyMessage}</div> | ||
</OrderPending> | ||
</Container> | ||
); | ||
}; | ||
|
||
export default OrderResult; | ||
|
||
const Container = styled.div` | ||
flex: 1 0 0; | ||
border-bottom: 1px solid black; | ||
padding-top: 16px; | ||
display: flex; | ||
flex-direction: column; | ||
`; | ||
|
||
const Title = styled.div` | ||
font-size: 16px; | ||
font-weight: 500; | ||
padding-left: 16px; | ||
padding-bottom: 16px; | ||
/* border-bottom: 1px solid black; */ | ||
`; | ||
|
||
const OrderPending = styled.div` | ||
.orderPendingTitle { | ||
padding-left: 16px; | ||
margin-bottom: 8px; | ||
} | ||
.emptyIndicator { | ||
width: 100%; | ||
height: 48px; | ||
display: flex; | ||
justify-content: center; | ||
align-items: center; | ||
font-size: 14px; | ||
font-weight: 350; | ||
color: #999999; | ||
} | ||
`; |
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,93 @@ | ||
import { styled } from "styled-components"; | ||
|
||
const priceSettingTitle: string = "가격"; | ||
const specifiedPriceBtnText: string = "지정가"; | ||
const marketPriceBtnText: string = "시장가"; | ||
|
||
const PriceSetting = () => { | ||
return ( | ||
<Container> | ||
<PriceCategoryBox> | ||
<Title>{priceSettingTitle}</Title> | ||
<ButtonContainer> | ||
<SepcifiedPriceBtn>{specifiedPriceBtnText}</SepcifiedPriceBtn> | ||
<MarketPriceBtn>{marketPriceBtnText}</MarketPriceBtn> | ||
</ButtonContainer> | ||
</PriceCategoryBox> | ||
<PriceSettingBox> | ||
<PriceController /> | ||
<DirectionBox> | ||
<button className="PriceUp">⋀</button> | ||
<button className="PriceDown">⋁</button> | ||
</DirectionBox> | ||
</PriceSettingBox> | ||
</Container> | ||
); | ||
}; | ||
|
||
export default PriceSetting; | ||
|
||
const Container = styled.div` | ||
width: 100%; | ||
margin-top: 16px; | ||
margin-bottom: 32px; | ||
`; | ||
|
||
const PriceCategoryBox = styled.div` | ||
display: flex; | ||
flex-direction: row; | ||
justify-content: space-between; | ||
margin-bottom: 8px; | ||
`; | ||
|
||
const Title = styled.div` | ||
padding-left: 5px; | ||
font-size: 13px; | ||
color: #999999; | ||
`; | ||
|
||
const ButtonContainer = styled.div` | ||
width: 105px; | ||
height: 27px; | ||
background-color: #ded9d9; | ||
border-radius: 0.3rem; | ||
display: flex; | ||
flex-direction: row; | ||
justify-content: center; | ||
align-items: center; | ||
`; | ||
|
||
const SepcifiedPriceBtn = styled.button` | ||
width: 50px; | ||
height: 23px; | ||
padding: 4px; | ||
border: none; | ||
background-color: #ded9d9; | ||
font-size: 13px; | ||
`; | ||
|
||
const MarketPriceBtn = styled(SepcifiedPriceBtn)``; | ||
|
||
const PriceSettingBox = styled.div` | ||
display: flex; | ||
flex-direction: row; | ||
`; | ||
|
||
const PriceController = styled.input` | ||
flex: 1 0 0; | ||
height: 30px; | ||
`; | ||
|
||
const DirectionBox = styled.div` | ||
display: flex; | ||
flex-direction: column; | ||
& button { | ||
width: 31px; | ||
height: 15px; | ||
display: flex; | ||
justify-content: center; | ||
align-items: center; | ||
font-size: 10px; | ||
} | ||
`; |
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,83 @@ | ||
import { styled } from "styled-components"; | ||
|
||
const availableMoneyText01: string = "최대"; | ||
const availableMoneyText02: string = "원"; | ||
const totalAmountText01: string = "주문총액"; | ||
const totalAmountText02: string = "원"; | ||
const orderBtnText: string = "매수"; | ||
|
||
// dummyData | ||
const dummyMoney: string = "9,990,086"; | ||
const dummyAmount: string = "0"; | ||
|
||
const StockOrderBtn = () => { | ||
return ( | ||
<Container> | ||
<AvailableMoney> | ||
<span>{availableMoneyText01}</span> | ||
<span className="availableMoney">{dummyMoney}</span> | ||
<span>{availableMoneyText02}</span> | ||
</AvailableMoney> | ||
<TotalAmount> | ||
<div className="totalAmountText01">{totalAmountText01}</div> | ||
<div className="totalAmount">{dummyAmount}</div> | ||
<div>{totalAmountText02}</div> | ||
</TotalAmount> | ||
<OrderBtn>{orderBtnText}</OrderBtn> | ||
</Container> | ||
); | ||
}; | ||
|
||
export default StockOrderBtn; | ||
|
||
const Container = styled.div``; | ||
|
||
const AvailableMoney = styled.div` | ||
display: flex; | ||
flex-direction: row; | ||
justify-content: flex-end; | ||
gap: 4px; | ||
& span { | ||
font-size: 14px; | ||
color: #999999; | ||
} | ||
.availableMoney { | ||
color: #ed2926; | ||
} | ||
`; | ||
|
||
const TotalAmount = styled.div` | ||
display: flex; | ||
flex-direction: row; | ||
margin-top: 4px; | ||
gap: 4px; | ||
& div { | ||
font-size: 13px; | ||
color: #999999; | ||
display: flex; | ||
align-items: center; | ||
} | ||
.totalAmountText01 { | ||
flex: 8 0 0; | ||
} | ||
.totalAmount { | ||
color: black; | ||
font-size: 15.5px; | ||
} | ||
`; | ||
|
||
const OrderBtn = styled.button` | ||
width: 100%; | ||
height: 32px; | ||
margin-top: 16px; | ||
border: none; | ||
border-radius: 0.25rem; | ||
background-color: #ed2926; | ||
color: #ffffff; | ||
font-weight: 400; | ||
`; |
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
Oops, something went wrong.