add titles and grids

This commit is contained in:
Berkeley Martinez
2015-07-10 12:10:03 -07:00
parent a2583735a0
commit ef91cf3bb2
5 changed files with 29 additions and 13 deletions

View File

@ -1,6 +1,6 @@
import React, { PropTypes } from 'react'; import React, { PropTypes } from 'react';
import stampit from 'react-stampit'; import stampit from 'react-stampit';
import { Panel, Row } from 'react-bootstrap'; import { Row } from 'react-bootstrap';
// import debugFactory from 'debug'; // import debugFactory from 'debug';
import HikesMap from './Map.jsx'; import HikesMap from './Map.jsx';
@ -23,9 +23,6 @@ export default stampit(React, {
render() { render() {
return ( return (
<div> <div>
<Panel>
<h1>Hikes!</h1>
</Panel>
<Row> <Row>
{ this.props.children || this.renderMap() } { this.props.children || this.renderMap() }
</Row> </Row>

View File

@ -1,4 +1,5 @@
import React, { PropTypes } from 'react'; import React, { PropTypes } from 'react';
import { Col, Row, Panel } from 'react-bootstrap';
import stampit from 'react-stampit'; import stampit from 'react-stampit';
import Vimeo from 'react-vimeo'; import Vimeo from 'react-vimeo';
import debugFactory from 'debug'; import debugFactory from 'debug';
@ -12,7 +13,10 @@ export default stampit(React, {
params: PropTypes.object params: PropTypes.object
}, },
onError: debug, handleError: debug,
handleFinish() {
debug('loading questions');
},
render() { render() {
const { const {
@ -20,9 +24,19 @@ export default stampit(React, {
} = this.props.params; } = this.props.params;
return ( return (
<Col xs={ 12 }>
<Row>
<Panel className={ 'text-center' }>
<h2>Title</h2>
</Panel>
</Row>
<Row>
<Vimeo <Vimeo
onError={ this.onError } onError={ this.handleError }
onFinish= { this.handleFinish }
videoId={ id } /> videoId={ id } />
</Row>
</Col>
); );
} }
}); });

View File

@ -1,7 +1,7 @@
import React from 'react'; import React from 'react';
import stampit from 'react-stampit'; import stampit from 'react-stampit';
import { Link } from 'react-router'; import { Link } from 'react-router';
import { ListGroup, ListGroupItem } from 'react-bootstrap'; import { ListGroup, ListGroupItem, Panel } from 'react-bootstrap';
import videos from '../videos.json'; import videos from '../videos.json';
export default stampit(React, { export default stampit(React, {
@ -20,9 +20,14 @@ export default stampit(React, {
}); });
return ( return (
<div>
<Panel>
<h2>Welcome To Hikes!</h2>
</Panel>
<ListGroup> <ListGroup>
{ vidElements } { vidElements }
</ListGroup> </ListGroup>
</div>
); );
} }
}); });

View File

View File

@ -1,5 +1,5 @@
[{ [{
"title": "fcc computer basics 1: the 4 basic parts of a computer", "title": "FCC Computer Basics 1: the 4 basic parts of a computer",
"id": "132542064" "id": "132542064"
}, { }, {
"title": "FCC Computer Basics 2: More Computer Hardware", "title": "FCC Computer Basics 2: More Computer Hardware",