File tree Expand file tree Collapse file tree 2 files changed +16
-1
lines changed Expand file tree Collapse file tree 2 files changed +16
-1
lines changed Original file line number Diff line number Diff line change 1+ import React from 'react'
2+ import { graphql , useStaticQuery } from "gatsby" ;
3+
4+
5+ export function ResumeLink ( ) {
6+ const { contentfulAsset : { url } } = useStaticQuery ( graphql `
7+ query ResumeQuery {
8+ contentfulAsset(contentful_id: {eq: "3GtL8791DLHBNCTsmkmK7S"}) {
9+ url
10+ }
11+ }
12+ ` )
13+ return < a href = { url } > Resume</ a >
14+ }
Original file line number Diff line number Diff line change 88 faItchIo
99} from '@fortawesome/free-brands-svg-icons'
1010import styled from 'styled-components'
11+ import { ResumeLink } from '../components/resume-link'
1112
1213const StyledFooter = styled . footer `
1314 margin: 35vh 0px;
@@ -50,7 +51,7 @@ export default function Footer() {
5051 data-sal-duration = "500"
5152 data-sal-easing = "ease"
5253 >
53- View my < a href = "resume.pdf" > Resume </ a >
54+ View my < ResumeLink / >
5455 </ h3 >
5556 < p
5657 data-sal = "slide-up"
You can’t perform that action at this time.
0 commit comments