Skip to content

Instantly share code, notes, and snippets.

@alexaivars
Created April 1, 2015 09:33
Show Gist options
  • Save alexaivars/431c66be99865c43184d to your computer and use it in GitHub Desktop.
Save alexaivars/431c66be99865c43184d to your computer and use it in GitHub Desktop.
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