Skip to content

Commit

Permalink
login with google width fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
Yashop181 committed Jul 30, 2024
1 parent af200e2 commit e0a7c58
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 6 deletions.
7 changes: 6 additions & 1 deletion src/Components/Login/Login.css
Original file line number Diff line number Diff line change
Expand Up @@ -102,4 +102,9 @@ p a:hover {
.eye:hover {
color: #007efc;
cursor: pointer;
}
}
.google-login-wrapper {
width: 100%;
display: flex;
justify-content: center;
}
14 changes: 9 additions & 5 deletions src/Components/Login/Login.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ const Login = () => {
<div className="login-container">
<h2>Login</h2>
<div className="input">
<label>Email</label>
<input
type="email"
placeholder="Email"
Expand All @@ -78,7 +79,7 @@ const Login = () => {
}}
/>
{warnings.email && <p style={{ color: "red" }} className="warningmsg">{warnings.email}</p>}

<label>Password</label>
<input
type={ isVisible ? "text" : "password"}
className="pasword"
Expand All @@ -105,10 +106,13 @@ const Login = () => {
<p>
Don't have an account? <NavLink to="/signup">Sign up</NavLink>
</p>
<GoogleLogin
onSuccess={handleGoogleLoginSuccess}
onError={handleGoogleLoginFailure}
/>
<div className="google-login-wrapper">
<GoogleLogin
onSuccess={handleGoogleLoginSuccess}
onError={handleGoogleLoginFailure}
/>
</div>

</div>
</div>
</GoogleOAuthProvider>
Expand Down

0 comments on commit e0a7c58

Please sign in to comment.