Skip to content

Commit

Permalink
Added redirection to report
Browse files Browse the repository at this point in the history
Signed-off-by: Ashwin Elangovan <[email protected]>
  • Loading branch information
ashwin-elangovan committed Jan 29, 2024
1 parent 70a832b commit 6ee10a8
Show file tree
Hide file tree
Showing 4 changed files with 29 additions and 0 deletions.
1 change: 1 addition & 0 deletions gatsby-config.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ module.exports = {
// 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`,
multilevelCacheReport: `https://ashwin-docs.s3.amazonaws.com/Global-flag.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
5 changes: 5 additions & 0 deletions gatsby-node.js
Original file line number Diff line number Diff line change
Expand Up @@ -123,4 +123,9 @@ exports.createPages = async ({ actions }) => {
path: '/full-resume',
component: require.resolve('./src/pages/full-resume.jsx'),
});

createPage({
path: '/multilevel-cache-report',
component: require.resolve('./src/pages/multilevel-cache-report.jsx'),
});
};
1 change: 1 addition & 0 deletions src/pages/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ export const pageQuery = graphql`
linkedin
resume
fullResume
multilevelCacheReport
projects {
name
description
Expand Down
22 changes: 22 additions & 0 deletions src/pages/multilevel-cache-report.jsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
import { useEffect } from 'react';
import { useStaticQuery, graphql } from 'gatsby';

export default function MyDocument() {

const data = useStaticQuery(graphql`
query {
site {
siteMetadata {
multilevelCacheReport
}
}
}
`);

const { multilevelCacheReport } = data.site.siteMetadata;
useEffect(() => {
window.location.href = multilevelCacheReport;
}, [multilevelCacheReport]);

return null;
}

0 comments on commit 6ee10a8

Please sign in to comment.