Skip to content
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

issue 365 resolved #385

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
31 changes: 17 additions & 14 deletions src/pages/Login.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -33,20 +33,23 @@ const Login = () => {

/>
</div>
<div className="mt-4 p">
<label className="text-lg font-medium">Password</label>
<input
className="w-full border border-black rounded-xl p-3 mt-1 bg-transparent"
placeholder="Enter your password"
type={passwordVisible ? "text" : "password"}
/>
<i
className="eye-icon-login text-white"
onClick={togglePasswordVisibility}
>
<img src={passwordVisible ? show : eye} alt="" />
</i>
</div>
<div className="mt-4">
<label className="text-lg font-medium">Password</label>
<div className="relative flex items-center mt-1">
<input
className="text-black/80 w-full rounded-xl p-2.5 pr-10 bg-transparent border border-black"
placeholder="Enter your password"
type={passwordVisible ? "text" : "password"}
/>
<i
className="absolute right-3 cursor-pointer"
onClick={togglePasswordVisibility}
>
<img src={passwordVisible ? show : eye} alt="Toggle visibility" />
</i>
</div>
</div>

<div className="mt-8">
<div className="flex justify-between items-center">
<div className="flex items-center">
Expand Down
30 changes: 16 additions & 14 deletions src/pages/Register.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -40,20 +40,22 @@ const Register = () => {
/>
</div>
<div className="mt-4">
<label className="text-lg font-medium">Password</label>
<input
className="text-black/80 w-full border border-white rounded-xl p-2.5 mt-1"
placeholder="Enter your password"
type={passwordVisible ? "text" : "password"}

/>
<i
className="eye-icon text-white"
onClick={togglePasswordVisibility}
>
<img src={passwordVisible ? show : eye} alt="" />
</i>
</div>
<label className="text-lg font-medium">Password</label>
<div className="relative flex items-center mt-1">
<input
className="text-black/80 w-full border border-white rounded-xl p-2.5 pr-10"
placeholder="Enter your password"
type={passwordVisible ? "text" : "password"}
/>
<i
className="absolute right-3 cursor-pointer"
onClick={togglePasswordVisibility}
>
<img src={passwordVisible ? show : eye} alt="Toggle visibility" />
</i>
</div>
</div>

<div className="mt-8">
<div className="flex justify-between items-center">
<div className="flex items-center">
Expand Down