Skip to content

Commit 512a7bb

Browse files
committed
design fixes
1 parent da1905a commit 512a7bb

File tree

12 files changed

+37
-26
lines changed

12 files changed

+37
-26
lines changed

src/components/App.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,8 @@ class App extends React.PureComponent {
3939
<Route path="/app" exact render={() => <Redirect to="/app/main" />} />
4040
<PrivateRoute path="/app" component={LayoutComponent} />
4141
<Route path="/login" exact component={LoginComponent} />
42+
<Route path="/error" exact component={ErrorPage} />
4243
<Redirect from="*" to="/app/main/analytics" />
43-
<Route component={ErrorPage} />
4444
</Switch>
4545
</BrowserRouter>
4646
);

src/components/Helper/Helper.js

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -38,19 +38,19 @@ class Helper extends Component {
3838
</header>
3939
}
4040
>
41-
<div class="theme-switcher d-flex justify-content-center">
42-
<div class="form-check abc-radio abc-radio-warning form-check-inline">
43-
<input class="form-check-input" type="radio" id="css-light" value="option2" checked name="css-light" aria-label="Sing Light"/>
44-
<label class="form-check-label" for="css-light"></label>
41+
<div className="theme-switcher d-flex justify-content-center">
42+
<div className="form-check abc-radio abc-radio-warning form-check-inline">
43+
<input className="form-check-input" checked type="radio" id="css-light" value="option2" name="css-light" aria-label="Sing Light" readOnly/>
44+
<label className="form-check-label" htmlFor="css-light"></label>
4545
</div>
46-
<div class="form-check abc-radio abc-radio-secondary mr-0 form-check-inline">
47-
<input class="form-check-input" onClick={() => this.changeLocation('https://sing-app.herokuapp.com/')} type="radio" id="css-dark" value="option1" name="css-light" aria-label="Single Dark"/>
48-
<label class="form-check-label" for="css-dark"></label>
46+
<div className="form-check abc-radio abc-radio-secondary mr-0 form-check-inline">
47+
<input className="form-check-input" onClick={() => this.changeLocation('https://sing-app.herokuapp.com/')} type="radio" id="css-dark" value="option1" name="css-light" aria-label="Single Dark" readOnly/>
48+
<label className="form-check-label" htmlFor="css-dark"></label>
4949
</div>
5050
</div>
5151
<div className="mt-4">
5252
<Button
53-
href="https://flatlogic.com/dashboards/sing-app-react"
53+
href="https://flatlogic.com/admin-dashboards/sing-app-react"
5454
target="_blank"
5555
className="btn-rounded-f btn-block fs-mini"
5656
color="warning"

src/components/Helper/Helper.module.scss

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,16 @@
99

1010
@include transition(right $sidebar-transition-time ease-in-out);
1111

12+
& :global {
13+
.abc-radio-secondary input[type="radio"]:not(:checked)+label::before {
14+
background-color: #798892;
15+
}
16+
17+
.abc-radio-warning input[type="radio"]:not(:checked)+label::before {
18+
background-color: theme-color('warning');
19+
}
20+
}
21+
1222
&.themeHelperOpened {
1323
right: 0;
1424
}

