Skip to content

Commit

Permalink
added reactstrap, and inputs
Browse files Browse the repository at this point in the history
  • Loading branch information
Maxnelson997 committed Mar 7, 2018
1 parent 243eaa6 commit faa2c49
Showing 1 changed file with 54 additions and 1 deletion.
55 changes: 54 additions & 1 deletion src/components/madlib_form.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,61 @@
import React, { Component } from 'react';
import {
Col,
Row
} from 'reactstrap';

class MadlibForm extends Component {

handleChange = function() {
console.log('trying to handle change');
}


render() {
return <h1>Bottega Mad Libs Form Component</h1>;
return (
<Row style={{textAlign: 'center', color: 'white'}}>
<Col md="3" className="inputWrapper">
<Row>
<Col md="2">
<label className="greenLabel">1</label>
</Col>
<Col md="10">
<input placeholder='Color' type='text' onChange={this.handleChange} />
</Col>
</Row>
</Col>
<Col md="3" className="inputWrapper">
<Row>
<Col md="2">
<label className="greenLabel">1</label>
</Col>
<Col md="10">
<input placeholder='Color' type='text' onChange={this.handleChange} />
</Col>
</Row>
</Col>
<Col md="3" className="inputWrapper">
<Row>
<Col md="2">
<label className="greenLabel">1</label>
</Col>
<Col md="10">
<input placeholder='Color' type='text' onChange={this.handleChange} />
</Col>
</Row>
</Col>
<Col md="3" className="inputWrapper">
<Row>
<Col md="2">
<label className="greenLabel">1</label>
</Col>
<Col md="10">
<input placeholder='Color' type='text' onChange={this.handleChange} />
</Col>
</Row>
</Col>
</Row>
);
}
}

Expand Down

0 comments on commit faa2c49

Please sign in to comment.