Created
April 26, 2016 23:08
-
-
Save hai5nguy/8891c8d564d63b7aecd2a845e0204264 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
var React = require('react'); | |
var Link = require('react-router').Link; | |
module.exports = React.createClass({ | |
render: function () { | |
var details = this.props.details; | |
return ( | |
<div className="col-md-4 col-sm-6 col-xs-6"> | |
<div className="panel"> | |
<span class="upcomingCategory"><Link to="/about">{details.name}</Link></span> | |
<img src={details.imageUrl} className="img-responsive upcomingImage" alt="Class Title - Category" /> | |
<span className="upcomingTitle truncate col-md-12 col-sm-12 col-xs-12">{details.name}</span> | |
<div className="panel-body text-right"> | |
<div className="row"> | |
<div className="text-left col-md-4 col-sm-6 hidden-xs"> | |
<h2><span className="glyphicon glyphicon-ok"></span></h2> | |
<p>RSVP</p> | |
</div> | |
<div class="col-md-8 col-sm-6"> | |
<h5>details.date</h5> | |
<p class="small">details.location</p> | |
<span class="small badge glyphicon glyphicon-user">14</span> | |
</div> | |
</div> | |
</div> | |
</div> | |
</div> | |
) | |
} | |
}); | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment