Last active
April 27, 2016 22:01
-
-
Save sebjwallace/48af54f94b0fa8849312fece36d1a9a3 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
.Media { | |
display: flex; | |
align-items: stretch; | |
} | |
.Media__image { | |
margin-right: 1em; | |
} | |
.Media__body { | |
flex: 1; | |
} |
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
var MediaObject = props => | |
<div className="Media"> | |
<img className="Media__image" src={props.src}/> | |
<div className="Media__body"> | |
<p> {props.content} </p> | |
</div> | |
</div> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment