Browse Source

fn login

pull/1/head
khaidralirahman 9 months ago
parent
commit
f3d2a13216
  1. 47
      src/views/Pages/Login/Login.js

47
src/views/Pages/Login/Login.js

@ -35,7 +35,7 @@ const settings = {
arrows: false, arrows: false,
autoplay: true, autoplay: true,
slidesToShow: 1, slidesToShow: 1,
slidesToScroll: 1 slidesToScroll: 1,
}; };
class Login extends Component { class Login extends Component {
@ -321,22 +321,22 @@ class Login extends Component {
} }
getLoginLogo = () => { getLoginLogo = () => {
return <div style={{ textAlign: 'center' }}><img style={{ width: '100%' }} src={logo_ospro} /></div> return <div style={{ textAlign: 'left', paddingBottom:'15px' }}><img style={{ width: '35%' }} src={logo_ospro} /></div>
} }
getLoginSlider = () => { getLoginSlider = () => {
return <Slider {...settings} > return <Slider {...settings} >
<div> <div>
<img src={require('../../../assets/img/login/slide1.jpg')} className="img-avatar" /> <img src={require('../../../assets/img/login/slide1.jpg')} style={{display:'block', maxWidth:'100%', height:'auto'}}/>
</div> </div>
<div> <div>
<img src={require('../../../assets/img/login/slide2.jpg')} className="img-avatar" /> <img src={require('../../../assets/img/login/slide2.jpg')} style={{display:'block', maxWidth:'100%', height:'auto'}} />
</div> </div>
<div> <div>
<img src={require('../../../assets/img/login/slide3.jpg')} className="img-avatar" /> <img src={require('../../../assets/img/login/slide3.jpg')} style={{display:'block', maxWidth:'100%', height:'auto'}} />
</div> </div>
<div> <div>
<img src={require('../../../assets/img/login/slide4.jpg')} className="img-avatar" /> <img src={require('../../../assets/img/login/slide4.jpg')} style={{display:'block', maxWidth:'100%', height:'auto'}} />
</div> </div>
</Slider> </Slider>
} }
@ -363,16 +363,20 @@ class Login extends Component {
<Col md="7"> <Col md="7">
{this.getLoginSlider()} {this.getLoginSlider()}
</Col> </Col>
<Col md="5"> <Col md="5" style={{display:'flex', alignItems:'stretch'}}>
<div style={{ <div style={{
boxShadow: '1px 1px 11px 1px rgba(221,211,211,0.75)' boxShadow: '1px 1px 11px 1px rgba(221,211,211,0.75)',
}}> }}>
<CardGroup> <CardGroup style={{height:'100%', display:'flex', alignContent:'center'}}>
<Card className="p-4"> <Card className="p-4" style={{border:'solid #fff'}}>
<CardBody> <CardBody>
<Form onSubmit={this.submitForm}> <Form onSubmit={this.submitForm}>
{this.getLoginLogo()} {this.getLoginLogo()}
<p className="text-muted">Sign In to your account</p> <div>
<h1 className="mb-1" style={{coror:'#232323'}}>Welcome to OSPRO!</h1>
<p style={{fontSize:'16px', color:'#898989'}}>Please sign-in to your account and start the adventure</p>
</div>
<InputGroup className="mb-3"> <InputGroup className="mb-3">
<InputGroupAddon addonType="prepend"> <InputGroupAddon addonType="prepend">
<InputGroupText> <InputGroupText>
@ -390,7 +394,8 @@ class Login extends Component {
}} }}
/> />
</InputGroup> </InputGroup>
<InputGroup className="mb-4">
<InputGroup >
<InputGroupAddon addonType="prepend"> <InputGroupAddon addonType="prepend">
<InputGroupText> <InputGroupText>
<i className="icon-lock"></i> <i className="icon-lock"></i>
@ -414,11 +419,17 @@ class Login extends Component {
</InputGroupAddon> </InputGroupAddon>
<span className="password__show" ></span> <span className="password__show" ></span>
</InputGroup> </InputGroup>
<Row> <Row className="mb-2" style={{display:'flex', alignItems:'center'}}>
<Col xs="8"> <Col xs="7">
<Checkbox checked={this.state.remember} onChange={this.onChecked}>Remember me (7 days)</Checkbox> <Checkbox checked={this.state.remember} onChange={this.onChecked}>Remember me (7 days)</Checkbox>
</Col> </Col>
<Col xs="4"> <Col className="text-right ">
<Button color="link" className="px-0">Forgot password?</Button>
</Col>
</Row>
<Row>
<Col className="text-right ">
{this.state.loader ? ( {this.state.loader ? (
<Spin indicator={antIcon} /> <Spin indicator={antIcon} />
) : ( ) : (
@ -426,11 +437,7 @@ class Login extends Component {
)} )}
</Col> </Col>
</Row> </Row>
<Row>
<Col className="text-right mt-5">
<Button color="link" className="px-0">Forgot password?</Button>
</Col>
</Row>
</Form> </Form>
</CardBody> </CardBody>
</Card> </Card>

Loading…
Cancel
Save