Last active
October 29, 2016 22:14
-
-
Save edemkumodzi/dec20b067ab911a71073275c0ec53ee2 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React, {Component} from 'react'; | |
import {Row, Col} from 'react-bootstrap'; | |
import FontAwesome from 'react-fontawesome'; | |
class Task extends Component { | |
render() { | |
return ( | |
<div> | |
<Row> | |
<Col xs={1}> | |
<div> | |
<p style={{textAlign: 'center', fontWeight: 'bold', paddingTop: '10px'}}>{this.props.time} | |
<br/> | |
<span>{this.props.period}</span> | |
</p> | |
</div> | |
</Col> | |
<Col xs={10}> | |
<h4>{this.props.activity_title}</h4> | |
<p>{this.props.activity_description}</p> | |
</Col> | |
<Col xs={1}> | |
<Row style={{paddingTop: '10px'}}> | |
<Col xs={6}> | |
<FontAwesome name='times' /> | |
</Col> | |
<Col xs={6}> | |
<FontAwesome name='check' /> | |
</Col> | |
</Row> | |
</Col> | |
</Row> | |
</div> | |
); | |
} | |
} | |
export default Task; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment