Skip to content

Commit

Permalink
style: 화면 구조 및 input 완료
Browse files Browse the repository at this point in the history
  • Loading branch information
Namgyeon committed Dec 2, 2024
1 parent 8579de5 commit b73a9f1
Show file tree
Hide file tree
Showing 4 changed files with 107 additions and 3 deletions.
Binary file added src/images/ic_plus.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
78 changes: 78 additions & 0 deletions src/pages/AddItemPage/AddItemPage.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,78 @@
.addItemContainer {
width: 1200px;
margin: 24px auto;
display: flex;
flex-direction: column;
gap: 24px;
}

.addItemHeader {
display: flex;
justify-content: space-between;
}

.headerTitle {
font-size: 20px;
font-weight: 700;
color: #1f2937;
}

.addItemBtn {
width: 74px;
height: 42px;
padding: 12px 23px;
border: none;
border-radius: 8px;
background-color: #9ca3af;
color: #ffffff;
}

.addItemBtn:hover {
cursor: pointer;
background-color: #3692ff;
}

.inputBox {
display: flex;
flex-direction: column;
gap: 16px;
}

.inputLabel {
font-size: 18px;
font-weight: 700;
color: #1f2937;
}

.input {
width: 100%;
height: 56px;
padding: 16px 24px;
border: none;
border-radius: 12px;
background-color: #f3f4f6;
}

.input::placeholder {
font-size: 16px;
font-weight: 400;
color: #9ca3af;
}

.input.inputImg {
width: 282px;
height: 282px;
padding: 158px 104px 98px;
background: url(../../images/ic_plus.png) no-repeat center;
background-size: 48px;
background-color: #f3f4f6;
}

.input.textarea {
height: 282px;
padding: 16px 24px;
}

.input.inputImg::placeholder {
text-align: center;
}
31 changes: 29 additions & 2 deletions src/pages/AddItemPage/AddItemPage.jsx
Original file line number Diff line number Diff line change
@@ -1,9 +1,36 @@
import Header from "../../components/Layout/Header";
import "./AddItemPage.css";

const AddItemPage = () => {
return (
<div>
<div className="addItemContainer"></div>
<form className="addItemContainer">
<div className="addItemHeader">
<h1 className="headerTitle">상품 등록하기</h1>
<button className="addItemBtn" disabled>
등록
</button>
</div>
<div className="inputBox image">
<label className="inputLabel">상품 이미지</label>
<input className="input inputImg" placeholder="이미지 등록" />
</div>
<div className="inputBox">
<label className="inputLabel">상품명</label>
<input className="input" placeholder="상품명을 입력해주세요" />
</div>
<div className="inputBox textarea">
<label className="inputLabel">상품 소개</label>
<input className="input textarea" placeholder="상품 소개를 입력해주세요" />
</div>
<div className="inputBox image">
<label className="inputLabel">판매가격</label>
<input className="input" placeholder="판매 가격을 입력해주세요" />
</div>
<div className="inputBox image">
<label className="inputLabel">태그</label>
<input className="input" placeholder="태그를 입력해주세요" />
</div>
</form>
</div>
);
};
Expand Down
1 change: 0 additions & 1 deletion src/pages/MarketPage/MarketPage.jsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import "./MarketPage.css";
import BestItemSection from "./components/BestItemSection";
import AllItemSection from "./components/AllItemSection";
import PaginationBar from "../../components/UI/PaginationBar";

function MarketPage() {
return (
Expand Down

0 comments on commit b73a9f1

Please sign in to comment.