Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
23 commits
Select commit Hold shift + click to select a range
e204978
feat: login.css 파일명을 좀 더 포괄적인 auth.css로 변경
yuj2n Mar 20, 2025
f648040
불필요한 세팅 제거 및 이동
yuj2n Mar 20, 2025
c0d14f8
login페이지 에 불필요한 index.css 불러오기 삭제 및 login과 signup 페이지에 동일한 상단 여백 주기
yuj2n Mar 20, 2025
a5d5d55
feat: class 추가로 태그 선택자 삭제
yuj2n Mar 20, 2025
cb45e1d
Merge branch 'Basic-전유진' of https://github.com/codeit-bootcamp-fronte…
yuj2n Mar 20, 2025
03c32ed
style: 반응형에 따른 css 수정
yuj2n Mar 20, 2025
46d2b13
상단 바 css 조정
yuj2n Mar 21, 2025
c1768f7
css 일부 변경
yuj2n Mar 21, 2025
1b14f59
태블릿 사이즈 section css 수정 및 작성
yuj2n Mar 21, 2025
cdc780b
불필요한 코드 삭제 및 섹션 내용 좌우정렬
yuj2n Mar 21, 2025
d48d7ae
모바일 사이즈 섹션 css 작성
yuj2n Mar 21, 2025
1f2abae
모바일 사이즈 footer 작성
yuj2n Mar 22, 2025
6aab6c8
공유 디버거 이미지 추가
yuj2n Mar 22, 2025
f0205ba
375px 이하 화면 가리는 기능 추가
yuj2n Mar 22, 2025
274f54b
공유 디버거 사진 변경
yuj2n Mar 22, 2025
5ec8813
login과 signup 페이지 모바일 사이즈 반응형 구현 및 placeholder와 inactive 기능 추가
yuj2n Mar 22, 2025
2aed9d0
주석 추가
yuj2n Mar 22, 2025
be0919c
reset.css와 중복 내용 삭제
yuj2n Mar 22, 2025
1f1b2c2
불필요한 공백 삭제
yuj2n Mar 22, 2025
54c9e03
눈 아이콘 버튼 태그로 감싸기
yuj2n Mar 22, 2025
872b906
form에 적합하지 않은 내용 외부로 이동
yuj2n Mar 22, 2025
b4b040e
필요없는 주석 삭제
yuj2n Mar 22, 2025
585ed28
코드 최종 수정
yuj2n Mar 22, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
185 changes: 185 additions & 0 deletions css/auth.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,185 @@
.main-btn,
button {
cursor: pointer;
}

.main-btn:hover,
button:hover {
background: var(--blue200);
}

.main-btn:active,
button:active {
background: var(--blue300);
}

.main-btn:disabled,
button:disabled {
background: var(--inactive);
}

main {
height: 61.8rem;
margin: 15rem auto;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
gap: 1rem;
}

.logo-box {
width: 39.6rem;
height: 13.2rem;
display: flex;
justify-content: center;
align-items: center;
gap: 2rem;
}

.logo {
width: 10rem;
height: 10rem;
}

.pandamarket {
width: 26.6rem;
height: 12rem;
color: var(--blue100);
}

form {
margin-top: 4rem;
width: 64rem;
height: 44.6em;
display: flex;
flex-direction: column;
gap: 1rem;
}

.login-input {
margin-bottom: 2.4rem;
display: flex;
flex-direction: column;
gap: 1rem;
}

.password-container {
position: relative;
}

.password-container input {
width: 100%; /* input이 가득 차도록 */
padding-right: 4rem; /* 아이콘과 텍스트 간 간격 확보 */
box-sizing: border-box; /* 패딩이 width에 포함되도록 설정 */
}

.eye-icon {
position: absolute;
right: 1.5rem;
top: 42%;
transform: translateY(-50%);
cursor: pointer;
width: 24px;
height: 24px;
}

label {
margin-bottom: 1rem;
font-size: 1.8rem;
font-weight: 700;
}

input {
font-size: 1.6rem;
height: 5.6rem;
padding: 2rem;
border-radius: 1.2rem;
background-color: var(--gray100);
}

input::placeholder {
color: var(--inactive);
}

.btn {
height: 5.6rem;
color: var(--gray100);
font-size: 2rem;
font-weight: 600;
padding: 1.6rem 12.4rem;
border-radius: 4rem;
background-color: var(--inactive);
}

.easy-login {
width: 64rem;
Comment on lines +115 to +116
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

❗️ 수정요청
해당 태그의 경우 디자인대로 처리가 안 된 것 같아요!
아래처럼 width를 반응형 단위로 해 부모가 줄어들면 같이 줄어들게 해주고, max-width를 통해 제한을 해주면 디자인대로 잘 동작할 것 같아요.

Suggested change
.easy-login {
width: 64rem;
.easy-login {
max-width: 64rem;
width: 100%;

margin: 2.4rem 0;
background-color: #e6f2ff;
border-radius: 0.8rem;
}

.easy-login-box {
height: 5rem;
margin: 1.6rem 2.3rem;
display: flex;
justify-content: space-between;
align-items: center;
}

.easy-login-box p {
font-size: 1.6rem;
font-weight: 500;
}

.easy-login-icons {
display: flex;
gap: 1.6rem;
}

.question {
margin-top: 1rem;
display: flex;
justify-content: center;
font-size: 1.4rem;
font-weight: 500;
}

.question a {
text-decoration: underline;
color: var(--blue100);
}

.signup,
.login {
font-size: 1.4rem;
font-weight: 500;
}

/* Mobile: 767px 이하 */
@media (max-width: 767px) {
main {
width: 100%;
max-width: 40rem; /* 최대 너비 400px */
padding: 0 1.6rem; /* 좌우 여백 16px */
}
.logo-box {
width: 100%;
max-width: 100%;
display: flex;
justify-content: center;
align-items: center;
}
form {
margin-top: 0;
width: 100%; /* 부모(main)의 너비를 따름 */
}
.logo {
width: 5.2rem; /* 로고 크기 줄이기 */
height: auto;
}
.pandamarket {
width: 13.3rem; /* 텍스트 로고 크기 조절 */
height: auto;
}
}
Comment on lines +160 to +185
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

main 내부에 logo-box와 form이 있어
body와 main을 통해 간결하게 작성하고자 했는데 먹지 않아서 logo-box와 form에 따로 css를 넣어주었는데
body와 main만으로 작성할 수도 있을까요?

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

어떤 질문이신지 제가 잘 모르겠습니다~ 먹지 않는 이유가 무엇인지, 어떤 것을 바라시는지에 따라 가능한지 아닌지가 나뉠 것 같아요.
다만 body와 main 은 태그이니 저는 클래스 선택자로 작성하시는 것이 더 명확하고 좋다고 생각합니다.

2 changes: 2 additions & 0 deletions css/base.css
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
@import url(./unsupported.css);

:root {
/* Primary color */
--blue100: #3692FF;
Expand Down
Loading
Loading