Skip to content

Commit

Permalink
Merge pull request #2 from staticfuse/0.9.1
Browse files Browse the repository at this point in the history
add shadowing examples
  • Loading branch information
justinwhall authored Oct 2, 2019
2 parents 35f1691 + 1681533 commit a2df20b
Show file tree
Hide file tree
Showing 5 changed files with 77 additions and 1 deletion.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "create-gatsby-theme-publisher",
"version": "1.0.0",
"version": "0.9.1",
"main": "index.js",
"license": "MIT",
"scripts": {
Expand Down
58 changes: 58 additions & 0 deletions src/@staticfuse/gatsby-theme-publisher/components/Logo.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
import React from "react"
import { Link, useStaticQuery, graphql } from "gatsby"
import Img from "gatsby-image"
import { Box } from "@chakra-ui/core"

const Logo = ({ data }) => {
const imageData = useStaticQuery(graphql`
{
file(absolutePath: {regex: "/src/"}, name: {eq: "site-logo"}) {
childImageSharp {
fixed(width: 150, height: 150) {
base64
tracedSVG
aspectRatio
width
height
src
srcSet
srcWebp
srcSetWebp
originalName
}
}
}
}
`)
return (
<Box position={["absolute", "absolute", "static"]} left="0" right="0" m={["auto", "auto","0"]} w="50px">
<Link
to="/"
className="h-10 overflow-hidden block"
style={{
overflow: "hidden",
height: "50px",
width: "50px",
display: "block",
padding: "5px"
}}
rel="home"
itemProp="url"
>
<Img
fixed={imageData.file.childImageSharp.fixed}
alt="Site Logo"
className="site-logo"
itemProp="logo"
style={{
display: "block",
maxWidth: "100%",
height: "100%",
}}
/>
</Link>
</Box>
)
}

export default Logo
Empty file.
18 changes: 18 additions & 0 deletions src/@staticfuse/gatsby-theme-publisher/theme/theme.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
import theme from "@staticfuse/gatsby-theme-publisher/src/theme/theme"

const publisherTheme = {
...theme,
colors: {
...theme.colors,
// text: "#2D3748",
// primary: theme.colors.blue,
// muted: "#999",
// headings: "#2D3748",
// links: theme.colors.blue,
// navLink: "#ffffff",
// headerBg: "#2D3748"
},
}


export default publisherTheme
Binary file added src/images/site-logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit a2df20b

Please sign in to comment.