-
Notifications
You must be signed in to change notification settings - Fork 48
/
Copy pathLargePortraitCard.tsx
68 lines (65 loc) · 2.19 KB
/
LargePortraitCard.tsx
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
import styles from "./styles.module.css";
import SocialMediaContacts from "./SocialMediaContacts";
import DistinctionIcon from "@site/static/img/icons/Distinction.svg";
import Link from "@docusaurus/Link";
import React from "react";
import Avatar from "./Avatar";
export function Distinction({ person }) {
const HasPersonDisctinction = person.distinctionTitle.length !== 0;
return (
<div>
{HasPersonDisctinction ? (
<ul style={{paddingLeft: "0px"}}>
{person.distinctionTitle.map((distinction, index) => (
<li className="items-list" key={person.firstName}>
<div>
<Link href={person.distinctionLink[index]}>
<DistinctionIcon className={styles.distinction_icon} />
{distinction}
</Link>
</div>
</li>
))}
</ul>
) : null}
</div>
);
}
export default function LargePortraitCard({ person }) {
return (
<div className={styles.large_portrait_card}>
<div className={"container"}>
<div className={"row padding-none"}>
<div className="col col--12 col--offset-1">
<div className={styles.large_card_complete_name}>
{person.completeName}
</div>
<div className={styles.large_card_position}>{person.position}</div>
</div>
</div>
<div className="row">
<div className={"col col--3 col--offset-1 flex-full-centered"}>
<div className="flex-full-centered">
<div style={{ marginBottom: "var(--ifm-spacing-md)" }}>
<Avatar person={person} />
</div>
</div>
</div>
<div className="col col--6 col--offset-1">
<div className={styles.bio_container}>
<person.BioComponent />
</div>
</div>
</div>
<div className="row">
<div className="col col--3 col--offset-1">
<SocialMediaContacts person={person}></SocialMediaContacts>
</div>
<div className="col col--6 col--offset-1">
<Distinction person={person} />
</div>
</div>
</div>
</div>
);
}