-
Notifications
You must be signed in to change notification settings - Fork 15
/
Work.tsx
41 lines (39 loc) · 1.06 KB
/
Work.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
import React from "react";
import { Work } from "../../../../models";
import { utils } from "../../utils/Utils";
export function WorkComponent(props: {
data: Work[];
screenSize: number;
scrollLeft: number;
scrollTop: number;
}) {
const listItems = props.data.map((work: Work, index) => {
return (
<div key={index} className="slide">
<div className="half-box">
<div className="dates">
{utils.formatDate(work?.startDate)} -{" "}
{utils.formatDate(work?.endDate) || "Present"}
</div>
<div className="name">
{work?.position} at{" "}
<a href={work?.url} target="_blank" rel="noopener noreferrer">
{work?.name}
</a>
</div>
<div className="summary">{work?.summary}</div>
</div>
</div>
);
});
return (
<div>
<div>
<h1>Experience</h1>
</div>
<div className="flex-container">{listItems}</div>;
<div className="log-spike-wall"/>
<div className="log-cabin"/>
</div>
);
}