portfolio/src/hooks/use-resume.js

70 lines
1.1 KiB
JavaScript
Raw Normal View History

2019-08-11 21:47:22 +02:00
import { useStaticQuery, graphql } from 'gatsby'
const query = graphql`
query Resume {
contentJson {
basics {
name
label
picture {
childImageSharp {
2021-03-13 01:03:23 +01:00
gatsbyImageData(
width: 256
height: 256
placeholder: NONE
layout: FIXED
)
2019-08-11 21:47:22 +02:00
}
}
email
website
summary
profiles {
network
url
username
}
location {
city
countryCode
}
}
education {
institution
area
studyType
startDate
endDate
}
languages {
language
fluency
}
skills {
name
level
keywords
}
work {
company
position
website
startDate
endDate
summary
}
2019-11-08 23:00:47 +01:00
awards {
title
date
awarder
summary
}
2019-08-11 21:47:22 +02:00
}
}
`
export const useResume = () => {
const { contentJson } = useStaticQuery(query)
return contentJson
}