Skip to content

Conversation

@songmijin824
Copy link
Collaborator

@songmijin824 songmijin824 commented Jan 15, 2025

요구사항

기본

  • 아래로 스크롤 해도 상단 네비게이션 바(Global Navigation Bar)가 최상단에 고정됩니다.
  • “판다마켓" 클릭 시 루트 페이지(“/”)로 이동합니다.
  • 로그인 페이지, 회원가입 페이지 모두 로고 위 상단 여백이 동일합니다.
  • input 요소에 focus in 일 때, 테두리 색상은 #3692FF입니다. (pseudo class를 활용해 보세요. 참고)
  • input 요소에 focus out 일 때, 테두리는 없습니다.
  • SNS 아이콘들은 클릭시 각각 아래 페이지로 이동합니다. - “https://www.google.com/”, - “https://www.kakaocorp.com/page/”
  • “회원 가입”버튼 클릭 시 “/signup” 페이지로 이동합니다.
  • “로그인”버튼 클릭 시 (“/login”) 페이지로 이동합니다.

심화

  • 비밀번호 input 요소 오른쪽에 눈모양 아이콘을 추가합니다. (추후 클릭으로 비밀번호를 보거나 가릴 수 있도록 기능을 만들어 갈 예정입니다.)
  • palette에 있는 color값들을 css 변수로 등록하고 사용합니다..

주요 변경사항

-이전에 주신 피드백 수정했습니다.
-미션1과 다르게 미션2작업하면서 폴더 기준을 잘못잡아서 안나오길래....
링크, 이미지 등 절대경로에서 상대경로로 모두 수정했습니다.
그대로 사용해도 괜찮은가요.. 어떤것이 나은 방법인지 궁금합니다.

스크린샷

image
image

image
image

멘토에게

  • 셀프 코드 리뷰를 통해 질문 이어가겠습니다.

@songmijin824 songmijin824 changed the title Basic 송미진 로그인 / 회원가입 페이지 구현 [송미진] 스프린트2 Jan 15, 2025
Copy link
Collaborator

@dongqui dongqui left a comment

Choose a reason for hiding this comment

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

미진님 이번 미션도 잘 마무리 해주셨군요!!
고생 많으셨습니다~

form 관련 태그들을 올바르게 사용해주셨네요! 스타일 코드를 분리하고 계시는 김에 공통 부분을 따로 빼보시면 더욱 좋을 거 같습니다~!

링크, 이미지 등 절대경로에서 상대경로로 모두 수정했습니다.
그대로 사용해도 괜찮은가요.. 어떤것이 나은 방법인지 궁금합니다.

-> 개발 환경이나 배포 환경에 따라 달라지는데, 지금은 아무거나 하셔도 크게 상관 없습니다 :)

.font_1 { font-size:40px; }
.font_2 { font-size:24px; }
.font_3 { font-size:18px; }
input:hover,
Copy link
Collaborator

Choose a reason for hiding this comment

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

ui.css쪽으로 가는 게 어울릴 거 같네요 🤣

Copy link
Collaborator

Choose a reason for hiding this comment

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

해당 css파일은 이제 공통으로 사용되기 어려울 거 같습니다! 헤더나, 섹션, 푸터 모두 랜딩 페이지에만 적용되는 것들이고 다른 페이지에는 불필요한 스타일들이죠!

layout.css는 랜딩 페이지 스타일로 두고, 공통 부분을 따로 빼시는 것도 좋을 거 같아요 :)

@@ -1,10 +1,30 @@

:root {
Copy link
Collaborator

Choose a reason for hiding this comment

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

변수를 정의해주셨군요 👍

<img src="/images/Img_home_01.png" alt="Hot item">
<img src="images/Img_home_01.png" alt="Hot item">
<div>
<h4 class="font_3">Hot item</h4>
Copy link
Collaborator

Choose a reason for hiding this comment

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

계층 구조를 다시 확인해 보시면 좋을 거 같아요 :)
https://developer.mozilla.org/ko/docs/Web/HTML/Element/Heading_Elements#사용_일람

h3 없이 h4가 나와서는 안 됩니다! 꼭 h tag를 안 쓰셔도 될 거 같기도 하구요!

<a href="https://www.youtube.com/" target="_blank"><img src="/images/ic_youtube.png"></a>
<a href="https://www.instagram.com/" target="_blank"><img src="/images/ic_instagram.png"></a>
<div class="login_box">
<form onchange="login_check()">
Copy link
Collaborator

Choose a reason for hiding this comment

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

이벤트 버블링을 활용하셨군요 👍

<a href="https://www.youtube.com/" target="_blank"><img src="/images/ic_youtube.png"></a>
<a href="https://www.instagram.com/" target="_blank"><img src="/images/ic_instagram.png"></a>
<div class="login_box">
<form onchange="login_check()">
Copy link
Collaborator

Choose a reason for hiding this comment

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

input value에 따라 버튼의 상태를 실시간으로 바꾸고 싶으신 거라면 change 대신 input 이벤트를 고려해보셔도 좋을 거 같아요~

<a href="https://www.instagram.com/" target="_blank"><img src="/images/ic_instagram.png"></a>
<div class="login_box">
<form onchange="login_check()">
<label for="login_email">이메일</label>
Copy link
Collaborator

Choose a reason for hiding this comment

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

label, input을 잘 써주셨네요! 👍

</main>
<script>
function login_check(){
let in_email = document.getElementById('login_email').value;
Copy link
Collaborator

Choose a reason for hiding this comment

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

자바스크립트 코드에서는 주로 카멜케이스를 사용합니다 :) 참고해주세요!

그리고 이름을 잘 짓는 것은 언제나 중요합니다! 조금 길어지더라도 명확하게 써주시는 게 좋아요 :)
in_은 직관적이지 않은 거 같아요!

<script>
function login_check(){
let in_email = document.getElementById('login_email').value;
let in_pwd = document.getElementById('login_pwd').value;
Copy link
Collaborator

Choose a reason for hiding this comment

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

재할당되지 않는 값들은 주로 const를 사용합니다!

@dongqui dongqui merged commit e42aed6 into codeit-bootcamp-frontend:Basic-송미진 Jan 16, 2025
@songmijin824
Copy link
Collaborator Author

감사합니다!!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants