-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCardData.js
More file actions
39 lines (37 loc) · 1.07 KB
/
CardData.js
File metadata and controls
39 lines (37 loc) · 1.07 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
import React from "react";
import { Card, CardBody, CardTitle, CardText, CardFooter } from "reactstrap";
import { FaMapMarkedAlt, FaEnvelope } from "react-icons/fa";
const CardData = ({ details }) => {
return (
<Card>
<CardBody className="text-center">
<img
height="150"
width="150"
className="rounded-circle img-thumbnail border-danger"
src={details.picture?.large}
alt="UserPhoto"
/>
<CardTitle className="text-primary ">
<h1>
<spam className="pr-2">{details.name?.title}</spam>
<spam>{details.name?.first}</spam>
<spam>{details.name?.last}</spam>
</h1>
</CardTitle>
<CardText>
<FaMapMarkedAlt />
{details.location?.city}
</CardText>
<CardFooter>
<h6>
<FaEnvelope />
{details.email}
</h6>
<h6>Age:{details.dob?.age}</h6>
</CardFooter>
</CardBody>
</Card>
);
};
export default CardData;