File tree 4 files changed +22
-4
lines changed
4 files changed +22
-4
lines changed Original file line number Diff line number Diff line change 1
1
_ = require ' underscore'
2
2
React = require (' react' )
3
3
ComponentGallery = require ' ../src/index'
4
+ {Container } = require ' react-responsive-grid'
4
5
5
6
module .exports = React .createClass
6
7
getInitialState : ->
7
8
targetWidth : 200
8
9
margin : 10
9
10
10
11
render : ->
11
- <div style = {" maxWidth" : ' 1200px ' , margin : ' 0 auto ' }>
12
+ <Container style = {" maxWidth" : ' 1100px ' }>
12
13
<h1 >react- component- gallery</h1 >
13
14
<a href = " https://github.com/KyleAMathews/react-component-gallery" >Code on Github</a >
14
15
<p >Create a perfect component gallery every time whatever the size of the
@@ -98,7 +99,7 @@ module.exports = React.createClass
98
99
<img src = " https://storage.googleapis.com/relaterocket-logos/gopro.com-black@2x.png" />
99
100
</ComponentGallery >
100
101
101
- </div >
102
+ </Container >
102
103
103
104
onWidthChange : (e ) ->
104
105
@ setState targetWidth : @refs .slider .getDOMNode ().value
Original file line number Diff line number Diff line change 1
1
< html >
2
2
< head >
3
- < title > Example</ title >
3
+ < title > React Component Gallery</ title >
4
+ < link href ='http://fonts.googleapis.com/css?family=Lato|Inconsolata ' rel ='stylesheet ' type ='text/css '>
4
5
< style >
5
6
html {
6
7
box-sizing : border-box;
12
13
img {
13
14
width : 100% ;
14
15
}
16
+ code {
17
+ font-family : "Inconsolata" monospace sans-serif;
18
+ }
19
+ body {
20
+ font-family : "Lato" sans-serif;
21
+ line-height : 1.4 ;
22
+ color : # 4A4A4A ;
23
+ }
24
+ h1 , h2 {
25
+ color : # 1f1f1f ;
26
+ }
15
27
</ style >
16
28
</ head >
17
29
< body >
Original file line number Diff line number Diff line change 1
1
< html >
2
2
< head >
3
- < title > Example</ title >
3
+ < title > React Component Gallery</ title >
4
+ < link href ='http://fonts.googleapis.com/css?family=Inconsolata ' rel ='stylesheet ' type ='text/css '>
4
5
< style >
5
6
html {
6
7
box-sizing : border-box;
12
13
img {
13
14
width : 100% ;
14
15
}
16
+ code {
17
+ font-family : "Inconsolata" monospace sans-serif;
18
+ }
15
19
</ style >
16
20
</ head >
17
21
< body >
Original file line number Diff line number Diff line change 21
21
"mocha" : " ^2.1.0" ,
22
22
"mocha-unfunk-reporter" : " ^0.4.0" ,
23
23
"react-hot-loader" : " ^1.1.1" ,
24
+ "react-responsive-grid" : " 0.0.4" ,
24
25
"style-loader" : " ^0.8.2" ,
25
26
"underscore" : " ^1.7.0" ,
26
27
"webpack" : " ^1.4.15" ,
You can’t perform that action at this time.
0 commit comments