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

UPDATING UI OF LOGIN/SignUp Page #49 #94

Merged
merged 1 commit into from
Jun 5, 2024
Merged
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
68 changes: 42 additions & 26 deletions src/components/login/LoginSignup.css
Original file line number Diff line number Diff line change
@@ -1,58 +1,75 @@
.loginsignup{
width: 100%;
height: 110vh;
background: #fce3fe;
padding-top: 100px;

height: auto;
background: #E6E6FA;
padding: 50px;
}
.loginsignup-cointainer{
width: 580px;
height: 700px;
background: white;
height: auto;
border-radius: 10px;
background: #1F2937;
text-align: center;
margin: auto;
padding: 40px 60px;
}
.loginsignup-cointainer h1{
margin: 20px 0px;
text-align: center;
color: white;
}
.loginsignup-fields{
display: flex;
flex-direction: column;
gap: 29px;
gap: 5px;
margin-top: 30px;

}
.label-login{
color: white;
font-size: 20px;
margin-bottom: 0px;
justify-content: left;
}
.loginsignup-fields input{
height: 72px;
width: 100%;
height: 36px;
background: #374151;
padding: 10px;
padding-left: 20px;
border: 1px solid #c9c9c9;
border-radius: 10px;
border: 1px solid #242323;
outline: none;
color: #5c5c5c;
color: #faf7f7;
font-size: 18px;
}
.loginsignup-fields input::placeholder{
padding: 5px 10px;
color: #faf7f7;
}
.loginsignup-cointainer button{
width: 580px;
height: 72px;
padding: 20px;
color: white;
background: #ff4141;
background: #3B82F6;
margin-top: 30px;
border: none;
font-size: 24px;
font-size: 20px;
border-radius: 10px;
font-weight: 500;
cursor: pointer;
}
.loginsignup-login{
margin-top: 20px;
color: #5c5c5c;
color: #f2f2f2;
font-size: 18px;
font-weight: 500;
text-align: inherit;
display: block;
width: auto;
}
.loginsignup-login span{
color: #ff4141;
color: #3B82F6;
font-weight: 600;
cursor: pointer;
}
.loginsignup-agree{
display: flex;
Expand All @@ -67,27 +84,25 @@
@media (max-width:1280px){

.loginsignup{
padding-top: 50px;
font-size: 36px;
}
.loginsignup-cointainer{
width: auto;
max-width: 500px;
max-height: 600px;
max-height: 700px;
}
.loginsignup-cointainer h1{
margin: 10px 0px;
}
.loginsignup-fields{
gap: 20px;

margin-top: 20px;
}
.loginsignup-fields input{
height: 65px;
padding: 10px;
width: 93%;
}
.loginsignup-cointainer button{
width: 100%;
}

.loginsignup-login{
font-size: 16px;

Expand All @@ -110,10 +125,11 @@
}

.loginsignup-fields input{
height: 50px;
padding: 5px 10px;
font-size: 12px;
}
.loginsignup-cointainer button{
height: 50px;

font-size: 16px;
}

Expand Down
12 changes: 8 additions & 4 deletions src/components/login/LoginSignup.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -62,19 +62,23 @@ const LoginSignup = () => {
<h1>{state}</h1>
<div className="loginsignup-fields">
{state === "Sign Up" ? (
<input type="text" name="username" value={formData.username} onChange={ChangeHandler} placeholder="Your Name" />
<>
<p className="label-login">Name</p>
<input type="text" name="username" value={formData.username} onChange={ChangeHandler} placeholder="Your Name" /></>
) : (
<></>
)}
<p className="label-login">Email</p>
<input type="email" name="email" value={formData.email} onChange={ChangeHandler} placeholder="Email Address" />
<p className="label-login">Password</p>
<input type="password" name="password" value={formData.password} onChange={ChangeHandler} placeholder="Password" />
</div>
<button
onClick={() => {
state === "Login" ? login() : signup();
}}
>
Continue
Sign Up
</button>
{state === "Sign Up" ? (
<p className="loginsignup-login">
Expand All @@ -84,7 +88,7 @@ const LoginSignup = () => {
setState("Login");
}}
>
Login Here
SignIn
</span>
</p>
) : (
Expand All @@ -95,7 +99,7 @@ const LoginSignup = () => {
setState("Sign Up");
}}
>
Click Here
Sign Up
</span>
</p>
)}
Expand Down
Loading