1
1
import React , { Component , PropTypes } from 'react' ;
2
- import { Grid , Row , Col , } from 'react-bootstrap' ;
3
2
import { SmartLink } from '../components' ;
4
3
import '../styles/main.scss' ;
5
4
@@ -10,22 +9,51 @@ export default class CoreLayout extends Component {
10
9
}
11
10
12
11
render ( ) {
13
- return (
14
- < Grid className = "some-class" >
15
- < Row >
16
- < h2 > HELLO</ h2 >
17
- </ Row >
18
- < Row >
19
- < Col md = { 1 } xs = { 4 } >
20
- < ul className = "nav nav-pills nav-stacked" >
21
- < SmartLink url = '/counter' title = 'Counter' />
22
- < SmartLink url = '/autoCounter' title = 'AutoCounter' />
23
- < SmartLink url = '/movies' title = 'Movies page' />
12
+ const navTop = ( ) => (
13
+ < nav className = "navbar navbar-inverse navbar-fixed-top" >
14
+ < div className = "container-fluid" >
15
+ < div className = "navbar-header" >
16
+ < button type = "button" className = "navbar-toggle collapsed" data-toggle = "collapse" data-target = "#navbar" aria-expanded = "false" aria-controls = "navbar" >
17
+ < span className = "sr-only" > Toggle navigation</ span >
18
+ < span className = "icon-bar" > </ span >
19
+ < span className = "icon-bar" > </ span >
20
+ < span className = "icon-bar" > </ span >
21
+ </ button >
22
+ < a className = "navbar-brand" href = "#" > React-Redux-Router-CRUD-boilerplate</ a >
23
+ </ div >
24
+ < div id = "navbar" className = "navbar-collapse collapse" >
25
+ < ul className = "nav navbar-nav navbar-right" >
26
+ < li > < a href = "#" > Dashboard</ a > </ li >
27
+ < li > < a href = "#" > Settings</ a > </ li >
28
+ < li > < a href = "#" > Profile</ a > </ li >
29
+ < li > < a href = "#" > Help</ a > </ li >
24
30
</ ul >
25
- </ Col >
26
- < Col md = { 11 } xs = { 8 } > { this . props . children } </ Col >
27
- </ Row >
28
- </ Grid >
31
+ < form className = "navbar-form navbar-right" >
32
+ < input type = "text" className = "form-control" placeholder = "Search..." />
33
+ </ form >
34
+ </ div >
35
+ </ div >
36
+ </ nav >
37
+ ) ;
38
+
39
+ return (
40
+ < div >
41
+ { navTop ( ) }
42
+ < div className = "container-fluid" >
43
+ < div className = "row" >
44
+ < div className = "col-sm-3 col-md-2 sidebar" >
45
+ < ul className = "nav nav-sidebar" >
46
+ < SmartLink url = '/counter' title = 'Counter' />
47
+ < SmartLink url = '/autoCounter' title = 'AutoCounter' />
48
+ < SmartLink url = '/movies' title = 'Movies page' />
49
+ </ ul >
50
+ </ div >
51
+ < div className = "col-sm-9 col-sm-offset-3 col-md-10 col-md-offset-2 main" >
52
+ { this . props . children }
53
+ </ div >
54
+ </ div >
55
+ </ div >
56
+ </ div >
29
57
) ;
30
58
}
31
59
}
0 commit comments