Skip to content

Commit

Permalink
feat: 로그인 및 회원가입 페이지 (mobile, tablet) 반응형 추가 및 리펙토링
Browse files Browse the repository at this point in the history
  • Loading branch information
Suzy-Lee committed Aug 24, 2024
1 parent 32bc141 commit 3385161
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 3 deletions.
23 changes: 23 additions & 0 deletions css/auth.css
Original file line number Diff line number Diff line change
Expand Up @@ -151,3 +151,26 @@ main {
margin-bottom: 2.4rem;
height: 5.6rem;
}

/* Tablet: 768px ~ 1199px 이하 */
@media (min-width: 768px) and (max-width: 1199px) {
main {
width: auto;
margin: 19rem 5.2rem 32.5rem;
}
}

/* Mobile: 375px ~ 767px 이하 */
@media (min-width: 375px) and (max-width: 767.99px) {

This comment has been minimized.

Copy link
@mulddang2

mulddang2 Aug 24, 2024

Collaborator

767px 분기점에서 모바일 레이아웃 적용이 되지 않아, 소숫점 px을 추가해서 해결하였는데 이 해결 방법이 괜찮은 방법일지 궁금합니다.

main {
width: 100%;
max-width: calc(100% - 3.2rem);
margin: 8rem 1.6rem 23.1rem;
}

.login__header img,
.signup__header img {
max-width: 19.7rem;
height: auto;
}
}
4 changes: 1 addition & 3 deletions css/main.css
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,6 @@ section:nth-of-type(3) .section__card {
text-align: right;
}


.section__card--text {
width: 42.6rem;
}
Expand Down Expand Up @@ -213,7 +212,6 @@ footer {
gap: 1.2rem;
}


/* PC: 1200px 이상 */
@media (min-width: 1200px) {
.header__inner {
Expand Down Expand Up @@ -261,7 +259,7 @@ footer {
}
}

/* Tablet: 769px ~ 1199px 이하 */
/* Tablet: 768px ~ 1199px 이하 */
@media (min-width: 768px) and (max-width: 1199px) {
.header__inner {
padding: 1rem 2.4rem;
Expand Down

0 comments on commit 3385161

Please sign in to comment.