diff --git a/src/App.jsx b/src/App.jsx index d10baea6..457e524c 100644 --- a/src/App.jsx +++ b/src/App.jsx @@ -8,6 +8,12 @@ import "./main.css"; /* * Primary portfolio application. Utilizes swiper.js (via /components/VerticalSlider.jsx) to * have a scrolling section to section effect. + * + * Managed by /main.jsx. + * Data by /main.jsx. + * + * @param projectData JSON[], data necessary to create project cards. + * @param skillData JSON, data necessary to create skill cards. */ const App = ({ projectData, skillData }) => { const slides = [ diff --git a/src/Home.jsx b/src/Home.jsx index fa5e2e76..1b39ed65 100644 --- a/src/Home.jsx +++ b/src/Home.jsx @@ -5,7 +5,7 @@ import SkillCard from "./components/SkillCard"; * "Home" page/slide of my portfolio. * * Managed by /App.jsx. - * Data by /App.jsx. + * Data by /main.jsx. * * @param image String * @param skills json, containing JSON values of String arrays. @@ -18,10 +18,10 @@ const Home = ({ image, skills }) => { <>
-
+
-
+

Hi, I'm Josh Ashton.

Junior full-stack developer.

@@ -32,7 +32,7 @@ const Home = ({ image, skills }) => {
-
+
{ return ( <>
@@ -110,3 +92,5 @@ function Job({ company, title, start, end, location, responsibilities }) { ) } + +export default Resume; diff --git a/src/components/PdfViewer.jsx b/src/components/PdfViewer.jsx deleted file mode 100644 index ad1b3ec3..00000000 --- a/src/components/PdfViewer.jsx +++ /dev/null @@ -1,49 +0,0 @@ -import React, { useState } 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(); - - const [numPages, setNumPages] = useState(0); - const [pageNumber, setPageNumber] = useState(1); - function prev() { - if (pageNumber >= 2) { - setPageNumber(pageNumber - 1); - } - } - - function next() { - if (pageNumber < numPages) { - setPageNumber(pageNumber + 1); - } - } - - return ( - <> -
- { - setNumPages(numPagesInPdf); - }} - className="pdf-document" - > - - -
- - -
-
- - ); -} diff --git a/src/components/ProjectCard.jsx b/src/components/ProjectCard.jsx index 2475e374..ffc8d0ae 100644 --- a/src/components/ProjectCard.jsx +++ b/src/components/ProjectCard.jsx @@ -7,7 +7,7 @@ import React from "react"; * project. * * Managed by /Projects.jsx. - * Data by /App.jsx. + * Data by /main.jsx > /App.jsx > /Projects.jsx. * * @param title String * @param description String diff --git a/src/components/SkillCard.jsx b/src/components/SkillCard.jsx index c91610af..7dc38ae4 100644 --- a/src/components/SkillCard.jsx +++ b/src/components/SkillCard.jsx @@ -5,6 +5,9 @@ import React, { useState, useEffect } from "react"; * * On mobile, only one card at a time may be active. The currently active card is * managed by the parent component, Home.jsx, via the isActive and onToggle props. + * + * Managed by /Home.jsx. + * Data by /main.jsx > /App.jsx > /Home.jsx * * @param header String, the skill card's header * @param symbol String, a Material Icon from https://fonts.google.com/icons?icon.size=24&icon.color=%23e8eaed diff --git a/src/main.css b/src/main.css index 9e495397..5bae4aaa 100644 --- a/src/main.css +++ b/src/main.css @@ -61,7 +61,7 @@ h1 { h2, h3 { - font-weight: 600; + font-weight: 500; letter-spacing: 2px; width: max-content; } @@ -165,7 +165,7 @@ li { } .mySwiper { - width: 100vw; + width: 100%; height: 100%; } diff --git a/src/main.jsx b/src/main.jsx index 0b6cfd8c..a6eb30de 100644 --- a/src/main.jsx +++ b/src/main.jsx @@ -6,12 +6,14 @@ import Resume from "./Resume.jsx"; import ErrorPage from "./ErrorPage.jsx"; /* - * Root React container and renderer. Also manages the router. Any new pages should be added here. + * Root React container and renderer. + * + * Contains all data and data processing, as well as routing to different pages. + * TODO: Read data in from plain text files. */ const container = document.getElementById("app"); const root = createRoot(container); -// TODO: Read data in from plain text files. const projectData = [ { title: "One AI",