Last active
November 29, 2018 03:52
-
-
Save rijdz/632275efe9865827cae91190779ac79a to your computer and use it in GitHub Desktop.
React - Login on Center of Page
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
const centerLogin = { | |
'position': 'fixed', | |
'top': '50%', | |
'left': '50%', | |
'margin-top': '-100px', | |
'margin-left': '-200px' | |
}; | |
return ( | |
<section className="container"> | |
<Helmet> | |
<title>Sign in</title> | |
</Helmet> | |
<div className="container" style={centerLogin}> | |
{/* <h1 className="page-header">Sign in</h1> */} | |
<div className="row"> | |
<div className="col-sm-4"> | |
<div className="panel panel-default"> | |
{/* <div className="panel-heading">Login</div> */} | |
<div className="panel-body"> | |
<form onSubmit={this.handleSubmit.bind(this)}> | |
{alerts} | |
{formElements} | |
</form> | |
<h5>*Please use SDM Online Credentials</h5> | |
</div> | |
</div> | |
</div> | |
</div> | |
</div> | |
</section> | |
); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment