quotes

My favourite quotes. (gatsbyjs)
git clone http://git.hanabi.in/repos/quotes.git
Log | Files | Refs | README | LICENSE

commit b7f2aae8561e1f8ebc5eb4deda331f2699a0b443
parent 4ce77cc1846aa755ba15eacc4e33d23994082514
Author: Agastya Chandrakant <me@hanabi.in>
Date:   Wed, 11 Mar 2020 12:04:40 +0530

remove image

Diffstat:
Dquotes/Dear Tecrübe,/index.js | 33---------------------------------
1 file changed, 0 insertions(+), 33 deletions(-)

diff --git a/quotes/Dear Tecrübe,/index.js b/quotes/Dear Tecrübe,/index.js @@ -1,33 +0,0 @@ -import React from 'react'; -import { useStaticQuery, graphql } from 'gatsby'; -import Img from 'gatsby-image'; - -/* - * This component is built using `gatsby-image` to automatically serve optimized - * images with lazy loading and reduced file sizes. The image is loaded using a - * `useStaticQuery`, which allows us to load the image from directly within this - * component, rather than having to pass the image data down from pages. - * - * For more information, see the docs: - * - `gatsby-image`: https://gatsby.dev/gatsby-image - * - `useStaticQuery`: https://www.gatsbyjs.org/docs/use-static-query/ - */ - -export function I() { - const data = useStaticQuery(graphql` - query { - placeholderImage: file(relativePath: { eq: "gatsby-astronaut.png" }) { - childImageSharp { - fluid(maxWidth: 300) { - ...GatsbyImageSharpFluid - } - } - } - } - `); - return <Img fluid={data.placeholderImage.childImageSharp.fluid} />; -} - -export function Test({ foo }) { - return <button>{foo}</button>; -}