@t2ca/gatsby-theme-showcase 1.0.26 → 1.0.28

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@t2ca/gatsby-theme-showcase",
3
- "version": "1.0.26",
3
+ "version": "1.0.28",
4
4
  "main": "index.js",
5
5
  "license": "MIT",
6
6
  "devDependencies": {
@@ -14,8 +14,8 @@
14
14
  "eslint-plugin-jsx-a11y": "^6.2.3",
15
15
  "eslint-plugin-prettier": "^3.1.0",
16
16
  "eslint-plugin-react": "^7.14.2",
17
- "eslint-plugin-react-hooks": "^2.0.0",
18
- "prettier": "^1.18.2"
17
+ "eslint-plugin-react-hooks": "^3.0.0",
18
+ "prettier": "^2.0.4"
19
19
  },
20
20
  "peerDependencies": {
21
21
  "gatsby": "^2.13.3",
@@ -44,10 +44,10 @@
44
44
  "gatsby-transformer-remark": "^2.6.10",
45
45
  "gatsby-transformer-sharp": "^2.2.5",
46
46
  "gatsby-transformer-yaml": "^2.2.1",
47
- "react-helmet": "6.0.0-beta.2",
47
+ "react-helmet": "^6.0.0",
48
48
  "react-icons": "^3.7.0",
49
49
  "react-spring": "^8.0.27",
50
- "remark-slug": "^5.1.2",
50
+ "remark-slug": "^6.0.0",
51
51
  "theme-ui": "^0.3.0"
52
52
  },
53
53
  "scripts": {
@@ -26,7 +26,7 @@ export default ({ setMenuOpen, styles, menuOpen, nav, name, menuList }) => {
26
26
  return (
27
27
  <Box
28
28
  p={4}
29
- sx={{ ...styles, position: `fixed`, zIndex: `100`, width: `100%`, py: 2 }}
29
+ sx={{ ...styles, position: `fixed`, zIndex: `100`, width: `100%`, py: 1 }}
30
30
  >
31
31
  <Container>
32
32
  <div
@@ -39,7 +39,7 @@ export default ({ setMenuOpen, styles, menuOpen, nav, name, menuList }) => {
39
39
  {!menuOpen ? (
40
40
  <button
41
41
  title="Toggle Menu"
42
- onClick={e => {
42
+ onClick={(e) => {
43
43
  setMenuOpen(!menuOpen)
44
44
  // if (!props.menuOpen) return props.setMenuOpen(!props.menuOpen)
45
45
  if (!nav.current) return
@@ -12,29 +12,13 @@ export default ({
12
12
  background = `MainHero`,
13
13
  color,
14
14
  minHeight = `100vh`,
15
+ svg,
15
16
  }) => {
16
17
  const titleProps = useSpring({
17
18
  from: { opacity: 0, transform: "translate3d(0, -200px, 0)" },
18
19
  to: { opacity: 1, transform: "translate3d(0, 0, 0)" },
19
20
  })
20
21
 
21
- // const data = useStaticQuery(graphql`
22
- // query {
23
- // skyLine: allFile(filter: { relativePath: { eq: "c-skyline.png" } }) {
24
- // nodes {
25
- // base
26
- // childImageSharp {
27
- // fluid(quality: 75) {
28
- // ...GatsbyImageSharpFluid_tracedSVG
29
- // }
30
- // }
31
- // }
32
- // }
33
- // }
34
- // `)
35
-
36
- // const skyLine = data.skyLine.nodes[0].childImageSharp.fluid
37
-
38
22
  return (
39
23
  <React.Fragment>
40
24
  <div
@@ -76,7 +60,7 @@ export default ({
76
60
  {headingBottom}
77
61
  </Styled.h1>
78
62
  </Flex>
79
- {/* <Flex
63
+ <Flex
80
64
  sx={{
81
65
  // px: 6,
82
66
  display: [`none`, `initial`],
@@ -86,17 +70,11 @@ export default ({
86
70
  flexBasis: `100%`,
87
71
  // flex: `2 0 0`,
88
72
  // alignSelf: `flex-end`,
89
- ".gatsby-image-wrapper": {
90
- minWidth: `200px`,
91
- },
73
+ maxHeight: `200px`,
92
74
  }}
93
75
  >
94
- <Img
95
- fluid={skyLine}
96
- alt="Skyline"
97
- sx={{ px: 4, mx: 4, width: `600px` }}
98
- />
99
- </Flex>*/}
76
+ {svg}
77
+ </Flex>
100
78
  </Flex>
101
79
  <div sx={{ width: [`5/6`, `2/3`] }}>
102
80
  <Styled.p
@@ -38,13 +38,13 @@ const Layout = ({ header, main, children }) => {
38
38
 
39
39
  <div
40
40
  ref={nav}
41
- onFocus={e => {
41
+ onFocus={(e) => {
42
42
  setMenuOpen(true)
43
43
  }}
44
- onBlur={e => {
44
+ onBlur={(e) => {
45
45
  setMenuOpen(false)
46
46
  }}
47
- onClick={e => {
47
+ onClick={(e) => {
48
48
  setMenuOpen(false)
49
49
  }}
50
50
  >
@@ -59,7 +59,7 @@ const Layout = ({ header, main, children }) => {
59
59
  <div
60
60
  sx={{
61
61
  ...main,
62
- pt: `4.75rem`,
62
+ pt: `4.25rem`,
63
63
  pb: [`3.75rem`, `initial`],
64
64
  }}
65
65
  >