|
3 | 3 | * @author gaurav sharma |
4 | 4 | */ |
5 | 5 | import React, { useEffect } from 'react'; |
6 | | -import { |
7 | | - Container, |
8 | | - Row, |
9 | | - Col, |
10 | | - Form, |
11 | | - FormGroup, |
12 | | - Label |
13 | | -} from 'reactstrap'; |
| 6 | + |
14 | 7 | import { connect } from 'react-redux'; |
15 | 8 | import { userLogin } from '../../redux/actions'; |
16 | 9 | import { toast, ToastContainer } from 'react-toastify'; |
@@ -41,7 +34,7 @@ const LandingPage = (props) => { |
41 | 34 | const loginContainer = document.getElementById('user-login'); |
42 | 35 |
|
43 | 36 | if (bodyContainer.clientWidth >= 720) { |
44 | | - const loginMargin = (bodyContainer.clientHeight - loginContainer.clientHeight - 100) / 2; |
| 37 | + const loginMargin = (bodyContainer.clientHeight - loginContainer.clientHeight - 80) / 2; |
45 | 38 | loginContainer.style.marginTop = `${loginMargin}px`; |
46 | 39 | } else { |
47 | 40 | loginContainer.style.marginTop = '10px'; |
@@ -76,41 +69,35 @@ const LandingPage = (props) => { |
76 | 69 |
|
77 | 70 | const { fetching, login } = props; |
78 | 71 | { login && responseHandler() } |
79 | | - return <section className='content' id='content'> |
| 72 | + return <section className='content' id='content' > |
80 | 73 | {/* <LoadingOverlay fetching={fetching}/> */} |
81 | 74 | <ToastContainer /> |
82 | 75 | <section className='transparent-overlay'></section> |
83 | 76 | <br /><br /><br /> |
84 | 77 | {/* <HeaderComponent/><br/> */} |
85 | | - <Container fluid> |
86 | | - <Row> |
87 | | - <Col md={4} sm={3} xs={2}></Col> |
88 | | - <Col md={4} sm={6} xs={8}> |
89 | | - <div className='text-center'> |
90 | | - <h2 className='logo-text'>PluginFactory ReactJS Scaffold</h2> |
91 | | - </div> |
92 | | - <section className='user-login' id='user-login'> |
93 | | - <Form> |
94 | | - <FormGroup> |
95 | | - <Label for="username">Username</Label><br /> |
96 | | - <input ref={userUname => userUname = userUname} className='custom-field login-field' placeholder='Username for user' /> |
97 | | - </FormGroup> |
98 | | - <FormGroup> |
99 | | - <Label for="username">Password</Label><br /> |
100 | | - <input ref={userPass => userPass = userPass} type='password' className='custom-field login-field' placeholder='Password for user' /> |
101 | | - </FormGroup> |
102 | | - <p className='text-center'> |
103 | | - <button className="litnite-btn" onClick={onLogin}>LOGIN <FontAwesome name="chevron-right" /></button> |
104 | | - </p> |
105 | | - </Form> |
106 | | - <br /><br /><br /> |
107 | | - <hr className='line-break' /> |
108 | | - <p className='text-center'>PluginFactory©2019</p> |
109 | | - </section> |
110 | | - </Col> |
111 | | - <Col md={4} sm={3} xs={2}></Col> |
112 | | - </Row> |
113 | | - </Container> |
| 78 | + <section className='form-container'> |
| 79 | + |
| 80 | + <div className='text-center'> |
| 81 | + <h2 className='logo-text'>PluginFactory ReactJS Scaffold</h2> |
| 82 | + </div> |
| 83 | + <section className='user-login' id='user-login'> |
| 84 | + |
| 85 | + <label htmlFor="username">Username</label><br /> |
| 86 | + <input ref={userUname => userUname = userUname} className='custom-field login-field' placeholder='Username for user' /> |
| 87 | + |
| 88 | + <label htmlFor="username">Password</label><br /> |
| 89 | + <input ref={userPass => userPass = userPass} type='password' className='custom-field login-field' placeholder='Password for user' /> |
| 90 | + |
| 91 | + <p className='text-center'> |
| 92 | + <button className="litnite-btn" onClick={onLogin}>LOGIN <FontAwesome name="chevron-right" /></button> |
| 93 | + </p> |
| 94 | + |
| 95 | + <br /><br /><br /> |
| 96 | + <hr className='line-break' /> |
| 97 | + <p className='text-center'>PluginFactory©2019</p> |
| 98 | + </section> |
| 99 | + |
| 100 | + </section> |
114 | 101 | </section> |
115 | 102 | } |
116 | 103 |
|
|
0 commit comments