@t2ca/gatsby-theme-showcase 1.0.10 → 1.0.12

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.10",
3
+ "version": "1.0.12",
4
4
  "main": "index.js",
5
5
  "license": "MIT",
6
6
  "devDependencies": {
@@ -23,23 +23,22 @@
23
23
  "react-dom": "^16.9.0"
24
24
  },
25
25
  "dependencies": {
26
- "@emotion/core": "^10.0.14",
27
26
  "@emotion/styled": "^10.0.17",
28
27
  "@hot-loader/react-dom": "^16.9.0",
29
28
  "@mdx-js/mdx": "^1.4.0",
30
- "@mdx-js/react": "^1.4.0",
31
- "@theme-ui/components": "^0.2.49",
32
- "@theme-ui/preset-bootstrap": "^0.2.25",
33
- "@theme-ui/preset-tailwind": "^0.2.30",
34
- "@theme-ui/sidenav": "^0.2.36",
35
- "@theme-ui/typography": "^0.2.5",
29
+ "@theme-ui/color-modes": "^0.3.0-alpha.4",
30
+ "@theme-ui/components": "^0.3.0-alpha.4",
31
+ "@theme-ui/preset-bootstrap": "^0.3.0-alpha.4",
32
+ "@theme-ui/preset-tailwind": "^0.3.0-alpha.4",
33
+ "@theme-ui/sidenav": "^0.3.0-alpha.4",
34
+ "@theme-ui/typography": "^0.3.0-alpha.4",
36
35
  "deepmerge": "^4.0.0",
37
36
  "gatsby": "^2.13.3",
38
37
  "gatsby-image": "^2.2.7",
39
38
  "gatsby-plugin-emotion": "^4.1.2",
40
39
  "gatsby-plugin-mdx": "^1.0.33",
41
40
  "gatsby-plugin-sharp": "^2.2.9",
42
- "gatsby-plugin-theme-ui": "^0.2.29",
41
+ "gatsby-plugin-theme-ui": "^0.3.0-alpha.4",
43
42
  "gatsby-remark-images": "^3.1.7",
44
43
  "gatsby-source-filesystem": "^2.1.4",
45
44
  "gatsby-transformer-json": "^2.2.2",
@@ -51,7 +50,7 @@
51
50
  "react-spring": "^8.0.27",
52
51
  "react-switch": "^5.0.0",
53
52
  "remark-slug": "^5.1.2",
54
- "theme-ui": "^0.2.5"
53
+ "theme-ui": "^0.3.0-alpha.4"
55
54
  },
