Skip to content

Commit

Permalink
Pushing resume changes
Browse files Browse the repository at this point in the history
Signed-off-by: Ashwin Elangovan <[email protected]>
  • Loading branch information
ashwin-elangovan committed Dec 19, 2023
1 parent 89a9e69 commit ce86e82
Show file tree
Hide file tree
Showing 4 changed files with 46 additions and 2 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
node_modules
public/
.cache
1 change: 1 addition & 0 deletions gatsby-config.js
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
43 changes: 41 additions & 2 deletions src/components/header/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -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 }) => {
Expand All @@ -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 (
<div className={classes.wrapper}>
Expand Down Expand Up @@ -78,12 +95,34 @@ const Header = ({ metadata = {}, noBlog = false }) => {
</a>
</li>
)}
{resume && (
{/* {resume && (
<li className={classes.item}>
<a className={`${classes.link} ${classes.zoom}`} href={resume}>
<IconResume /> <span className={classes.linkName}>Resume</span>
</a>
</li>
)} */}
{resume && (
<li
className={`${classes.item} relative`}
onMouseEnter={handleResumeMouseEnter}
onMouseLeave={handleResumeMouseLeave}
onClick={handleResumeClick}
>
<a className={`${classes.link} ${classes.zoom} cursor-pointer`}>
<IconResume /> <span className={classes.linkName}>Resume</span>
</a>
{isDropdownVisible && (
<div className={classes.dropDown}>
<a className={`${classes.dropDownText} ${classes.zoom}`} href={resume} target="_blank" rel="noreferrer">
Professional Resume
</a>
<a className={`${classes.dropDownText} ${classes.zoom}`} href={fullResume} target="_blank" rel="noreferrer">
Full Resume
</a>
</div>
)}
</li>
)}
{!noBlog && (
<li className={classes.item}>
Expand Down
1 change: 1 addition & 0 deletions src/pages/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ export const pageQuery = graphql`
github
linkedin
resume
fullResume
projects {
name
description
Expand Down

0 comments on commit ce86e82

Please sign in to comment.