Skip to content

Login Page updated #277

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

Merged
merged 4 commits into from
Jun 11, 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
18 changes: 13 additions & 5 deletions src/Components/CreateAccount.css
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,18 @@ body {
background-color: rgba(0,0,0,0.26);
padding: 2rem;
border-radius: 25px;
border: 1px solid cyan;
border: 3px solid cyan;
width: 67vw;
height: 38vw;

height: 42vw;
position: relative;
animation: borderAnimation 8s infinite;
}
@keyframes borderAnimation {
0% { border-color: cyan; }
50% { border-color: rgb(235, 235, 15); }
25% { border-color: #cf00a3; }
75% { border-color: #04aaac; }
100% { border-color: cyan; }
}
h1{
font-family: "Roboto", sans-serif;
Expand Down Expand Up @@ -144,7 +152,7 @@ body {
}

.next-btn:hover {
background-color:rgba(4, 1, 15, 0.439);
background-color: #b21783;
}

.signup-options {
Expand Down Expand Up @@ -174,7 +182,7 @@ body {

.facebook-btn:hover,
.google-btn:hover {
background-color:rgba(4, 1, 15, 0.439);
background-color: #b21783;
}
.facebook-btn::before {
content: '';
Expand Down
28 changes: 22 additions & 6 deletions src/Components/Login.css
Original file line number Diff line number Diff line change
Expand Up @@ -19,18 +19,34 @@ body {
background-color: rgba(0,0,0,0.26);
padding: 2rem;
border-radius: 25px;
border: 1px solid cyan;
border: 3px solid cyan;
width: 35vw;
height: 35vw;

}
position: relative;
animation: borderAnimationCreateAccount 8s infinite;
}
@keyframes borderAnimationCreateAccount {
0% { border-color: cyan; }
50% { border-color: rgb(235, 235, 15); }
25% { border-color: #cf00a3; }
75% { border-color: #04aaac; }
100% { border-color: cyan; }
}
.inner-box{
background-color: rgba(0,0,0,0.26);
padding: 2rem;
border-radius: 25px;

width: 35vw;
height: 35vw;
position: relative;
animation: borderAnimationInnerBox 8s infinite;
}
@keyframes borderAnimationInnerBox {
0% { border-color: rgb(242, 242, 117); }
50% { border-color: cyan; }
25% { border-color: #04aaac; }
75% { border-color: #cf00a3; }
100% { border-color: rgb(242, 242, 117); }
}
h2{
font-family: "Roboto", sans-serif;
Expand Down Expand Up @@ -150,7 +166,7 @@ body {
}

.next-bt:hover {
background-color:rgba(4, 1, 15, 0.439);
background-color: #b21783;
}

.signup-option {
Expand Down Expand Up @@ -178,7 +194,7 @@ body {
}

.facebook-bt:hover{
background-color:rgba(4, 1, 15, 0.439);
background-color: #b21783;
}


Expand Down
12 changes: 6 additions & 6 deletions src/Components/Login.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,11 +49,11 @@ const LogIn = () => {
return (
<div className="create-account-containe">
<div className="create-account-for" style={{width:'35vw',height:'41vw'}}>
<div className="inner-box" style={{ marginTop:'2vw',width:'31vw',height:'29vw' ,border: '1px solid cyan',borderRadius:'25px',justifyContent:'center'}}>
<h2 style={{ marginBottom:'2.5vw', fontSize: '2rem', fontWeight:'400',color: 'cyan', listStyleType: 'none', padding: 0 }}>Log In</h2>
<div className="inner-box" style={{ marginTop:'2vw',width:'31vw',height:'29vw' ,border: '3px solid yellow',borderRadius:'25px',justifyContent:'center'}}>
<h2 style={{ marginBottom:'2.5vw', fontSize: '2rem', fontWeight:'400',color: 'white', listStyleType: 'none', padding: 0 }}>Log In</h2>
{formStep === 1 ? (
<>
<label className="email" htmlFor="email-input" style={{ color: 'cyan', fontSize: '1.2rem', listStyleType: 'none', padding: 0,marginLeft:'3vw'}}>Email or mobile phone number</label>
<label className="email" htmlFor="email-input" style={{ color: 'white', fontSize: '1.2rem', listStyleType: 'none', padding: 0,marginLeft:'3vw'}}>Email or mobile phone number</label>
<input
className="input-fiel"
type="email"
Expand All @@ -62,7 +62,7 @@ const LogIn = () => {
onChange={(e) => setEmail(e.target.value)}
style={{marginLeft:'3vw'}}
/>
<label className="emai" htmlFor="Password" style={{ color: 'cyan', fontSize: '1.2rem', listStyleType: 'none', padding: 0,marginLeft:'3vw' }}>Password</label>
<label className="emai" htmlFor="Password" style={{ color: 'white', fontSize: '1.2rem', listStyleType: 'none', padding: 0,marginLeft:'3vw' }}>Password</label>

<div style={{ display: 'flex', justifyContent: 'space-between', alignItems: 'center' }}>
<input
Expand Down Expand Up @@ -91,14 +91,14 @@ const LogIn = () => {
</div>

{emailError && <p className="error-message">{emailError}</p>}
<button className="next-bt" onClick={handleNextClick} style={{ color: 'cyan',marginTop:'3vw' }}>Login</button>
<button className="next-bt" onClick={handleNextClick} style={{ color: 'white',marginTop:'3vw' }}>Login</button>
</>
) : null}
</div>
<div style={{marginTop:'0'}}className="separator">
</div>
<div className="signup-option">
<Link to="/CreateAccount" className="facebook-bt" style={{ color: 'cyan',}}>
<Link to="/CreateAccount" className="facebook-bt" style={{ color: 'white',}}>
Create an Account
</Link>

Expand Down
Loading