- storing user information in firestore

This commit is contained in:
Amruth Pillai
2020-07-03 20:44:12 +05:30
parent 24fed8ff3f
commit 6dc2747a9b
8 changed files with 101 additions and 28 deletions
+27
View File
@@ -0,0 +1,27 @@
import React from "react";
import { useStaticQuery, graphql } from "gatsby";
import GatsbyImage from "gatsby-image";
const Logo = ({ size = "256px" }) => {
const { file } = useStaticQuery(graphql`
query {
file(relativePath: { eq: "logo.png" }) {
childImageSharp {
fluid(maxWidth: 512) {
...GatsbyImageSharpFluid
}
}
}
}
`);
return (
<GatsbyImage
className="shadow-md rounded"
style={{ width: size, height: size }}
fluid={file.childImageSharp.fluid}
/>
);
};
export default Logo;