started contact page, added resume page and pdf rendering, and default state for the skill cards on mobile.

This commit is contained in:
Joshua Ashton
2025-01-02 14:09:20 -07:00
parent 0efb297ead
commit 37cfab705b
16 changed files with 822 additions and 56 deletions
+22
View File
@@ -0,0 +1,22 @@
import React from "react";
import { Document, Page, pdfjs } from "react-pdf";
import "react-pdf/dist/Page/TextLayer.css";
import "react-pdf/dist/Page/AnnotationLayer.css";
export default function PdfViewer({ file }) {
pdfjs.GlobalWorkerOptions.workerSrc = new URL(
"pdfjs-dist/build/pdf.worker.min.mjs",
import.meta.url,
).toString();
return (
<>
<div className="pdf-container">
<Document file={file}>
<Page pageNumber={1} />
<Page pageNumber={2} />
</Document>
</div>
</>
);
}