src/pages/analytics/components/BigStat/BigStat.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ class BigStat extends Component {
5151
caret color="default"
5252
className="dropdown-toggle-split mr-xs"
5353
>
54-
{this.state.simpleSelectDropdownValue}
54+
{this.state.simpleSelectDropdownValue}&nbsp;&nbsp;
5555
</DropdownToggle>
5656
<DropdownMenu>
5757
<DropdownItem onClick={this.changeSelectDropdownSimple}>

src/pages/analytics/components/Charts/MainChart.js

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -101,25 +101,22 @@ export default class RevenueChart extends PureComponent {
101101
.css({
102102
border: 0,
103103
borderRadius: 0,
104-
paddingTop: 5,
105-
display: 'flex',
106-
justifyContent: 'center',
104+
paddingTop: 5
107105
})
108106
.children('div')
109107
.css({
110108
borderWidth: 1,
111109
borderRadius: 0,
112-
width: 10,
113-
height: 10,
110+
width: 75
114111
});
115112

116113
this.$chartLegend.find('tbody td').css({
117114
paddingLeft: 10,
118115
paddingRight: 10,
119-
textAlign: 'center',
116+
textAlign: 'center'
120117
});
121118

122-
const labels = this.$chartLegend.find('.legendLabel').detach();
119+
let labels = this.$chartLegend.find('.legendLabel').detach();
123120
this.$chartLegend.find('tbody').prepend('<tr></tr>');
124121
this.$chartLegend.find('tbody tr:eq(0)').append(labels);
125122
}

src/pages/error/ErrorPage.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import React from 'react';
2-
import withStyles from 'isomorphic-style-loader/lib/withStyles';
32
import {
43
Container,
54
Form,
@@ -9,7 +8,7 @@ import {
98
} from 'reactstrap';
109
import { Link } from 'react-router-dom';
1110

12-
import s from './ErrorPage.scss';
11+
import s from './ErrorPage.module.scss';
1312

1413
class ErrorPage extends React.Component {
1514
render() {
@@ -44,4 +43,4 @@ class ErrorPage extends React.Component {
4443
}
4544
}
4645

47-
export default withStyles(s)(ErrorPage);
46+
export default ErrorPage;

src/pages/error/ErrorPage.scss renamed to src/pages/error/ErrorPage.module.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
.errorPage {
44
padding-top: 5%;
55
background-color: $gray-300;
6-
height: 100%;
6+
height: 100vh;
77
}
88

99
.errorContainer {

src/pages/extra/calendar/Calendar.module.scss

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,12 @@
1414
text-transform: uppercase;
1515
}
1616

17+
.fc-day-grid-event {
18+
margin: 0;
19+
padding: 0;
20+
}
21+
1722
.fc-event {
18-
padding: 2px 3px;
1923
border: none;
2024
font-weight: $font-weight-normal;
2125
background-color: $gray-200;
@@ -29,6 +33,7 @@
2933
a.fc-event {
3034
height: auto;
3135
line-height: $line-height-base;
36+
width: 100%;
3237
}
3338

3439
/* **** Full Calendar Custom **** */

src/pages/package/SPackage.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,7 @@ class SPackage extends React.Component {
2020
<h2 className="page-title">Sing - <span className="fw-semi-bold">Package</span>&nbsp;
2121
<small>More than 2000 man-hours already invested!</small>
2222
</h2>
23-
<p className="lead">You will get access to all those versions
24-
listed below after you purchase any Sing licence!</p>
23+
<p className="lead">Over 8,000 developers worldwide chose our bootstrap admin templates to build their web applications, SAAS and E-Commerce platforms faster. Jump in to burn through your gig too!</p>
2524
<Row>
2625
<Col lg={5} md={6}>
2726
<Widget

src/pages/products/components/FilterElement/FilterElement.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ class FilterElement extends Component {
3434
caret color="default"
3535
className="dropdown-toggle-split mr-xs"
3636
>
37-
{currentOption}
37+
{currentOption}&nbsp;&nbsp;
3838
</DropdownToggle>
3939
<DropdownMenu>
4040
{options.map(item =>

src/reducers/navigation.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import { TOGGLE_SIDEBAR, OPEN_SIDEBAR, CLOSE_SIDEBAR, CHANGE_ACTIVE_SIDEBAR_ITEM
33
const initialState = {
44
sidebarOpened: false,
55
sidebarStatic: false,
6-
activeItem: window.location.pathname,
6+
activeItem: JSON.parse(localStorage.getItem('staticSidebar')) ? window.location.pathname : null,
77
};
88

99
export default function runtime(state = initialState, action) {

src/styles/theme.scss

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
@import '../../node_modules/react-bootstrap-table/dist/react-bootstrap-table-all.min.css';
2222
@import '../../node_modules/jvectormap/jquery-jvectormap.css';
2323
@import '../../node_modules/metrojs/release/MetroJs.Full/MetroJs.css';
24+
@import '../../node_modules/react-sortable-tree/style.css';
2425
@import 'mixins';
2526
@import 'base';
2627
@import 'overrides';

0 commit comments

Comments
 (0)