-
Notifications
You must be signed in to change notification settings - Fork 102
Expand file tree
/
Copy pathMentorList.js
More file actions
73 lines (68 loc) · 2.14 KB
/
MentorList.js
File metadata and controls
73 lines (68 loc) · 2.14 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
import React, { Component } from "react";
import { Link } from "react-router-dom";
import Heart from "./Heart";
import { FaTwitter, FaGithub, FaLinkedinIn } from "react-icons/fa";
import ReactImageFallback from "react-image-fallback";
import loader from '../assets/loader.gif';
import mentorImage from '../assets/mentor-default.svg';
class MentorList extends Component {
render() {
const { data } = this.props;
const techs = data.technology.split(",").filter(tech => tech.length !== 0).sort();
return (
<div className="col-sm-4 ">
<div className="card">
<Link
to={{ pathname: `/mentor/profile/${this.props.data.id}`, state: { id: this.props.data } }}
className="card"
>
<div className="text-center">
<ReactImageFallback
src={this.props.data.image}
fallbackImage={mentorImage}
initialImage={loader}
alt={this.props.data.name}
className="img-thumbnail img-fluid rounded-circle thumbnail" />
</div>
<div className="content-card">
<h3>{this.props.data.name}</h3>
{techs.map((tech, i) => (
<div key={i} className="tags">
<span>{tech}</span>
</div>
))}
<div className="bottom-info">
{}
<Heart {...this.props.data} />
</div>
</div>
</Link>
<div className="social-media">
<a
href="http://twitter.com"
target="_blank"
rel="noopener noreferrer"
>
<FaTwitter />
</a>
<a
href="http://github.com"
target="_blank"
rel="noopener noreferrer"
>
<FaGithub />
</a>
<a
href="http://linkedin.com"
target="_blank"
rel="noopener noreferrer"
>
<FaLinkedinIn />
</a>
</div>
</div>
</div>
);
}
}
export default MentorList;