Skip to content

Commit

Permalink
Merge pull request #308 from ODOICHON/feat/#307
Browse files Browse the repository at this point in the history
๋†๊ฐ€ ๊ฑฐ๋ž˜ ๊ฒŒ์‹œ๊ธ€ ์ž‘์„ฑ ์‹œ ์„ค๋ช… ์ถ”๊ฐ€
  • Loading branch information
sangminlee98 authored Sep 23, 2024
2 parents 6d73230 + 0788c04 commit 58f893d
Show file tree
Hide file tree
Showing 3 changed files with 69 additions and 23 deletions.
7 changes: 6 additions & 1 deletion src/components/Trade/Info/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,12 @@ function TradeBoardInfo({ info }: TradeBoardInfoProps) {
<article>
<span>๊ธฐ๋ณธ์ •๋ณด</span>
<div>
๋ฉด์  <p>{info?.size}ใŽก</p>
๋ฉด์ {' '}
<p>
{info?.size}ใŽก
{info?.size &&
`(์•ฝ ${parseFloat((Number(info?.size) / 3.3).toFixed(1))}ํ‰)`}
</p>
</div>
<div>
์ค€๊ณต์—ฐ๋„{' '}
Expand Down
45 changes: 24 additions & 21 deletions src/pages/Trade/Write/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -388,27 +388,30 @@ export default function TradeWritePage() {
<span>๊ธฐ๋ณธ ์ •๋ณด</span>
<p>*๋Š” ํ•„์ˆ˜๋กœ ์ž…๋ ฅํ•ด์•ผ ํ•˜๋Š” ๊ฐ’์ž…๋‹ˆ๋‹ค.</p>
<div>
<div>
<label htmlFor="๋งค๋ฌผ ๋ฉด์ ">
๋งค๋ฌผ ๋ฉด์ <span className={styles.essential}>*</span>
</label>
<input
id="๋งค๋ฌผ ๋ฉด์ "
type="text"
placeholder="ใŽก ๋‹จ์œ„๋กœ ํ‘œ๊ธฐ"
name="size"
value={form.size}
onChange={(event) =>
onChangeForm({
...event,
target: {
...event.target,
name: 'size',
value: onParsingDecimal(event.target.value),
},
})
}
/>
<div className={styles.additionalIinfoContainer}>
<div>
<label htmlFor="๋งค๋ฌผ ๋ฉด์ ">
๋งค๋ฌผ ๋ฉด์ <span className={styles.essential}>*</span>
</label>
<input
id="๋งค๋ฌผ ๋ฉด์ "
type="text"
placeholder="ใŽก ๋‹จ์œ„๋กœ ํ‘œ๊ธฐ"
name="size"
value={form.size}
onChange={(event) =>
onChangeForm({
...event,
target: {
...event.target,
name: 'size',
value: onParsingDecimal(event.target.value),
},
})
}
/>
</div>
<p>*1ํ‰์€ ์•ฝ 3.3์ œ๊ณฑ๋ฏธํ„ฐ(ใŽก)์ž…๋‹ˆ๋‹ค.</p>
</div>
<div>
<label htmlFor="์ค€๊ณต์—ฐ๋„">์ค€๊ณต์—ฐ๋„</label>
Expand Down
40 changes: 39 additions & 1 deletion src/pages/Trade/Write/styles.module.scss
Original file line number Diff line number Diff line change
Expand Up @@ -199,6 +199,44 @@
}
}

.additionalIinfoContainer {
display: flex;
flex-wrap: wrap-reverse;
& > div {
display: flex;
align-items: center;
gap: 1.5rem;
& > label {
display: flex;
align-items: center;
justify-content: center;
font-size: 1.375rem;
border-radius: 8px;
background-color: #d9d9d9;
width: 10rem;
height: 4rem;
& > span {
color: #f24147;
}
}

& > input {
width: 26rem;
height: 4rem;
border-radius: 8px;
border: 1px solid #d9d9d9;
padding: 0 1rem;
font-size: 1.125rem;
font-family: 'NanumSquareAc';
outline: none;
}
}
& > p {
color: var(--darkgray-color);
font-size: 1.2rem;
}
}

.specialInfoContainer {
display: flex;
flex-direction: column;
Expand Down Expand Up @@ -307,7 +345,7 @@
border-color: var(--main-color);
}

.essential{
.essential {
color: var(--main-color);
}

Expand Down

0 comments on commit 58f893d

Please sign in to comment.