Last active
April 3, 2016 02:27
-
-
Save Arafat245/24f4eb61558744382a580d460e86bc28 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
import React, {Component} from 'react'; | |
import ReactDOM from 'react-dom'; | |
class Profile extends Component{ | |
render(){ | |
return( | |
<div className="panel panel-default"> | |
<div className="panel-heading"> | |
<h3 className="panel-title">{this.props.userData.name}</h3> | |
</div> | |
<div className="panel-body"> | |
<div className="row"> | |
<div className="col-md-4"> | |
<img src={this.props.userData.avatar_url} alt="Name" className="thumbnail" style={{width:"50%"}} /> | |
</div> | |
<div className="col-md-8"> | |
<div className="row"> | |
<div className="col-md-12"> | |
<span className="label label-primary">{this.props.userData.public_repos} Repos</span> | |
<span className="label label-success">{this.props.userData.public_gists} Public Gists</span> | |
<span className="label label-info">{this.props.userData.followers} Followers</span> | |
<span className="label label-danger">{this.props.userData.following} Following</span> | |
</div> | |
</div> | |
<hr /> | |
<div className="row"> | |
<div className="col-md-12"> | |
<ul className="list-group"> | |
<li className="list-group-item"><strong>Username: </strong> {this.props.userData.login}</li> | |
<li className="list-group-item"><strong>Location: </strong> {this.props.userData.location}</li> | |
<li className="list-group-item"><strong>Email Address: </strong> {this.props.userData.email}</li> | |
</ul> | |
</div> | |
</div> | |
<br /> | |
<a className="btn btn-primary" target="_blank" href={this.props.userData.html_url}> Visit Profile </a> | |
</div> | |
</div> | |
</div> | |
</div> | |
) | |
} | |
} | |
export default Profile |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment