-
Notifications
You must be signed in to change notification settings - Fork 26
[정상인] sprint3 #85
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[정상인] sprint3 #85
The head ref may contain hidden characters: "Basic-\uC815\uC0C1\uC778-sprint3"
Conversation
|
스프리트 미션 하시느라 수고 많으셨어요. |
|
크으 ~ 커밋 깔-끔하네요 👍👍 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
굿굿! gitignore를 추가하셨군요 👍👍
이제 형상관리를 더욱 체계적으로 관리해봅시다 😉
| <meta property="og:title" content="판다마켓" /> | ||
| <meta | ||
| property="og:url" | ||
| content="https://panda-market-sanginjeong.netlify.app/" | ||
| /> | ||
| <meta property="og:description" content="일상의 모든 물건을 거래해보세요" /> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
훌륭합니다 ! 메타태그를 잘 적용하셨네요 ~! 👍
| <meta | ||
| property="og:image" | ||
| content="https://panda-market-sanginjeong.netlify.app/images/logo.png" | ||
| /> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
굿굿 ! og 이미지까지 적용 너무 좋습니다 ! 👍
다만, 도메인이 변경된다면 해당 코드도 수정되겠군요 !
앞의 URL을 생략해볼 수도 있을 것 같아요 !
| <meta | |
| property="og:image" | |
| content="https://panda-market-sanginjeong.netlify.app/images/logo.png" | |
| /> | |
| <meta | |
| property="og:image" | |
| content="/images/logo.png" | |
| /> |
| <h2 class="description"> | ||
| <span>일상의 모든 물건을</span> | ||
| <span>거래해 보세요</span> | ||
| </h2> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
h 태그는 순차적으로 기입하는 것을 권장드립니다 !
h1 다음은 h2. 그리고 h3...
이런식으로 순차적으로 기입할 것을 MDN에서 권장하고 있습니다. 😊
현재 상인님의 코드는 h1이 생략 된 후 h2부터 시작하는 것으로 보이네요 😉
MDN: 제목 단계를 건너뛰는 것을 피하세요. 언제나
<h1>로 시작해서,<h2>, 순차적으로 기입하세요.
| gap: 12px; | ||
| } | ||
|
|
||
| @media screen and (max-width: 1199px) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
굿굿 ! 미디어 쿼리를 잘 적용하셨네요 👍
| footer { | ||
| position: relative; | ||
| } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
해당 태그 스타일도 같은 피드백에 해당됩니다 ~!
footer나 header는 하나의 문서에 여러개 존재할 수 있으므로 제안드려봅니다 😉
| <input | ||
| class="form-input" | ||
| type="email" | ||
| placeholder="이메일을 입력해주세요" | ||
| /> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
required나 name 속성도 고려해볼 수 있겠어요 !
name:name은<form>을 사용해서 추 후submit을 사용하여 접근할 때 사용될 수 있습니다.required:required는<form>내부에서 서식을 작성하지 않았을 때 브라우저에서 유저에게 피드백을 줄 수 있습니다.
추가로 사용성을 고려하신다면
autofocus라는 속성도 고려해볼 수 있겠어요 😉
MDN - autofocus
| <input | ||
| class="form-input" | ||
| type="text" | ||
| placeholder="닉네임을 입력해주세요" | ||
| /> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
<input>에 대한 속성과 관련하여
<input>에는 용이한 속성들이 상당히 많습니다 !
- 숫자의 범위를 지정하는
max,min - 글자 수를 제한하는
maxLenght,minLenght - 그 외 의외의
type들date,email,file,image...
제공되는 유용한 속성들을 모르고 개발하게 되면 자바스크립트로 만들게 되는 경우도 있어요.
예를 들어서 max라는 속성을 모르면 input 값이 입력되었을 때 값에 대한 유효성 검사를 하고 input에 값을 넣어주는 번거로운 일도 할 수도 있어요.
(제가 처음 개발할 때 그랬습니다... 🥲)
특히 리액트로 넘어가게되면 javascript가 html 접근하는 허들이 낮아지면서 위와 같은 사례가 종종 보여요.
그래서 특히 input과 관련하여서는 꼭 한번 즈음 mdn 공식 문서를 처음부터 끝까지 러프하게라도 읽어보시는걸 추천드려요.
| </button> | ||
| </div> | ||
| <button class="form-submit-btn">회원가입</button> | ||
| <button class="form-submit-btn disabled" disabled>회원가입</button> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
class를 새로 추가하지 않고 선택자로 지정해볼 수 있을 것 같아요 !
| <button class="form-submit-btn disabled" disabled>회원가입</button> | |
| <button class="form-submit-btn" disabled>회원가입</button> |
.form-submit-btn:disabled {
// ...
}| </button> | ||
| </div> | ||
| <button class="form-submit-btn">로그인</button> | ||
| <button class="form-submit-btn disabled" disabled>로그인</button> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
(심화/생각해보기/제안) submit-btn은 '기능'을 의미해요. 스타일 이름은 "어떤 스타일인지"를 목표로 네이밍을 작성해보면 어떨까요?
| <button class="form-submit-btn disabled" disabled>로그인</button> | |
| <button class="button button-primary">로그인</button> |
만약, 현재 submit-btn과 같은 스타일의 "장바구니에 담기" 라는 버튼이 존재한다면 클래스 이름이 어떻게 될까요?
submit-btn 클래스로 작성한다면 submit이라는 "기능"을 목적으로 하는 클래스 이름을 넣게 될거예요. 혹은 중복된 스타일과 다른 클래스 이름인 button-add-wish와 같은 클래스 이름을 가지게 돼요. 이는 재사용성을 저하시킬거예요.
차라리 해당 클래스가 "어떤 스타일을 포함하는가?"에 목적을 두어 네이밍을 한다면 더욱 재사용하기 용이할거라고 생각해서 제안드립니다 😊
priamry: 주로 브랜드의 주요 컬러를 의미합니다 ! 😊 판다마켓의 경우 파란색이죠 !
|
수고하셨습니다 상인님 ! |
요구사항
기본
배포링크
공통
랜딩 페이지
로그인, 회원가입 페이지 공통
심화
스크린샷
Tablet
Home
Mobile
Home
Login
Signup
Preview
멘토에게