Skip to content

Commit

Permalink
styling for login/signup buttons
Browse files Browse the repository at this point in the history
  • Loading branch information
karpuxa committed Apr 20, 2023
1 parent fb05f95 commit e635f17
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 6 deletions.
29 changes: 25 additions & 4 deletions client/src/pages/Login.css
Original file line number Diff line number Diff line change
Expand Up @@ -22,13 +22,13 @@ body {
position: absolute;
border-radius: 50%;
}
.shape:first-child {
.shape:last-child {
background: linear-gradient(#1845ad, #23a2f6);
left: -80px;
top: -80px;
}
.shape:last-child {
background: linear-gradient(to right, #ff512f, #f09819);
.shape:first-child {
background: linear-gradient(to right, #fd3302, #f09819);
right: -30px;
bottom: -80px;
}
Expand Down Expand Up @@ -92,10 +92,31 @@ input {
color: #080710;
margin-top: 30px;
background-color: #ffffff;
background: linear-gradient(to bottom right, #fd3302, #ff9a5a);
transition: box-shadow 0.2s ease-in-out;
}
.signup-btn {

.login-btn:not([disabled]):hover {
box-shadow: 0 0 0.25rem rgba(0, 0, 0, 0.5),
-0.125rem -0.125rem 1rem rgba(239, 71, 101, 0.5),
0.125rem 0.125rem 1rem rgba(255, 154, 90, 0.5);
}
/* .signup-btn {
color: #080710;
background-color: #ffffff;
transition: box-shadow 0.2s ease-in-out;
} */
.btn-login {
color: #080710;
margin-top: 30px;
background-color: #f7f7f7; /* Adjust the color to make it white-ish */
transition: box-shadow 0.2s ease-in-out;
}
.btn-login:not([disabled]):hover {
box-shadow: 0 0 0.25rem rgba(0, 0, 0, 0.5),
-0.125rem -0.125rem 1rem rgba(255, 180, 120, 0.5),
/* Adjust the color to make it lightly orange-ish */ 0.125rem 0.125rem 1rem
rgba(255, 180, 120, 0.5); /* Adjust the color to make it lightly orange-ish */
}
.already-have-account {
margin-top: 10px;
Expand Down
2 changes: 1 addition & 1 deletion client/src/pages/Login.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ const Login = () => {
</button>

<Link to='/signup'>
<button className='login-btn'>Sign Up</button>
<button className='btn-login'>Sign Up</button>
</Link>
</form>
</div>
Expand Down
6 changes: 5 additions & 1 deletion client/src/pages/Signup.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,11 @@ const Signup = () => {
</button>

<p className='already-have-account'>Already have an account?</p>
<button className='signup-btn' onClick={() => navigate('/')}>
<button
className='btn-login'
onClick={() => navigate('/')}
style={{ margin: 0 }}
>
LOGIN
</button>
</form>
Expand Down

0 comments on commit e635f17

Please sign in to comment.