forked from wyncode/C40_Final_Eimy_Keith_Sebastian_Thip
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
232e693
commit 59fdaf5
Showing
17 changed files
with
406 additions
and
79 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,163 @@ | ||
.signin { | ||
margin-top: 80px; | ||
* { | ||
margin: 0; | ||
padding: 0; | ||
font-family: sans-serif; | ||
} | ||
.hero { | ||
height: 100vh; | ||
width: 100vw; | ||
background-image: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)), | ||
url(../../Assests/home.jpeg); | ||
background-position: center; | ||
background-size: cover; | ||
position: relative; | ||
margin-top: -35px; | ||
} | ||
.form-box { | ||
width: 400px; | ||
height: 100vh; | ||
position: relative; | ||
margin: 6% auto; | ||
background: #fff; | ||
padding: 5px; | ||
overflow: hidden; | ||
} | ||
.button-box { | ||
width: 220px; | ||
margin: 35px auto; | ||
position: relative; | ||
box-shadow: 0 0 20px 9px #ff61241f; | ||
border-radius: 30px; | ||
} | ||
.toggle-btn { | ||
padding: 10px 30px; | ||
cursor: pointer; | ||
background: transparent; | ||
border: 0; | ||
outline: none; | ||
position: relative; | ||
color: orange; | ||
} | ||
#btn { | ||
top: 0; | ||
left: 0; | ||
position: absolute; | ||
width: 110px; | ||
height: 100%; | ||
background: #0f2027; /* fallback for old browsers */ | ||
background: -webkit-linear-gradient( | ||
to right, | ||
#2c5364, | ||
#203a43, | ||
#0f2027 | ||
); /* Chrome 10-25, Safari 5.1-6 */ | ||
background: linear-gradient( | ||
to right, | ||
#2c5364, | ||
#203a43, | ||
#0f2027 | ||
); /* W3C, IE 10+/ Edge, Firefox 16+, Chrome 26+, Opera 12+, Safari 7+ */ | ||
border-radius: 30px; | ||
transition: 0.5s; | ||
} | ||
.social-icons { | ||
margin: 30px auto; | ||
text-align: center; | ||
} | ||
.social-icons img { | ||
width: 30px; | ||
margin: 0 12px; | ||
box-shadow: 0 0 20px 0 #7f7f7f3d; | ||
cursor: pointer; | ||
border-radius: 50%; | ||
} | ||
.input-group { | ||
top: 180px; | ||
position: absolute; | ||
width: 280px; | ||
transition: 0.5s; | ||
} | ||
.input-field { | ||
width: 100%; | ||
padding: 10px 0; | ||
margin: 5px 0; | ||
border-left: 0; | ||
border-top: 0; | ||
border-right: 0; | ||
border-bottom: 1px solid #999; | ||
outline: none; | ||
background: transparent; | ||
} | ||
.submit-btn { | ||
width: 85%; | ||
padding: 10px 30px; | ||
cursor: pointer; | ||
display: block; | ||
margin: auto; | ||
background: linear-gradient(); | ||
border: 0; | ||
outline: none; | ||
border-radius: 30px; | ||
} | ||
.check-box { | ||
margin: 30px 10px 30px 0; | ||
/* display:flex; | ||
flex-direction: column; */ | ||
} | ||
span { | ||
color: #777; | ||
font-size: 12px; | ||
bottom: 68px; | ||
position: absolute; | ||
} | ||
.form-control label { | ||
display: inline-block; | ||
margin-bottom: 5px; | ||
} | ||
.form-control input { | ||
border: 2px solid #f0f0f0; | ||
border-radius: 4px; | ||
display: block; | ||
font-family: inherit; | ||
font-size: 14px; | ||
padding: 10px; | ||
width: 100%; | ||
} | ||
.form-control input:focus { | ||
outline: 0; | ||
border-color: #777; | ||
} | ||
.form-control.success input { | ||
border-color: #2ecc71; | ||
} | ||
.form-control.error input { | ||
border-color: #e74c3c; | ||
} | ||
.form-control i { | ||
visibility: hidden; | ||
position: absolute; | ||
top: 40px; | ||
right: 10px; | ||
} | ||
.form-control.success i.fa-check-circle { | ||
color: #2ecc71; | ||
visibility: visible; | ||
} | ||
.form-control.error i.fa-exclamation-circle { | ||
color: #e74c3c; | ||
visibility: visible; | ||
} | ||
.form-control small { | ||
color: #e74c3c; | ||
position: absolute; | ||
bottom: 0; | ||
left: 0; | ||
visibility: hidden; | ||
} | ||
.form-control.error small { | ||
visibility: visible; | ||
} | ||
|
||
.pro-check { | ||
padding: 10px; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
const x = document.getElementById('login'); | ||
const y = document.getElementById('register'); | ||
const z = document.getElementById('btn'); | ||
function register() { | ||
console.log(x); | ||
x.style.left = '-400px'; | ||
y.style.left = '50px'; | ||
z.style.left = '110px'; | ||
} | ||
function login() { | ||
x.style.left = '50px'; | ||
y.style.left = '450px'; | ||
z.style.left = '0px'; | ||
} | ||
|
||
export { register, login }; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,66 +1,127 @@ | ||
import React from 'react'; | ||
import React, { useState } from 'react'; | ||
|
||
import './SignIn.css'; | ||
import fb from '../../Assests/fb.png'; | ||
import tw from '../../Assests/tw.png'; | ||
import gp from '../../Assests/gp.png'; | ||
import { register, login } from './SignIn'; | ||
|
||
const SignIn = () => { | ||
const handleRegister = (event) => { | ||
console.log(event.target); | ||
}; | ||
const [checked, setChecked] = useState(false); | ||
|
||
const handleCheck = () => { | ||
setChecked(!checked); | ||
console.log(checked); | ||
}; | ||
|
||
return ( | ||
<> | ||
<div className="hero"> | ||
<div className="form-box"> | ||
<div className="button-box"> | ||
<div id="btn"></div> | ||
<button type="button" className="toggle-btn" onClick={login}> | ||
Log In | ||
</button> | ||
<button type="button" className="toggle-btn" onClick={register}> | ||
Register | ||
</button> | ||
</div> | ||
<div className="social-icons"> | ||
<img src={fb} /> | ||
<img src={tw} /> | ||
<img src={gp} /> | ||
</div> | ||
<form id="login" className="input-group"> | ||
<label>Username</label> | ||
<input | ||
type="text" | ||
className="input-field" | ||
placeholder="Username" | ||
required | ||
></input> | ||
<label>Email</label> | ||
<input | ||
type="email" | ||
className="input-field" | ||
placeholder="Email" | ||
required | ||
></input> | ||
<label>Password</label> | ||
<input | ||
type="text" | ||
className="input-field" | ||
placeholder="Enter Password" | ||
required | ||
></input> | ||
|
||
<button type="submit" className="submit-btn"> | ||
Log In | ||
</button> | ||
</form> | ||
<form id="register" className="input-group"> | ||
<label>Username</label> | ||
<input | ||
type="text" | ||
className="input-field" | ||
placeholder="Username" | ||
required | ||
></input> | ||
<label>Email</label> | ||
<input | ||
type="email" | ||
className="input-field" | ||
placeholder="Email" | ||
required | ||
></input> | ||
<label>Password</label> | ||
<input | ||
type="password" | ||
className="input-field" | ||
placeholder="Enter Password" | ||
required | ||
></input> | ||
|
||
<label className="pro-check">I would like to be a Pro</label> | ||
<input | ||
type="checkbox" | ||
className="check-boxpro" | ||
onClick={handleCheck} | ||
></input> | ||
|
||
function SignIn() { | ||
// return ( | ||
// <div className="signin"> | ||
// <h1>Sign In Page</h1> | ||
// <div class="hero"> | ||
// <div class="form-box"> | ||
// <div class="button-box"> | ||
// <div id="btn"> | ||
// <div> | ||
// </div> | ||
// <div class="social-icons"> <img src="fb.png" /> | ||
// <img src="tw.png" /> | ||
// <img src="gp.png" /> | ||
// </div> | ||
// <form id="login" class="input-group"> | ||
// <input | ||
// type="text" | ||
// class="input-field" | ||
// placeholder="User Id" | ||
// required | ||
// /> | ||
// <input | ||
// type="text" | ||
// class="input-field" | ||
// placeholder="Enter Password" | ||
// required | ||
// /> | ||
// <input type="checkbox" class="check-box" /><span | ||
// >Remember Password</span | ||
// > | ||
// <button type="submit" class="submit-btn">Login</button> | ||
// </form> | ||
// <form id="register" class="input-group"> | ||
// <input | ||
// type="text" | ||
// class="input-field" | ||
// placeholder="User Id" | ||
// required | ||
// /> | ||
// <input | ||
// type="text" | ||
// class="input-field" | ||
// placeholder="Enter Password" | ||
// required | ||
// /> | ||
// <input type="checkbox" class="check-box" /><span | ||
// >I agree to the terms & conditions</span | ||
// > | ||
// <button type="submit" class="submit-btn">Register</button> | ||
// </form> | ||
// </div> | ||
// </div> | ||
// <form> | ||
// <label>Email</label> | ||
// <input></input> | ||
// <label>Password</label> | ||
// <input></input> | ||
// </form> | ||
// </div> | ||
// ); | ||
} | ||
{checked && ( | ||
<div> | ||
<input | ||
type="text" | ||
className="input-field" | ||
placeholder="Business Name" | ||
required | ||
></input> | ||
<input | ||
type="text" | ||
className="input-field" | ||
required | ||
placeholder="Type of Business" | ||
></input> | ||
<input | ||
type="text" | ||
className="input-field" | ||
required | ||
placeholder="Phone Number" | ||
></input> | ||
</div> | ||
)} | ||
<button type="submit" className="submit-btn"> | ||
Register | ||
</button> | ||
</form> | ||
</div> | ||
</div> | ||
</> | ||
); | ||
}; | ||
|
||
export default SignIn; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.