-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Complete Sign Up Component. Closes #4
- Loading branch information
1 parent
d98dc6e
commit abe4b0c
Showing
3 changed files
with
151 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,40 @@ | ||
<p>sign-up works!</p> | ||
<div class="sign-up"> | ||
<h1 class="sign-up__title">Đăng ký tài khoản mới</h1> | ||
<form class="sign-up__form"> | ||
<div class="sign-up__fields"> | ||
<div class="sign-up__field-group"> | ||
<div class="sign-up__field sign-up__field--short"> | ||
<label for="last-name" class="sign-up__label">Họ</label> | ||
<input type="text" id="last-name" class="sign-up__input" placeholder="Họ"> | ||
</div> | ||
<div class="sign-up__field sign-up__field--short"> | ||
<label for="first-name" class="sign-up__label">Tên</label> | ||
<input type="text" id="first-name" class="sign-up__input" placeholder="Tên"> | ||
</div> | ||
</div> | ||
<div class="sign-up__field"> | ||
<label for="email" class="sign-up__label">Email</label> | ||
<input type="email" id="email" class="sign-up__input" placeholder="Email"> | ||
</div> | ||
<div class="sign-up__field"> | ||
<label for="password" class="sign-up__label">Mật khẩu (tối thiểu 12 kí tự bao gồm....)</label> | ||
<input type="password" id="password" class="sign-up__input" | ||
placeholder="Mật khẩu (tối thiểu 12 kí tự bao gồm....)"> | ||
</div> | ||
<div class="sign-up__field"> | ||
<label for="confirm-password" class="sign-up__label">Xác nhận mật khẩu</label> | ||
<input type="password" id="confirm-password" class="sign-up__input" placeholder="Xác nhân mật khẩu"> | ||
</div> | ||
</div> | ||
<div class="sign-up__terms"> | ||
<input type="checkbox" id="terms" class="sign-up__checkbox"> | ||
<label for="terms" class="sign-up__terms-text">Tôi đồng ý với | ||
<a href="#" class="sign-up__terms-link">điều khoản dịch vụ</a> | ||
</label> | ||
</div> | ||
<div class="sign-up__actions"> | ||
<button type="submit" class="sign-up__submit">Đăng Ký</button> | ||
<p class="sign-up__login-prompt">Bạn đã có tài khoản? <a href="#" class="sign-up__login-link">Đăng nhập</a></p> | ||
</div> | ||
</form> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,104 @@ | ||
@import "styles"; | ||
|
||
.sign-up { | ||
width: 768px; | ||
padding: 8rem; | ||
margin: 8rem auto 40rem auto; | ||
border: 0.2rem solid $secondary2; | ||
border-radius: 1.2rem; | ||
display: flex; | ||
flex-direction: column; | ||
align-items: center; | ||
gap: 4rem; | ||
} | ||
|
||
.sign-up__title { | ||
color: $on-surface; | ||
@include font-heading-3; | ||
} | ||
|
||
.sign-up__form { | ||
width: 100%; | ||
display: flex; | ||
flex-direction: column; | ||
gap: 3.6rem; | ||
} | ||
|
||
.sign-up__fields { | ||
display: flex; | ||
flex-direction: column; | ||
gap: 3.2rem; | ||
} | ||
|
||
.sign-up__field-group { | ||
display: flex; | ||
gap: 2.4rem; | ||
} | ||
|
||
.sign-up__field { | ||
display: flex; | ||
flex: 1 1 auto; | ||
} | ||
|
||
.sign-up__label { | ||
display: none; | ||
} | ||
|
||
.sign-up__input { | ||
flex: 1 1 auto; | ||
padding: 1.6rem 2rem; | ||
@include font-caption-1; | ||
color: $secondary2; | ||
background: $white; | ||
border-radius: 0.8rem; | ||
border: 1px solid $line; | ||
} | ||
|
||
.sign-up__terms { | ||
display: flex; | ||
gap: 1.2rem; | ||
} | ||
|
||
.sign-up__checkbox { | ||
width: 2rem; | ||
height: 2rem; | ||
background: $white; | ||
} | ||
|
||
.sign-up__terms-text { | ||
@include font-body-title | ||
} | ||
|
||
.sign-up__terms-link { | ||
@include font-body-title; | ||
color: $primary; | ||
text-decoration: none; | ||
} | ||
|
||
.sign-up__actions { | ||
display: flex; | ||
flex-direction: column; | ||
align-items: center; | ||
gap: 2rem; | ||
} | ||
|
||
.sign-up__submit { | ||
padding: 1rem 20rem; | ||
color: $white; | ||
background: $primary; | ||
@include font-button; | ||
text-transform: capitalize; | ||
border-radius: 0.8rem; | ||
border: none; | ||
cursor: pointer; | ||
} | ||
|
||
.sign-up__login-prompt { | ||
@include font-body-title; | ||
} | ||
|
||
.sign-up__login-link { | ||
color: $primary; | ||
@include font-body-title; | ||
text-decoration: none; | ||
} |