Commit 4980116 1 parent 919bcc0 commit 4980116 Copy full SHA for 4980116
File tree 4 files changed +47
-2
lines changed
client/src/containers/Dashboard
4 files changed +47
-2
lines changed Original file line number Diff line number Diff line change 7
7
padding : 0 20px ;
8
8
align-items : center;
9
9
font-weight : 300 ;
10
+ border-bottom : 1px solid # 3f3f3f ;
10
11
}
11
12
.btn-logout {
12
13
transition : 0.3s ;
16
17
}
17
18
.Dashboard__main {
18
19
padding : 20px ;
20
+ display : flex;
21
+ height : 90vh ;
19
22
}
20
23
.Dashboard__sideDrawer {
21
- height : 84 vh ;
24
+ height : 100 % ;
22
25
width : 15vw ;
26
+ margin-right : 20px ;
23
27
border-radius : 10px ;
24
28
border : 1px solid # 1d1d1d ;
25
29
color : # ddd ;
44
48
display : flex;
45
49
flex-flow : column;
46
50
align-items : flex-start;
47
- padding-left : 3 rem ;
51
+ padding-left : 2 rem ;
48
52
margin-top : 20% ;
49
53
height : 60% ;
50
54
justify-content : space-between;
51
55
}
52
56
.Dashboard__sideList__item {
53
57
cursor : pointer;
58
+ display : flex;
59
+ align-items : center;
60
+ }
61
+ .Dashboard__sideList__item i {
62
+ margin-right : 7px ;
63
+ font-size : 1.2rem ;
54
64
}
55
65
.Dashboard__sideList__item : hover ,
56
66
.Dashboard__sideList__item--active {
57
67
color : # fff ;
58
68
}
69
+
70
+
71
+ .Dashboard__section {
72
+ height : 100% ;
73
+ flex : 1 ;
74
+ border-left : 1px solid # 3f3f3f ;
75
+ padding-left : 20px ;
76
+ }
Original file line number Diff line number Diff line change 1
1
import React , { Component , Fragment } from "react" ;
2
2
import { connect } from "react-redux" ;
3
3
import * as actionTypes from "../../store/actions/actionTypes" ;
4
+ import Profile from "./Profile/Profile" ;
4
5
import "./Dashboard.css" ;
5
6
import qs from "qs" ;
6
7
@@ -18,6 +19,12 @@ class Dashboard extends Component {
18
19
const query = qs . parse ( this . props . location . search , {
19
20
ignoreQueryPrefix : true
20
21
} ) ;
22
+ const iconClass = [
23
+ "fas fa-chart-pie" ,
24
+ "fas fa-user" ,
25
+ "far fa-id-card" ,
26
+ "fas fa-search"
27
+ ] ;
21
28
let heading = "Dashboard" ;
22
29
if ( this . state . tabs . includes ( query . tab ) ) {
23
30
heading = query . tab ;
@@ -29,10 +36,13 @@ class Dashboard extends Component {
29
36
}
30
37
return (
31
38
< li key = { i } className = { listItemClasses . join ( " " ) } >
39
+ < i className = { iconClass [ i ] } />
32
40
{ item }
33
41
</ li >
34
42
) ;
35
43
} ) ;
44
+
45
+ let content = < Profile /> ;
36
46
return (
37
47
< Fragment >
38
48
< nav className = "Dashboard__nav" >
@@ -47,6 +57,7 @@ class Dashboard extends Component {
47
57
< hr />
48
58
< ul className = "Dashboard__sideList" > { listItems } </ ul >
49
59
</ aside >
60
+ < section className = "Dashboard__section" > { content } </ section >
50
61
</ main >
51
62
</ Fragment >
52
63
) ;
Original file line number Diff line number Diff line change
1
+ import React , { Component } from 'react' ;
2
+ import "./Profile.css" ;
3
+
4
+
5
+ class Profile extends Component {
6
+ state = { }
7
+ render ( ) {
8
+ return (
9
+ < div className = "Profile__container" >
10
+ Profile
11
+ </ div >
12
+ ) ;
13
+ }
14
+ }
15
+
16
+ export default Profile ;
You can’t perform that action at this time.
0 commit comments