Browse Source

Merge branch 'dev-khaidir' of https://git.oslog.id/ibnu/generic-ospro-frontend into dev-wahyun

pull/1/head
wahyuun 10 months ago
parent
commit
658039d042
  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 {
@ -320,22 +320,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>
} }
@ -362,16 +362,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>
@ -389,7 +393,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>
@ -413,11 +418,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} />
) : ( ) : (
@ -425,11 +436,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