From ce86e8272a761e806d22fc5d14e0d3c92cc709c1 Mon Sep 17 00:00:00 2001 From: Ashwin Elangovan Date: Tue, 19 Dec 2023 14:33:48 +0530 Subject: [PATCH] Pushing resume changes Signed-off-by: Ashwin Elangovan --- .gitignore | 3 +++ gatsby-config.js | 1 + src/components/header/index.jsx | 43 +++++++++++++++++++++++++++++++-- src/pages/index.jsx | 1 + 4 files changed, 46 insertions(+), 2 deletions(-) create mode 100644 .gitignore diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..628b7e7 --- /dev/null +++ b/.gitignore @@ -0,0 +1,3 @@ +node_modules +public/ +.cache diff --git a/gatsby-config.js b/gatsby-config.js index f7a7a05..f54cac4 100644 --- a/gatsby-config.js +++ b/gatsby-config.js @@ -16,6 +16,7 @@ module.exports = { linkedin: `https://www.linkedin.com/in/ashwin-elangovan/`, // Optional: Resume URL resume: `https://ashwin-docs.s3.amazonaws.com/ashwin-elangovan-resume.pdf`, + fullResume: `https://ashwin-docs.s3.amazonaws.com/ashwin-elangovan-full-resume.pdf`, // Content of the About Me section about: `I am a Grad student pursuing Masters in Computer Science at Arizona State University and looking for full-time roles. I have worked as an Intern, Software Engineer, Senior Software Engineer at Freshworks for 4+ years where I explored full-stack development, object-oriented programming and microservices deployed in cloud.`, // Optional: List your projects, they must have `name` and `description`. `link` is optional. diff --git a/src/components/header/index.jsx b/src/components/header/index.jsx index 0c26670..a88c5cf 100644 --- a/src/components/header/index.jsx +++ b/src/components/header/index.jsx @@ -26,7 +26,9 @@ const classes = { item: 'inline list-none pr-8', zoom: 'transform transition-all duration-150 hover:scale-125', link: 'inline-flex items-center py-2 font-semibold text-xs text-gray-600 hover:text-black dark:text-gray-100 dark:hover:text-blue-400', - linkName: 'ml-1' + linkName: 'ml-1', + dropDown: "absolute top-full left-1/2 transform -translate-x-1/2 ml-[-10%] p-3 mt-2 border dark:border-white-300 border-gray-600 rounded shadow-md text-gray-600 dark:text-gray-300 dark:bg-slate-900 bg-white", + dropDownText: 'block px-4 py-2 text-xs hover:text-black dark:hover:text-blue-200 text-center' }; const Header = ({ metadata = {}, noBlog = false }) => { @@ -36,10 +38,25 @@ const Header = ({ metadata = {}, noBlog = false }) => { setIsDesktop(window.innerWidth >= 768); }, []); + const [isDropdownVisible, setIsDropdownVisible] = useState(false); + + const handleResumeMouseEnter = () => { + setIsDropdownVisible(true); + }; + + const handleResumeMouseLeave = () => { + setIsDropdownVisible(false); + }; + + const handleResumeClick = () => { + setIsDropdownVisible(!isDropdownVisible); + }; + const twitter = get(metadata, 'author', false); const github = get(metadata, 'github', false); const linkedin = get(metadata, 'linkedin', false); const resume = get(metadata, 'resume', false); + const fullResume = get(metadata, 'fullResume', false); return (
@@ -78,12 +95,34 @@ const Header = ({ metadata = {}, noBlog = false }) => { )} - {resume && ( + {/* {resume && (
  • Resume
  • + )} */} + {resume && ( +
  • + + Resume + + {isDropdownVisible && ( +
    + + Professional Resume + + + Full Resume + +
    + )} +
  • )} {!noBlog && (
  • diff --git a/src/pages/index.jsx b/src/pages/index.jsx index 5d275c8..7c31316 100644 --- a/src/pages/index.jsx +++ b/src/pages/index.jsx @@ -47,6 +47,7 @@ export const pageQuery = graphql` github linkedin resume + fullResume projects { name description