Skip to content

Commit d87fbc4

Browse files
committed
remove reactStrap dependency from layout of the app
1 parent bb28324 commit d87fbc4

7 files changed

Lines changed: 60 additions & 52 deletions

File tree

Lines changed: 10 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,16 @@
11
import React from 'react';
2-
import { Container, Row, Col } from 'reactstrap';
32
import { Link } from 'react-router';
43

54
import './index.scss';
65

76
export default () =>
8-
<Container className='container' id='notfoundcontainer'>
9-
<Row>
10-
<Col className="">
11-
<h1 className="not-found">404</h1>
12-
<p className="subtext">Oooooops!!!</p>
13-
<p>The page seems to have evaporated.</p>
14-
<Link to={"/"}>Continue to Homepage</Link>
15-
</Col>
16-
</Row>
17-
</Container>
7+
<div className='container' id='notfoundcontainer'>
8+
9+
10+
<h1 className="not-found">404</h1>
11+
<p className="subtext">Oooooops!!!</p>
12+
<p>The page seems to have evaporated.</p>
13+
<Link to={"/"}>Continue to Homepage</Link>
14+
15+
16+
</div>
Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,33 @@
11
@import "../../styles/globals";
22

33
#notfoundcontainer {
4-
margin-top: $global_component_margin;
4+
55
border-radius: $global_border_radius;
66
padding: $global_padding;
77
color: $global_black_color;
88
background: $global_white_color;
9+
margin: 0 auto !important;
10+
text-align: center;
911

1012
a {
1113
color: $theme_color_1;
14+
15+
1216
}
1317

18+
19+
1420
.not-found {
1521
font-size: 20vmax;
1622
color: $theme_color_1;
1723
opacity: 0.3;
24+
1825
}
1926

2027
.subtext {
2128
font-size: 3vmax;
2229
opacity: 0.7;
30+
2331
}
2432
}
2533

src/client/app/routes/ContactUs/index.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
*/
44
import React, { useState, useEffect } from 'react';
55
import { connect } from 'react-redux';
6-
import { Table } from 'reactstrap';
76
import { toast, ToastContainer } from 'react-toastify';
87
import CSVReader from 'react-csv-reader';
98
import { APPLICATION_ROUTES, navigationIndexer } from '../../constants';

src/client/app/routes/LandingPage/index.js

Lines changed: 26 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,7 @@
33
* @author gaurav sharma
44
*/
55
import React, { useEffect } from 'react';
6-
import {
7-
Container,
8-
Row,
9-
Col,
10-
Form,
11-
FormGroup,
12-
Label
13-
} from 'reactstrap';
6+
147
import { connect } from 'react-redux';
158
import { userLogin } from '../../redux/actions';
169
import { toast, ToastContainer } from 'react-toastify';
@@ -41,7 +34,7 @@ const LandingPage = (props) => {
4134
const loginContainer = document.getElementById('user-login');
4235

4336
if (bodyContainer.clientWidth >= 720) {
44-
const loginMargin = (bodyContainer.clientHeight - loginContainer.clientHeight - 100) / 2;
37+
const loginMargin = (bodyContainer.clientHeight - loginContainer.clientHeight - 80) / 2;
4538
loginContainer.style.marginTop = `${loginMargin}px`;
4639
} else {
4740
loginContainer.style.marginTop = '10px';
@@ -76,41 +69,35 @@ const LandingPage = (props) => {
7669

7770
const { fetching, login } = props;
7871
{ login && responseHandler() }
79-
return <section className='content' id='content'>
72+
return <section className='content' id='content' >
8073
{/* <LoadingOverlay fetching={fetching}/> */}
8174
<ToastContainer />
8275
<section className='transparent-overlay'></section>
8376
<br /><br /><br />
8477
{/* <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&nbsp;&nbsp;&nbsp;<FontAwesome name="chevron-right" /></button>
104-
</p>
105-
</Form>
106-
<br /><br /><br />
107-
<hr className='line-break' />
108-
<p className='text-center'>PluginFactory&copy;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&nbsp;&nbsp;&nbsp;<FontAwesome name="chevron-right" /></button>
93+
</p>
94+
95+
<br /><br /><br />
96+
<hr className='line-break' />
97+
<p className='text-center'>PluginFactory&copy;2019</p>
98+
</section>
99+
100+
</section>
114101
</section>
115102
}
116103

src/client/app/routes/LandingPage/index.scss

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,4 +42,17 @@
4242
}
4343
.login-field {
4444
width: 100%;
45+
}
46+
47+
.user-login {
48+
padding: 17px;
49+
50+
input {
51+
margin-bottom: 19px;
52+
}
53+
}
54+
55+
.form-container{
56+
max-width: 616px;
57+
margin: 0 auto;
4558
}

src/client/app/routes/index.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ export default () => {
2727
<Route path='/dashboard' component={DashboardPage} />
2828
<Route path='/contactUs' component={ContactUsPage} />
2929
</Route>
30+
3031
</Router>
3132
</Provider>;
3233
}

src/client/app/styles/globals.scss

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -145,3 +145,4 @@ $global_white_color: #fff;
145145
border: solid 1px silver;
146146
min-height: 300px;
147147
}
148+

0 commit comments

Comments
 (0)