Skip to content
This repository has been archived by the owner on Mar 10, 2024. It is now read-only.

Commit

Permalink
add download button on resume page
Browse files Browse the repository at this point in the history
  • Loading branch information
dpgraham4401 committed Sep 30, 2023
1 parent e39d584 commit 7fb82ee
Showing 1 changed file with 27 additions and 1 deletion.
28 changes: 27 additions & 1 deletion src/features/Resume/Resume.tsx
Original file line number Diff line number Diff line change
@@ -1,13 +1,39 @@
import { Download } from "@mui/icons-material";
import { Box, Fab } from "@mui/material";
import { CloudChallengeResume } from "components/CloudChallengeResume";
import { useTitle } from "hooks";
import React from "react";

const fabStyle = {
margin: 0,
top: "auto",
right: 20,
bottom: 20,
left: "auto",
position: "fixed",
};

/**
* This Resume is, primarily in HTML and css as part of the cloud resume challenge.
* @constructor
*/
export function Resume() {
// ToDo - Add a way to download PDF resume
useTitle("Resume");
return <CloudChallengeResume />;
return (
<Box p={2}>
<CloudChallengeResume />
<Fab
sx={fabStyle}
color="success"
variant="extended"
href={`${
import.meta.env.VITE_SITE_URL
}static/resume/DavidGrahamResume.pdf`}
>
<Download />
Download pdf
</Fab>
</Box>
);
}

0 comments on commit 7fb82ee

Please sign in to comment.