text: import React from "react"
  import { StaticQuery, graphql } from "gatsby"
  import styled from "styled-components"
  
  function Bio() {
    return (
      <StaticQuery
        query={bioQuery}
        render={data => {
          const { author } = data.site.siteMetadata
          return (
            <Container>
              <p>
                Gracias por visitar mi blog. Soy <strong>{author}</strong> y trato de escribir sobre 
                React, React Native y otros temas IT. Bienvenido/a.
              </p>
            </Container>
          )
        }}
      />
    )
  }
  
  const bioQuery = graphql`
    query BioQuery {
      avatar: file(absolutePath: { regex: "/profile-pic.jpg/" }) {
        childImageSharp {
          fixed(width: 50, height: 50) {
            ...GatsbyImageSharpFixed
          }
        }
      }
      site {
        siteMetadata {
          author
          social {
            twitter
          }
        }
      }
    }
  `
  
  const Container = styled.div`
    display: flex;
  `
  
  export default Bio
  