Created
April 1, 2015 09:33
-
-
Save alexaivars/431c66be99865c43184d 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
class Teaser extends React.Component { | |
render() { | |
var model = this.props.model; | |
return ( | |
<article className="teaser"> | |
<TeaserLink link={model.link}> | |
<Picture model={model.cover} type="square"/> | |
<div className="teaser__text"> | |
<TeaserCaption>{model.description}</TeaserCaption> | |
<div> | |
<h1>{model.description}, {model.title}</h1> | |
<p>{model.text}</p> | |
<BroadcastInfo teaser={model} /> | |
</div> | |
</div> | |
</TeaserLink> | |
</article> | |
); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment