bravo68web-portfolio-nextjs/components/resume.jsx

31 lines
541 B
React
Raw Permalink Normal View History

import React, { useEffect, useState, useRef } from "react";
2022-03-31 07:50:45 +00:00
import { ResumeStyle } from "./resume.style";
function Resume() {
2023-06-12 08:03:13 +00:00
const viewer = useRef(null);
2023-06-12 08:03:13 +00:00
useEffect(() => {
import("@pdftron/webviewer").then(() => {
WebViewer(
{
path: "webviewer/lib",
mobileRedirect: true,
initialDoc: "/resume.pdf",
},
viewer.current
2023-06-13 05:07:09 +00:00
)
2023-06-12 08:03:13 +00:00
});
}, []);
return (
<ResumeStyle>
<div
className="webviewer"
ref={viewer}
style={{ height: "100vh" }}
></div>
</ResumeStyle>
);
2022-03-31 07:50:45 +00:00
}
export default Resume;