Merge branch 'hack/log' of github.com:edx/frontend-app-account into hack/log
This commit is contained in:
@@ -1,18 +1,69 @@
|
||||
import React from 'react';
|
||||
import { Input } from '@edx/paragon';
|
||||
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome';
|
||||
import { faFacebookF, faGoogle, faMicrosoft } from '@fortawesome/free-brands-svg-icons';
|
||||
|
||||
export default class LoginPage extends React.Component {
|
||||
state = {
|
||||
password: '',
|
||||
username: '',
|
||||
}
|
||||
|
||||
export default () => (
|
||||
<div className="form-group">
|
||||
<div className="d-flex align-items-start">
|
||||
<h6 aria-level="3">Password</h6>
|
||||
<Input
|
||||
name={name}
|
||||
id={id}
|
||||
type="email"
|
||||
value={value}
|
||||
onChange={handleChange}
|
||||
/>
|
||||
</div>
|
||||
</div>
|
||||
);
|
||||
handlePasswordChange(e) {
|
||||
this.setState({
|
||||
password: e.target.value,
|
||||
});
|
||||
}
|
||||
|
||||
handleUsernameChange(e) {
|
||||
this.setState({
|
||||
username: e.target.value,
|
||||
});
|
||||
}
|
||||
|
||||
render() {
|
||||
return (
|
||||
<div className="d-flex align-items-center flex-column">
|
||||
<div className="d-flex flex-row" style={{ width: '300px' }}>
|
||||
<p>First time here?</p>
|
||||
<a className="ml-2" href="/registration">Create an account!</a>
|
||||
</div>
|
||||
<form>
|
||||
<div className="form-group" style={{ width: '400px' }}>
|
||||
<h2>Sign In</h2>
|
||||
<div className="d-flex flex-column align-items-start">
|
||||
<label htmlFor="loginUsername" className="h6 mr-1">Username</label>
|
||||
<Input
|
||||
name="Username"
|
||||
id="loginUsername"
|
||||
type="email"
|
||||
placeholder="username@domain.com"
|
||||
value={this.state.username}
|
||||
onChange={this.handleUsernameChange}
|
||||
/>
|
||||
</div>
|
||||
<p className="mb-4">The email address you used to register with edX.</p>
|
||||
<div className="d-flex flex-column align-items-start">
|
||||
<label htmlFor="loginUsername" className="h6 mr-1">Password</label>
|
||||
<Input
|
||||
name="Password"
|
||||
id="loginPassword"
|
||||
type="Password"
|
||||
value={this.state.password}
|
||||
onChange={this.handlePasswordChange}
|
||||
/>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
<div>
|
||||
<h3>or sign in with</h3>
|
||||
</div>
|
||||
<div className="row text-center d-block mb-4">
|
||||
<button className="btn-social facebook"><FontAwesomeIcon className="mr-2" icon={faFacebookF} />Facebook</button>
|
||||
<button className="btn-social google"><FontAwesomeIcon className="mr-2" icon={faGoogle} />Google</button>
|
||||
<button className="btn-social microsoft"><FontAwesomeIcon className="mr-2" icon={faMicrosoft} />Microsoft</button>
|
||||
</div>
|
||||
</div>
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,3 +1,2 @@
|
||||
export { LoginPage } from './LoginPage';
|
||||
export { RegistrationPage } from './RegistrationPage';
|
||||
|
||||
|
||||
Reference in New Issue
Block a user