-
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.
- Loading branch information
1 parent
2f7bb13
commit 679d41e
Showing
3 changed files
with
79 additions
and
13 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 |
---|---|---|
|
@@ -31,6 +31,7 @@ const Login = () => { | |
password: "", | ||
}); | ||
const [rememberMe, setRememberMe] = useState(false); | ||
const [passwordType, setPasswordType] = useState("password"); | ||
|
||
const guestUser = { | ||
email: "[email protected]", | ||
|
@@ -94,7 +95,9 @@ const Login = () => { | |
<h2 className="form-heading">Login</h2> | ||
<form className="login"> | ||
<div className="form-email"> | ||
<label htmlFor="email">Email address</label> | ||
<label htmlFor="email"> | ||
Email address <span>*</span> | ||
</label> | ||
<input | ||
id="email" | ||
type="email" | ||
|
@@ -105,17 +108,30 @@ const Login = () => { | |
onChange={changeHandler} | ||
/> | ||
</div> | ||
<div className="form-password"> | ||
<label htmlFor="password">Password</label> | ||
<div className="form-password input-wrapper"> | ||
<label htmlFor="password"> | ||
Password <span>*</span> | ||
</label> | ||
<input | ||
id="password" | ||
type="password" | ||
type={passwordType} | ||
placeholder="********" | ||
name="password" | ||
value={user.password} | ||
required | ||
onChange={changeHandler} | ||
/> | ||
{passwordType === "password" ? ( | ||
<i | ||
className="fa-solid fa-eye password-icon" | ||
onClick={() => setPasswordType("text")} | ||
></i> | ||
) : ( | ||
<i | ||
className="fa-solid fa-eye-slash password-icon" | ||
onClick={() => setPasswordType("password")} | ||
></i> | ||
)} | ||
</div> | ||
<div className="user-history"> | ||
<input | ||
|
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