-
Notifications
You must be signed in to change notification settings - Fork 44
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: Refactor sign in form using react-hook-form
- Loading branch information
1 parent
ff659cd
commit be585da
Showing
4 changed files
with
131 additions
and
83 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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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,11 +1,56 @@ | ||
@use '@/styles/mixins' as a; | ||
@use '@/styles/mixins' as m; | ||
|
||
.authForm { | ||
@include a.flex(column); | ||
@include m.flex(column); | ||
gap: 24px; | ||
} | ||
|
||
.signUpButton { | ||
padding: 16px 20px; | ||
margin-top: 20px; | ||
} | ||
|
||
.inputBox { | ||
@include m.flex(column); | ||
position: relative; | ||
gap: 12px; | ||
} | ||
|
||
.inputWrapper { | ||
display: flex; | ||
justify-content: space-between; | ||
border: 1px solid #ccd5e3; | ||
padding: 18px 15px; | ||
border-radius: 8px; | ||
background-color: #fff; | ||
width: 370px; | ||
} | ||
|
||
.inputWrapper:focus-within { | ||
border: 1px solid var(--Linkbrary-primary-color); | ||
} | ||
|
||
.authInput { | ||
width: 100%; | ||
border: none; /* Remove border from authInput to avoid double border */ | ||
} | ||
|
||
.toggleButton { | ||
position: relative; | ||
width: 16px; | ||
height: 16px; | ||
|
||
&:hover { | ||
filter: brightness(0); | ||
} | ||
} | ||
|
||
.errorMessage { | ||
position: absolute; | ||
bottom: -25px; | ||
color: red; | ||
} | ||
|
||
.errorInput { | ||
border: 1px solid red; | ||
} |