Skip to content

Commit 9e0b27d

Browse files
committed
feat: 반응형 사이즈 적용
1 parent f2f4cc6 commit 9e0b27d

File tree

3 files changed

+30
-0
lines changed

3 files changed

+30
-0
lines changed

package-lock.json

Lines changed: 6 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

vite-project/src/pages/AddItemPage/AddItemPage.jsx

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,14 @@ const FormContainer = Styled.form`
1414
margin: 3rem auto;
1515
width: 120.6rem;
1616
gap: 2.4rem;
17+
18+
@media (max-width: 1199px) {
19+
width: 69.6rem;
20+
}
21+
22+
@media (max-width: 767px) {
23+
width: 34.6rem;
24+
}
1725
`;
1826

1927
function AddItemPage() {

vite-project/src/pages/AddItemPage/ProductAddImg.jsx

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,22 +34,38 @@ const ProductAddImgFile = styled.label`
3434
input {
3535
display: none;
3636
}
37+
38+
@media (max-width: 767px) {
39+
width: 16.8rem;
40+
height: 16.8rem;
41+
}
3742
`;
3843

3944
const ProductAddImgFileDiv = styled.div`
4045
display: flex;
4146
gap: 2.4rem;
47+
48+
@media (max-width: 767px) {
49+
gap: 1rem;
50+
}
4251
`;
4352

4453
const PreviewWrapper = styled.div`
4554
position: relative;
55+
56+
4657
`;
4758

4859
const PreviewImg = styled.img`
4960
width: 28.2rem;
5061
height: 28.2rem;
5162
border-radius: 1.2rem;
5263
border: 0.1rem solid var(--gray-50);
64+
65+
@media (max-width: 767px) {
66+
width: 16.8rem;
67+
height: 16.8rem;
68+
}
5369
`;
5470

5571
const ClearBtn = styled.button`

0 commit comments

Comments
 (0)