From d7c984adbbca2c1694bb4399b62f14006fd1741a Mon Sep 17 00:00:00 2001 From: Mikayla Dobson Date: Mon, 9 Oct 2023 10:00:09 -0500 Subject: [PATCH] update resume paths --- app/about/page.tsx | 10 +++++----- components/About/ResumeDownloader.tsx | 21 +++++++++++++++++++++ 2 files changed, 26 insertions(+), 5 deletions(-) create mode 100644 components/About/ResumeDownloader.tsx diff --git a/app/about/page.tsx b/app/about/page.tsx index 6dcd0f9..3b8e38e 100644 --- a/app/about/page.tsx +++ b/app/about/page.tsx @@ -6,6 +6,7 @@ import { RxChevronDown } from "react-icons/rx"; import { useState } from "react"; import { FaGithub, FaLinkedin } from "react-icons/fa"; import Card from "@/components/ui/Card"; +import ResumeDownloader from "@/components/About/ResumeDownloader"; export default function Resume() { const [skillsVisible, setSkillsVisible] = useState(true); @@ -21,11 +22,10 @@ export default function Resume() {
-
-

Download a copy for later?

- .pdf - .docx -
+
innocuous-symmetry diff --git a/components/About/ResumeDownloader.tsx b/components/About/ResumeDownloader.tsx new file mode 100644 index 0000000..670b755 --- /dev/null +++ b/components/About/ResumeDownloader.tsx @@ -0,0 +1,21 @@ +export default function ResumeDownloader({ paths, label }: { paths: string[], label?: string }) { + return ( +
+ { label &&

{label}

} + { paths.map((path, idx) => ( + + { `.${path.split('.').pop()}` } + + ))} + .pdf + .docx +
+ ) +}