Skip to content

Commit 1b4d1d8

Browse files
committed
Pretty up example a bit
1 parent 4d4419e commit 1b4d1d8

File tree

4 files changed

+22
-4
lines changed

4 files changed

+22
-4
lines changed

examples/examples.cjsx

+3-2
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,15 @@
11
_ = require 'underscore'
22
React = require('react')
33
ComponentGallery = require '../src/index'
4+
{Container} = require 'react-responsive-grid'
45

56
module.exports = React.createClass
67
getInitialState: ->
78
targetWidth: 200
89
margin: 10
910

1011
render: ->
11-
<div style={"maxWidth":'1200px', margin:'0 auto'}>
12+
<Container style={"maxWidth":'1100px'}>
1213
<h1>react-component-gallery</h1>
1314
<a href="https://github.com/KyleAMathews/react-component-gallery">Code on Github</a>
1415
<p>Create a perfect component gallery every time whatever the size of the
@@ -98,7 +99,7 @@ module.exports = React.createClass
9899
<img src="https://storage.googleapis.com/relaterocket-logos/gopro.com-black@2x.png" />
99100
</ComponentGallery>
100101

101-
</div>
102+
</Container>
102103

103104
onWidthChange: (e) ->
104105
@setState targetWidth: @refs.slider.getDOMNode().value

examples/index.html

+13-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
<html>
22
<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'>
45
<style>
56
html {
67
box-sizing: border-box;
@@ -12,6 +13,17 @@
1213
img {
1314
width: 100%;
1415
}
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+
}
1527
</style>
1628
</head>
1729
<body>

index.html

+5-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
<html>
22
<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'>
45
<style>
56
html {
67
box-sizing: border-box;
@@ -12,6 +13,9 @@
1213
img {
1314
width: 100%;
1415
}
16+
code {
17+
font-family: "Inconsolata" monospace sans-serif;
18+
}
1519
</style>
1620
</head>
1721
<body>

package.json

+1
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
"mocha": "^2.1.0",
2222
"mocha-unfunk-reporter": "^0.4.0",
2323
"react-hot-loader": "^1.1.1",
24+
"react-responsive-grid": "0.0.4",
2425
"style-loader": "^0.8.2",
2526
"underscore": "^1.7.0",
2627
"webpack": "^1.4.15",

0 commit comments

Comments
 (0)