Created
June 4, 2018 02:10
-
-
Save diegohaz/b3716976a0852acf5a3177dcd0a38299 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
const Card = ({ profile, imageUrl, imageAlt, title, description }) => ( | |
<div className="card"> | |
<div className="top-bar"> | |
<img className="avatar" src={profile.photoUrl} alt={profile.photoAlt} /> | |
<div className="username">{profile.username}</div> | |
</div> | |
<img className="image" src={imageUrl} alt={imageAlt} /> | |
<div className="content"> | |
<h2 className="title">{title}</h2> | |
<p className="description">{description}</p> | |
</div> | |
</div> | |
); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment