Skip to content

Commit 2406edb

Browse files
committed
Fix UI, clear code
1 parent 09e523e commit 2406edb

File tree

27 files changed

+160
-196
lines changed

27 files changed

+160
-196
lines changed

package.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -212,5 +212,8 @@
212212
"resolutions": {
213213
"react": "^17.0.2",
214214
"react-dom": "^17.0.2"
215+
},
216+
"engines": {
217+
"node": "14"
215218
}
216219
}

src/components/Header/Header.module.scss

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
}
3030

3131
.input-group-prepend-icon {
32-
background-color: var(--input-bg);
32+
background-color: var(--input-bg-color);
3333
transition: background-color ease-in-out 0.15s;
3434
border-top-left-radius: 0.3rem;
3535
border-bottom-left-radius: 0.3rem;
@@ -40,7 +40,7 @@
4040
}
4141

4242
.form-control {
43-
background-color: var(--input-bg);
43+
background: var(--input-bg-color);
4444
color: var(--input-color);
4545
&::placeholder {
4646
color: var(--input-color);

src/components/Helper/Helper.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,7 @@ class Helper extends Component {
201201

202202
<h5 className="mt-4 navbar-color-picker">Navbar Color</h5>
203203
<CustomColorPicker
204-
colors={config.app.colors}
204+
colors={config.app.navbarColors}
205205
activeColor={navbarColor}
206206
updateColor={this.updateColor}
207207
customizationItem={"navbar"}
@@ -222,7 +222,7 @@ class Helper extends Component {
222222

223223
<h5 className="mt-4 sidebar-color-picker">Sidebar Color</h5>
224224
<CustomColorPicker
225-
colors={config.app.colors}
225+
colors={config.app.sidebarColors}
226226
activeColor={sidebarColor}
227227
updateColor={this.changeTheme}
228228
customizationItem={"sidebar"}

src/components/Users/changePassword/ChangePasswordForm.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ class UsersForm extends Component {
5151

5252
<div className="form-buttons">
5353
<button
54-
className="btn btn-primary me-3"
54+
className="btn btn-success me-3"
5555
disabled={saveLoading}
5656
type="button"
5757
onClick={form.handleSubmit}
@@ -61,7 +61,7 @@ class UsersForm extends Component {
6161
</button>{' '}
6262

6363
<button
64-
className="btn btn-light"
64+
className="btn btn-gray-default"
6565
type="button"
6666
disabled={saveLoading}
6767
onClick={() => this.props.onCancel()}

src/components/Users/form/UsersForm.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ class UsersForm extends Component {
100100

101101
<div className="form-buttons">
102102
<button
103-
className="me-3 btn btn-primary"
103+
className="me-3 btn btn-success"
104104
disabled={saveLoading}
105105
type="button"
106106
onClick={form.handleSubmit}
@@ -109,7 +109,7 @@ class UsersForm extends Component {
109109
</button>{' '}{' '}
110110

111111
<button
112-
className="me-3 btn btn-light"
112+
className="me-3 btn btn-gray-default"
113113
type="button"
114114
disabled={saveLoading}
115115
onClick={form.handleReset}
@@ -118,7 +118,7 @@ class UsersForm extends Component {
118118
</button>{' '}{' '}
119119

120120
<button
121-
className="me-3 btn btn-light"
121+
className="me-3 btn btn-gray-default"
122122
type="button"
123123
disabled={saveLoading}
124124
onClick={() => this.props.onCancel()}

src/components/Users/form/UsersFormPage.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ class UsersFormPage extends Component {
6969
<div className="page-top-line">
7070
<h2 className="page-title">User - <span className="fw-semi-bold">Edit</span></h2>
7171
<Alert
72-
color="primary"
72+
color="warning"
7373
className={cx(s.promoAlert, {[s.showAlert]: this.state.promoAlert})}
7474
>
7575
This page is only available in <a className="text-white font-weight-bold" rel="noreferrer noopener" href="https://flatlogic.com/templates/sing-app-react-node-js" target="_blank">Sing App React with NodeJS/.NET</a> integration!

src/components/Users/list/UsersListPage.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ class UsersListPage extends Component {
2828
<div className="page-top-line">
2929
<h2 className="page-title">User - <span className="fw-semi-bold">Management</span></h2>
3030
<Alert
31-
color="primary"
31+
color="warning"
3232
className={cx(s.promoAlert, {[s.showAlert]: this.state.promoAlert})}
3333
>
3434
This page is only available in <a className="text-white fw-bold" rel="noreferrer noopener" href="https://flatlogic.com/admin-dashboards/sing-app-react-node-js" target="_blank">Sing App React with Node.js</a> integration!

src/config.js

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,21 @@ export default {
1515
password: 'password'
1616
},
1717
app: {
18+
sidebarColors: {
19+
first: '#3D3D3D',
20+
second: '#4B505F',
21+
third: '#483CB6',
22+
fourth: '#EFF2F5',
23+
fifth: '#20AE8C'
24+
},
25+
navbarColors: {
26+
first: '#ffffff',
27+
second: '#E2E7EC',
28+
third: '#C9D1FB',
29+
fourth: '#C1C3CF',
30+
fifth: '#0C2236',
31+
sixth: '#6FB0F9'
32+
},
1833
colors: {
1934
dark: "#002B49",
2035
light: "#FFFFFF",

src/images/sidebar/basil/Home.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
import React from 'react'
22

33
const Home = () => (
4-
<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
5-
<path d="M13.796 4.13609C12.8136 3.12147 11.1863 3.12147 10.2039 4.13608L5.40546 9.09182C5.12987 9.37643 4.94469 9.73624 4.87323 10.1259C4.29047 13.3039 4.24745 16.5573 4.74599 19.7496L4.92249 20.8798C4.97824 21.2368 5.2857 21.5 5.64701 21.5H8.99997C9.27611 21.5 9.49997 21.2761 9.49997 21V14H14.5V21C14.5 21.2761 14.7238 21.5 15 21.5H18.3529C18.7142 21.5 19.0217 21.2368 19.0774 20.8798L19.2539 19.7496C19.7524 16.5573 19.7094 13.3039 19.1267 10.1259C19.0552 9.73624 18.87 9.37643 18.5944 9.09182L13.796 4.13609Z" fill="currentColor"/>
6-
</svg>
4+
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="currentColor">
5+
<path fill-rule="evenodd" clip-rule="evenodd" d="M13.5578 5.53423C12.6873 4.69887 11.3127 4.69887 10.4422 5.53423L5.81574 9.97357C5.70239 10.0823 5.62614 10.224 5.5978 10.3785C5.04367 13.4004 5.00277 16.494 5.47681 19.5295L5.58933 20.25H8.56579V14.0387C8.56579 13.6244 8.90158 13.2887 9.31579 13.2887H14.6842C15.0984 13.2887 15.4342 13.6244 15.4342 14.0387V20.25H18.4107L18.5232 19.5295C18.9972 16.494 18.9563 13.4004 18.4022 10.3785C18.3739 10.224 18.2976 10.0823 18.1843 9.97357L13.5578 5.53423ZM9.40363 4.45191C10.8546 3.05965 13.1454 3.05965 14.5964 4.45191L19.2228 8.89125C19.5634 9.21804 19.7925 9.64373 19.8776 10.108C20.4621 13.2956 20.5053 16.559 20.0052 19.7609L19.8245 20.9184C19.7497 21.3971 19.3374 21.75 18.8529 21.75H14.6842C14.27 21.75 13.9342 21.4142 13.9342 21V14.7887H10.0658V21C10.0658 21.4142 9.73 21.75 9.31579 21.75H5.14706C4.66258 21.75 4.25029 21.3971 4.17554 20.9184L3.99478 19.7609C3.49473 16.559 3.53788 13.2956 4.12241 10.108C4.20754 9.64373 4.43662 9.21804 4.77719 8.89125L9.40363 4.45191Z" />
6+
</svg>
77
)
88

99

src/pages/auth/login/Login.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ class Login extends React.Component {
8888
<p className="widget-auth-info">
8989
Use your email to sign in.
9090
</p>
91-
<Alert className="alert-sm text-center mt-2" color="secondary">
91+
<Alert className="alert-sm text-center mt-2 bg-primary-300" color="secondary">
9292
For user with "admin" role use
9393
<br/>
9494
<span className="fw-bold">"admin@flatlogic.com / password"</span>
@@ -110,14 +110,14 @@ class Login extends React.Component {
110110
<input className="form-control no-border" value={this.state.password} onChange={this.changePassword} type="password" required name="password" placeholder="Password" />
111111
</div>
112112
<Link className="d-block text-right mb-3 mt-1 fs-sm" to="forgot">Forgot password?</Link>
113-
<Button type="submit" color="info" className="auth-btn mb-3" size="sm">{this.props.isFetching ? 'Loading...' : 'Login'}</Button>
113+
<Button type="submit" color="primary" className="auth-btn mb-3" size="sm">{this.props.isFetching ? 'Loading...' : 'Login'}</Button>
114114
<p className="widget-auth-info">or sign in with</p>
115115
<div className="social-buttons">
116-
<Button onClick={this.googleLogin} color="primary" className="social-button mb-2">
116+
<Button onClick={this.googleLogin} color="warning" className="social-button mb-2">
117117
<i className="social-icon social-google"/>
118118
<p className="social-text">GOOGLE</p>
119119
</Button>
120-
<Button onClick={this.microsoftLogin} color="success" className="social-button">
120+
<Button onClick={this.microsoftLogin} color="danger" className="social-button">
121121
<i className="social-icon social-microsoft"
122122
style={{backgroundImage: `url(${microsoft})`}}/>
123123
<p className="social-text">MICROSOFT</p>

0 commit comments

Comments
 (0)