forked from viser9/skyline
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathResumeNew.js
56 lines (50 loc) · 1.64 KB
/
ResumeNew.js
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
import React, { useState, useEffect } from "react";
import { Container, Row } from "react-bootstrap";
import Button from "react-bootstrap/Button";
import Particle from "../Particle";
import pdf from "../../Assets/../Assets/brocher.pdf";
import { AiOutlineDownload } from "react-icons/ai";
import { Document, Page, pdfjs } from "react-pdf";
import "react-pdf/dist/esm/Page/AnnotationLayer.css";
pdfjs.GlobalWorkerOptions.workerSrc = `//cdnjs.cloudflare.com/ajax/libs/pdf.js/${pdfjs.version}/pdf.worker.min.js`;
function ResumeNew() {
const [width, setWidth] = useState(1200);
useEffect(() => {
setWidth(window.innerWidth);
}, []);
return (
<div>
<Container fluid className="resume-section">
<Particle />
<Row style={{ justifyContent: "center", position: "relative" }}>
<Button
variant="primary"
href={pdf}
target="_blank"
style={{ maxWidth: "250px" }}
>
<AiOutlineDownload />
Download Full Catalog
</Button>
</Row>
<Row className="resume">
<Document file={pdf} className="d-flex justify-content-center">
<Page pageNumber={1} scale={width > 786 ? 1 : 0.6} />
</Document>
</Row>
<Row style={{ justifyContent: "center", position: "relative" }}>
<Button
variant="primary"
href={pdf}
target="_blank"
style={{ maxWidth: "250px" }}
>
<AiOutlineDownload />
Download Full Catalog
</Button>
</Row>
</Container>
</div>
);
}
export default ResumeNew;