import React from 'react'; import { useStaticQuery, graphql } from 'gatsby'; import { makeStyles } from '@material-ui/core/styles'; import { Container, Typography, Grid } from '@material-ui/core'; import Section from '@components/Section'; import Technology from './Technology'; const useStyles = makeStyles(theme => ({ hide: { [theme.breakpoints.down('md')]: { display: 'none', }, }, })); function Technologies() { const classes = useStyles(); const data = useStaticQuery(graphql` { allIcons: allFile(filter: { absolutePath: { regex: "/technologies/" } }) { edges { node { relativePath childImageSharp { id fixed(height: 45, quality: 100) { ...GatsbyImageSharpFixed } } } } } } `); const findIcon = path => { const edge = data.allIcons.edges.find( img => img.node.relativePath === path ); if (edge) { return edge.node.childImageSharp.fixed; } return {}; }; return (
Technologies / tools I use
); } export default Technologies;