56
55
  "scripts": {
57
56
  "build": "gatsby build",
@@ -1,11 +1,11 @@
1
1
  /** @jsx jsx */
2
2
  import React from "react"
3
- import { jsx, Footer, Container } from "theme-ui"
3
+ import { jsx, Flex, Container } from "theme-ui"
4
4
 
5
5
  export default ({ name }) => {
6
6
  return (
7
- <Footer>
7
+ <Flex sx={{ backgroundColor: "#1b1c1d", color: "white" }}>
8
8
  <Container sx={{ px: 3, py: 4 }}>{name}</Container>
9
- </Footer>
9
+ </Flex>
10
10
  )
11
11
  }
@@ -1,7 +1,7 @@
1
1
  /** @jsx jsx */
2
2
  import React from "react"
3
3
  import { Link } from "gatsby"
4
- import { jsx, Header, Container } from "theme-ui"
4
+ import { jsx, Container, Flex } from "theme-ui"
5
5
 
6
6
  import MenuButton from "./menu-button"
7
7
  import NavLink from "./nav-link"
@@ -9,10 +9,10 @@ import ColorModeToggle from "./color-mode-toggle"
9
9
 
10
10
  export default ({ setMenuOpen, styles, menuOpen, nav, name, menuList }) => {
11
11
  return (
12
- <Header
12
+ <Flex
13
13
  sx={{ ...styles, position: `fixed`, zIndex: `100`, width: `100%`, py: 2 }}
14
14
  >
15
- <Container sx={{ py: 0 }}>
15
+ <Container sx={{ py: 0, px: `2rem` }}>
16
16
  <div
17
17
  sx={{
18
18
  display: `flex`,
@@ -21,7 +21,6 @@ export default ({ setMenuOpen, styles, menuOpen, nav, name, menuList }) => {
21
21
  }}
22
22
  >
23
23
  <MenuButton
24
- disabled={menuOpen}
25
24
  onClick={e => {
26
25
  setMenuOpen(!menuOpen)
27
26
  // if (!props.menuOpen) return props.setMenuOpen(!props.menuOpen)
@@ -64,6 +63,6 @@ export default ({ setMenuOpen, styles, menuOpen, nav, name, menuList }) => {
64
63
  </div>
65
64
  </div>
66
65
  </Container>
67
- </Header>
66
+ </Flex>
68
67
  )
69
68
  }
@@ -1,12 +1,6 @@
1
1
  /** @jsx jsx */
2
2
  import React, { useState, useRef } from "react"
3
- import {
4
- jsx,
5
- Layout as DefaultLayout,
6
- Main,
7
- Styled,
8
- useColorMode,
9
- } from "theme-ui"
3
+ import { jsx, Styled, useColorMode } from "theme-ui"
10
4
  import { Global } from "@emotion/core"
11
5
 
12
6
  import {
@@ -53,97 +47,85 @@ const Layout = ({ header, main, location, children }) => {
53
47
 
54
48
  return (
55
49
  <Styled.root>
56
- <DefaultLayout>
57
- <Global
58
- styles={{
59
- "*": {
60
- boxSizing: `inherit`,
61
- "&:before": {
62
- boxSizing: `inherit`,
63
- },
64
- "&:after": {
65
- boxSizing: `inherit`,
66
- },
67
- },
68
- body: { margin: 0 },
69
- html: {
70
- fontSize: `16px`,
71
- boxSizing: `border-box`,
72
- WebkitFontSmoothing: `antialiased`,
73
- MozOsxFontSmoothing: `grayscale`,
74
- },
75
- ".mapElement > div": {
76
- backgroundColor: "transparent !important",
77
- },
78
- }}
79
- />
80
-
81
- <Header
82
- styles={header}
83
- menuOpen={menuOpen}
84
- setMenuOpen={setMenuOpen}
85
- nav={nav}
86
- />
50
+ <Global
51
+ styles={{
52
+ body: { margin: 0 },
53
+ html: {
54
+ fontSize: `16px`,
55
+ WebkitFontSmoothing: `antialiased`,
56
+ MozOsxFontSmoothing: `grayscale`,
57
+ },
58
+ ".mapElement > div": {
59
+ backgroundColor: "transparent !important",
60
+ },
61
+ }}
62
+ />
87
63
 
88
- <Main>
89
- <div
90
- ref={nav}
91
- onFocus={e => {
92
- setMenuOpen(true)
93
- }}
94
- onBlur={e => {
95
- setMenuOpen(false)
96
- }}
97
- onClick={e => {
98
- setMenuOpen(false)
99
- }}
100
- >
101
- <Sidebar
102
- open={menuOpen}
103
- sx={{
104
- display: [null, "none"],
105
- }}
106
- />
107
- </div>
64
+ <Header
65
+ styles={header}
66
+ menuOpen={menuOpen}
67
+ setMenuOpen={setMenuOpen}
68
+ nav={nav}
69
+ />
108
70
 
109
- <div
71
+ <div>
72
+ <div
73
+ ref={nav}
74
+ onFocus={e => {
75
+ setMenuOpen(true)
76
+ }}
77
+ onBlur={e => {
78
+ setMenuOpen(false)
79
+ }}
80
+ onClick={e => {
81
+ setMenuOpen(false)
82
+ }}
83
+ >
84
+ <Sidebar
85
+ open={menuOpen}
110
86
  sx={{
111
- ...main,
112
- pt: `4.75rem`,
87
+ display: [null, "none"],
113
88
  }}
114
- >
115
- {children}
116
- </div>
117
- </Main>
89
+ />
90
+ </div>
91
+
92
+ <div
93
+ sx={{
94
+ ...main,
95
+ pt: `4.75rem`,
96
+ }}
97
+ >
98
+ {children}
99
+ </div>
100
+ </div>
118
101
 
119
- {location && location.pathname === "/contact/" ? (
120
- <div sx={{ display: ["none", "initial"] }}>
121
- <WrapperMap
122
- googleMapURL={`https://maps.googleapis.com/maps/api/js?v=3.exp&libraries=geometry,drawing,places&key=AIzaSyBOY0sT1quks122bprrLM_0wrWLDWyVnMQ`}
123
- loadingElement={<div sx={{ height: `350px` }} />}
124
- containerElement={
125
- <div
126
- sx={{
127
- height: `350px`,
128
- backgroundColor: colorMode === "light" ? "#f8f9fa" : "#333",
129
- }}
130
- />
131
- }
132
- mapElement={
133
- <div
134
- sx={{
135
- height: `100%`,
136
- }}
137
- className="mapElement"
138
- />
139
- }
140
- />
141
- </div>
142
- ) : null}
102
+ {location && location.pathname === "/contact/" ? (
103
+ <div sx={{ display: ["none", "initial"] }}>
104
+ <WrapperMap
105
+ googleMapURL={`https://maps.googleapis.com/maps/api/js?v=3.exp&libraries=geometry,drawing,places&key=AIzaSyBOY0sT1quks122bprrLM_0wrWLDWyVnMQ`}
106
+ loadingElement={<div sx={{ height: `350px` }} />}
107
+ containerElement={
108
+ <div
109
+ sx={{
110
+ height: `350px`,
111
+ backgroundColor: colorMode === "light" ? "#f8f9fa" : "#333",
112
+ }}
113
+ />
114
+ }
115
+ mapElement={
116
+ <div
117
+ sx={{
118
+ height: `100%`,
119
+ }}
120
+ className="mapElement"
121
+ />
122
+ }
123
+ />
124
+ </div>
125
+ ) : null}
143
126
 
144
- <Footer />
145
- <MobileNavigation />
146
- </DefaultLayout>
127
+ <Footer />
128
+ <MobileNavigation />
147
129
  </Styled.root>
148
130
  )
149
131
  }
@@ -33,7 +33,7 @@ export default props => {
33
33
  border: 0,
34
34
  appearance: "none",
35
35
  ":focus": {
36
- outline: "0",
36
+ outline: "none",
37
37
  },
38
38
  "@media screen and (min-width: 768px)": {
39
39
  display: "none",
@@ -10,8 +10,8 @@ export default merge(
10
10
  {
11
11
  // breakpoints: ["768px", "992px", "1200px"],
12
12
  breakpoints: ["768px", "1024px", "1280px"],
13
- initialColorMode: `light`,
14
- useCustomProperties: true,
13
+ // initialColorMode: `light`,
14
+ // useCustomProperties: true,
15
15
  textStyles: {
16
16
  heading: {
17
17
  fontFamily: "heading",
@@ -21,6 +21,9 @@ export const query = graphql`
21
21
  query($projectID: String!) {
22
22
  projectYaml(id: { eq: $projectID }) {
23
23
  title
24
+ url
25
+ body
26
+ date
24
27
  hero {
25
28
  childImageSharp {
26
29
  fluid {