Skip to content

Commit c036f8d

Browse files
committed
improvements to teams page
1 parent a533bea commit c036f8d

File tree

2 files changed

+12
-30
lines changed

2 files changed

+12
-30
lines changed

src/pages/Team/Team.js

Lines changed: 3 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,10 @@
11
import React, { Component } from "react";
2-
3-
import PropTypes from "prop-types";
4-
// import {Card,Button} from 'react-bootstrap'
5-
6-
import "./Team.css";
72
import BoardMembersWrapper from "./BoardMembers";
83
import CoreContributorsWrapper from "./CoreContributors";
94
import ScrollToTopBtn from "../../components/ScrollToTopBtn/ScrollToTopBtn.js";
105
import axios from "axios";
11-
import $ from "jquery";
6+
import "./Team.css";
7+
128
class Team extends Component {
139
constructor(props) {
1410
super(props);
@@ -17,28 +13,17 @@ class Team extends Component {
1713
contributors: [],
1814
};
1915
}
20-
// var jsonURL = "https://s3.ap-south-1.amazonaws.com/pr-webhook-contributors-json/contributors.json";
21-
// $.getJSON(jsonURL, function(json) {
22-
// $.each(json, function() {
23-
// var contributorDiv = "";
24-
// contributorDiv += '<div class="col-xs-1 col-3xs-12 lawyer-post g-mb-50"><a href=' + this.url + '><img class="img-responsive full-width g-mb-25" src="' + this.image + '" alt=""></a> </div>';
25-
// // contributorDiv += '<p class="g-fs-10 text-uppercase center-align">' + this.name + '</p>';
26-
// // contributorDiv += '<a href=' + this.url + ' class="btn-u btn-u-lg btn-u-red btn-u-upper github-button"><i class="fa fa-github"></i> </a> </div>'
27-
// $('#contributors').append(contributorDiv);
28-
// });
29-
// });
16+
3017
componentDidMount() {
3118
var jsonURL =
3219
"https://s3.ap-south-1.amazonaws.com/pr-webhook-contributors-json/contributors.json";
3320
axios.get(jsonURL).then((res) => {
3421
this.setState({ contributors: res.data });
35-
//console.log(this.state);
3622
});
3723
window.scrollTo(0, 0);
3824
}
3925
render() {
4026
let contributors = this.state.contributors;
41-
// console.log(contributors)
4227
var contrilist = contributors.map((contri) => {
4328
return (
4429
<div class="col-xs-2 lawyer-post g-mb-50 m-4">

src/pages/Team/TeamCard.js

Lines changed: 9 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,11 @@ import React from "react";
22
import { Card } from "react-bootstrap";
33

44
const TeamCard = (props) => {
5-
//console.log(props);
65
return (
76
<Card style={{ marginBottom: "2vh", border: "0px", textAlign: "left" }}>
8-
<Card.Img style={{borderRadius: "1rem"}} src={props.member.profile} className="mx-auto" />
7+
<Card.Img
8+
style={{borderRadius: "1rem", width: "50%"}}
9+
src={props.member.profile} className="mx-auto" />
910
<Card.Body>
1011
<Card.Title className="team-card-name mt-4 mr-1">{props.member.name}</Card.Title>
1112
<Card.Text>
@@ -14,18 +15,14 @@ const TeamCard = (props) => {
1415
<Card.Text className="mt-2">{props.member.headline}</Card.Text>
1516
<Card.Text style={{marginTop: 20}}>
1617
<a
17-
class="btn btn-primary ml-0 mr-3"
18-
href={props.member.github}
19-
role="button"
20-
style={{ borderRadius: "50%", backgroundColor: " #22247A" }}>
21-
<i class="fab fa-github" aria-hidden="true"></i>
18+
class="custom-links mr-2 ml-2"
19+
href={props.member.github}>
20+
Github
2221
</a>
2322
<a
24-
class="btn btn-primary mr-3"
25-
href={props.member.linkedin}
26-
role="button"
27-
style={{ borderRadius: "50%", backgroundColor: " #22247A" }}>
28-
<i class="fab fa-linkedin" aria-hidden="true"></i>
23+
class="custom-links mr-2 ml-2"
24+
href={props.member.linkedin}>
25+
Linkedin
2926
</a>
3027
</Card.Text>
3128
</Card.Body>

0 commit comments

Comments
 (0)