-
Notifications
You must be signed in to change notification settings - Fork 35
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 #100
The head ref may contain hidden characters: "Basic-\uC7A5\uD601\uC218-sprint3"
[장혁수] sprint3 #100
Changes from all commits
9406e5e
561ea9d
b321cbe
994e946
d033ec6
8d735d0
3ae1199
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,6 +5,7 @@ | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | ||
<title>Document</title> | ||
<link rel="stylesheet" href="./stylesheets/form.css"> | ||
<link rel="stylesheet" as="style" crossorigin href="https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/static/pretendard.min.css" /> | ||
</head> | ||
<body> | ||
<div class="logo-wrap"> | ||
|
@@ -13,41 +14,40 @@ | |
<h1 class="name">판다마켓</h1> | ||
</a> | ||
</div> | ||
<div class="container"> | ||
<form class="wrap"> | ||
<div class="login-wrap"> | ||
<h5 class="email">이메일</h5> | ||
<div class="input"> | ||
<p class="text">이메일을 입력해주세요</p> | ||
</div> | ||
<h5 class="password">비밀번호</h5> | ||
<div class="input"> | ||
<p class="text">비밀번호를 입력해주세요</p> | ||
<img src="./images/non_visibility.png" alt="눈 가림 아이콘"> | ||
</div> | ||
<a href="#" class="login-button">로그인</a> | ||
<form> | ||
<div class="input-item"> | ||
<label for="login-email">이메일</label> | ||
<input id="login-email" name="email" type="email" placeholder="이메일을 입력해주세요" required autocomplete="on"> | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 오! input으로 잘 바꿔주셨네요! :-) |
||
</div> | ||
<div class="input-item"> | ||
<label for="login-password">비밀번호</label> | ||
<div class="input-wrap"> | ||
<input id="login-password" name="password" type="password" placeholder="비밀번호를 입력해주세요" required> | ||
<img src="./images/non_visibility.png" class="password-icon" alt="눈 모양 아이콘"> | ||
</div> | ||
|
||
<div class="easy-login"> | ||
<p class="text">간편 로그인하기</p> | ||
<ul class="icon-wrap"> | ||
<li> | ||
<a href="https://google.com/"> | ||
<img src="./images/ic_google.png.png" alt="구글 아이콘"> | ||
</a> | ||
</li> | ||
<li> | ||
<a href="https://kakaocorp.com/page/"> | ||
<img src="./images/ic_kakao.png.png" alt="카카오톡 아이콘"> | ||
</a> | ||
</li> | ||
</ul> | ||
</div> | ||
<div class="help"> | ||
<p class="text">판다마켓이 처음이신가요?</p> | ||
<a href="/signup.html" class="signup">회원가입</a> | ||
</div> | ||
</form> | ||
</div> | ||
</div> | ||
<button class="form-button"> | ||
로그인 | ||
</button> | ||
<div class="easy-login"> | ||
<p class="text">간편 로그인하기</p> | ||
<ul class="icon-wrap"> | ||
<li> | ||
<a href="https://google.com/"> | ||
<img src="./images/ic_google.png.png" alt="구글 아이콘"> | ||
</a> | ||
</li> | ||
<li> | ||
<a href="https://kakaocorp.com/page/"> | ||
<img src="./images/ic_kakao.png.png" alt="카카오톡 아이콘"> | ||
</a> | ||
</li> | ||
</ul> | ||
</div> | ||
<div class="help"> | ||
<p class="text">판다마켓이 처음이신가요?</p> | ||
<a href="/signup.html" class="signup">회원가입</a> | ||
</div> | ||
</form> | ||
</body> | ||
</html> |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,33 @@ | ||
:root { | ||
--blue: #3692ff; | ||
--red: #f74747; | ||
--gray900: #111827; | ||
--gray800: #1f2937; | ||
--gray700: #374151; | ||
--gray600: #4b5563; | ||
--gray500: #6b7280; | ||
--gray400: #9ca3af; | ||
--gray200: #e5e7eb; | ||
--gray100: #f3f4f6; | ||
--gray50: #f9fafb; | ||
--white: #ffffff; | ||
} | ||
Comment on lines
+1
to
+14
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 컬러 변수 설정 잘 해주셨네요! |
||
|
||
* { | ||
margin: 0; | ||
padding: 0; | ||
box-sizing: border-box; | ||
} | ||
|
||
.logo-wrap { | ||
body { | ||
display: flex; | ||
justify-content: center; | ||
flex-direction: column; | ||
align-items: center; | ||
font-family: 'Pretendard'; | ||
} | ||
|
||
/* 판다마켓 로고 */ | ||
.logo-wrap { | ||
margin-top: 60px; | ||
} | ||
|
||
|
@@ -28,70 +49,80 @@ h1.name { | |
font-size: 66.34px; | ||
line-height: 89.56px; | ||
font-weight: 700; | ||
color: #3692ff; | ||
color: var(--blue); | ||
} | ||
|
||
.container { | ||
display: flex; | ||
justify-content: center; | ||
} | ||
|
||
form.wrap { | ||
/* 폼 */ | ||
form { | ||
display: flex; | ||
flex-direction: column; | ||
margin-top: 40px; | ||
width: 640px; | ||
gap: 24px; | ||
} | ||
|
||
.login-wrap, .signup-wrap { | ||
.input-item { | ||
display: flex; | ||
flex-direction: column; | ||
gap: 24px; | ||
} | ||
|
||
.email, | ||
.nickname, | ||
.password, | ||
.confirm-password { | ||
font-size: 18px; | ||
line-height: 21.48px; | ||
font-weight: 700; | ||
color: #1f2937; | ||
} | ||
|
||
.input { | ||
.input-wrap { | ||
display: flex; | ||
justify-content: space-between; | ||
align-items: center; | ||
position: relative; | ||
} | ||
|
||
input { | ||
height: 56px; | ||
width: 100%; | ||
padding: 16px 24px; | ||
border-radius: 12px; | ||
background-color: #f3f4f6; | ||
padding-left: 24px; | ||
padding-right: 24px; | ||
background-color: var(--gray100); | ||
} | ||
|
||
.input > .text { | ||
input::placeholder { | ||
color: var(--gray400); | ||
font-size: 16px; | ||
line-height: 24px; | ||
font-weight: 400; | ||
color: #9ca3af; | ||
} | ||
|
||
a.login-button { | ||
input:focus { | ||
outline: 2px solid var(--blue); | ||
} | ||
|
||
.password-icon { | ||
position: absolute; | ||
right: 24px; | ||
} | ||
|
||
label { | ||
color: var(--gray800); | ||
font-size: 18px; | ||
line-height: 21.48px; | ||
font-weight: 700; | ||
} | ||
|
||
.form-button { | ||
display: flex; | ||
justify-content: center; | ||
height: 56px; | ||
border-radius: 40px; | ||
padding: 16px 124px; | ||
background-color: #9ca3af; | ||
color: #ffffff; | ||
background-color: var(--gray400); | ||
color: var(--white); | ||
font-size: 20px; | ||
line-height: 24px; | ||
font-weight: 600; | ||
text-decoration: none; | ||
} | ||
|
||
input, | ||
button { | ||
border: none; | ||
} | ||
|
||
/* 간편 로그인 */ | ||
.easy-login { | ||
display: flex; | ||
justify-content: space-between; | ||
|
@@ -111,6 +142,7 @@ ul.icon-wrap { | |
list-style-type: none; | ||
} | ||
|
||
/* 헬퍼 */ | ||
.help { | ||
display: flex; | ||
justify-content: center; | ||
|
@@ -119,7 +151,8 @@ ul.icon-wrap { | |
margin-bottom: 60px; | ||
} | ||
|
||
a.signup { | ||
color: #3182f6; | ||
.help > a { | ||
margin-left: 8px; | ||
color: var(--blue); | ||
} | ||
|
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.
font 적용 방법이 이렇게 CDN을 이용해서 다운로드 받는 방식이 있고,
font 파일을 프로젝트에 함께 두고 font-face로 설정하는 방법도 있습니다.
시간이 되실때 font-face로 설정하는 방법도 적용해보시면 좋을것같아요! :-)