@t2ca/gatsby-theme-showcase 1.0.15 → 1.0.17

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.15",
3
+ "version": "1.0.17",
4
4
  "main": "index.js",
5
5
  "license": "MIT",
6
6
  "devDependencies": {
@@ -26,18 +26,18 @@
26
26
  "@emotion/styled": "^10.0.17",
27
27
  "@hot-loader/react-dom": "^16.9.0",
28
28
  "@mdx-js/mdx": "^1.4.0",
29
- "@theme-ui/components": "^0.3.0-alpha.5",
30
- "@theme-ui/preset-bootstrap": "^0.3.0-alpha.5",
31
- "@theme-ui/preset-tailwind": "^0.3.0-alpha.5",
32
- "@theme-ui/sidenav": "^0.3.0-alpha.5",
33
- "@theme-ui/typography": "^0.3.0-alpha.5",
29
+ "@theme-ui/components": "^0.3.0-alpha.6",
30
+ "@theme-ui/preset-bootstrap": "^0.3.0-alpha.6",
31
+ "@theme-ui/preset-tailwind": "^0.3.0-alpha.6",
32
+ "@theme-ui/sidenav": "^0.3.0-alpha.6",
33
+ "@theme-ui/typography": "^0.3.0-alpha.6",
34
34
  "deepmerge": "^4.0.0",
35
35
  "gatsby": "^2.13.3",
36
36
  "gatsby-image": "^2.2.7",
37
37
  "gatsby-plugin-emotion": "^4.1.2",
38
38
  "gatsby-plugin-mdx": "^1.0.33",
39
39
  "gatsby-plugin-sharp": "^2.2.9",
40
- "gatsby-plugin-theme-ui": "^0.3.0-alpha.5",
40
+ "gatsby-plugin-theme-ui": "^0.3.0-alpha.6",
41
41
  "gatsby-remark-images": "^3.1.7",
42
42
  "gatsby-source-filesystem": "^2.1.4",
43
43
  "gatsby-transformer-json": "^2.2.2",
@@ -49,7 +49,7 @@
49
49
  "react-spring": "^8.0.27",
50
50
  "react-switch": "^5.0.0",
51
51
  "remark-slug": "^5.1.2",
52
- "theme-ui": "^0.3.0-alpha.5"
52
+ "theme-ui": "^0.3.0-alpha.6"
53
53
  },
54
54
  "scripts": {
55
55
  "build": "gatsby build",
@@ -1,23 +1,41 @@
1
1
  /** @jsx jsx */
2
2
  import React from "react"
3
3
  import { jsx } from "theme-ui"
4
- import { FaExclamationTriangle } from "react-icons/fa"
4
+ import { FaExclamationTriangle, FaCheckCircle } from "react-icons/fa"
5
5
 
6
- export default props => (
7
- <div sx={{ variant: `alerts.error` }}>
8
- <FaExclamationTriangle
9
- size={40}
10
- sx={{
11
- flex: `0 0 auto`,
12
- width: `auto`,
13
- lineHeight: 1,
14
- verticalAlign: `middle`,
15
- fontSize: `3rem`,
16
- }}
17
- />
18
- <div sx={{ pl: `1rem`, margin: `.5rem` }}>
19
- <span sx={{ fontWeight: `extrabold` }}>Sorry, there was a problem.</span>
20
- {props.children}
6
+ export default ({ type, message, children }) =>
7
+ type === "error" ? (
8
+ <div sx={{ variant: `alerts.${type}` }}>
9
+ <FaExclamationTriangle
10
+ size={40}
11
+ sx={{
12
+ flex: `0 0 auto`,
13
+ width: `auto`,
14
+ lineHeight: 1,
15
+ verticalAlign: `middle`,
16
+ fontSize: `3rem`,
17
+ }}
18
+ />
19
+ <div sx={{ pl: `1rem`, margin: `.5rem` }}>
20
+ <span sx={{ fontWeight: `extrabold` }}>{message}</span>
21
+ {children}
22
+ </div>
21
23
  </div>
22
- </div>
23
- )
24
+ ) : (
25
+ <div sx={{ variant: `alerts.${type}` }}>
26
+ <FaCheckCircle
27
+ size={40}
28
+ sx={{
29
+ flex: `0 0 auto`,
30
+ width: `auto`,
31
+ lineHeight: 1,
32
+ verticalAlign: `middle`,
33
+ fontSize: `3rem`,
34
+ }}
35
+ />
36
+ <div sx={{ pl: `1rem`, margin: `.5rem` }}>
37
+ <span sx={{ fontWeight: `extrabold` }}>{message}</span>
38
+ {children}
39
+ </div>
40
+ </div>
41
+ )
@@ -1,11 +1,11 @@
1
1
  /** @jsx jsx */
2
2
  import React from "react"
3
- import { jsx, Flex, Container } from "theme-ui"
3
+ import { jsx, Box, Container } from "theme-ui"
4
4
 
5
5
  export default ({ name }) => {
6
6
  return (
7
- <Flex sx={{ backgroundColor: "#1b1c1d", color: "white" }}>
8
- <Container sx={{ px: 3, py: 4 }}>{name}</Container>
9
- </Flex>
7
+ <Box bg="#1b1c1d" sx={{ color: `white` }} p={4}>
8
+ <Container>{name}</Container>
9
+ </Box>
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, Container, Flex } from "theme-ui"
4
+ import { jsx, Container, Box } from "theme-ui"
5
5
 
6
6
  import MenuButton from "./menu-button"
7
7
  import NavLink from "./nav-link"
@@ -9,10 +9,11 @@ import ColorModeToggle from "./color-mode-toggle"
9
9
 
10
10
  export default ({ setMenuOpen, styles, menuOpen, nav, name, menuList }) => {
11
11
  return (
12
- <Flex
12
+ <Box
13
+ p={4}
13
14
  sx={{ ...styles, position: `fixed`, zIndex: `100`, width: `100%`, py: 2 }}
14
15
  >
15
- <Container sx={{ py: 0, px: 4 }}>
16
+ <Container>
16
17
  <div
17
18
  sx={{
18
19
  display: `flex`,
@@ -63,6 +64,6 @@ export default ({ setMenuOpen, styles, menuOpen, nav, name, menuList }) => {
63
64
  </div>
64
65
  </div>
65
66
  </Container>
66
- </Flex>
67
+ </Box>
67
68
  )
68
69
  }
@@ -92,12 +92,14 @@ const Layout = ({ header, main, location, children }) => {
92
92
  sx={{
93
93
  ...main,
94
94
  pt: `4.75rem`,
95
+ pb: [`3.75rem`, `initial`],
95
96
  }}
96
97
  >
97
98
  {children}
99
+ <Footer />
98
100
  </div>
99
101
 
100
- {location && location.pathname === "/contact/" ? (
102
+ {/* {location && location.pathname === "/contact/" ? (
101
103
  <div sx={{ display: ["none", "initial"] }}>
102
104
  <WrapperMap
103
105
  googleMapURL={`https://maps.googleapis.com/maps/api/js?v=3.exp&libraries=geometry,drawing,places&key=AIzaSyBOY0sT1quks122bprrLM_0wrWLDWyVnMQ`}
@@ -120,9 +122,8 @@ const Layout = ({ header, main, location, children }) => {
120
122
  }
121
123
  />
122
124
  </div>
123
- ) : null}
125
+ ) : null}*/}
124
126
 
125
- <Footer />
126
127
  <MobileNavigation />
127
128
  </Styled.root>
128
129
  )
@@ -1,13 +1,11 @@
1
1
  /** @jsx jsx */
2
2
  import React from "react"
3
- import { jsx, useColorMode } from "theme-ui"
3
+ import { jsx } from "theme-ui"
4
4
  import { Link } from "gatsby"
5
5
 
6
6
  import Icon from "./icon"
7
7
 
8
- const MobileNavItem = ({ linkTo, label, icon, isDark }) => {
9
- const [colorMode] = useColorMode()
10
-
8
+ const MobileNavItem = ({ linkTo, label, icon }) => {
11
9
  const linkStyles = {
12
10
  borderRadius: 1,
13
11
  color: `text`,
@@ -145,7 +145,23 @@ export default merge(
145
145
  }, 0 0 0 0 transparent`,
146
146
  opacity: 0.7,
147
147
  color: `red.8`,
148
- px: `1rem`,
148
+ p: 3,
149
+ my: 3,
150
+ fontWeight: `medium`,
151
+ display: `flex`,
152
+ width: `100%`,
153
+ alignItems: `center`,
154
+ },
155
+ success: {
156
+ borderRadius: `sm`,
157
+ bg: `green.1`,
158
+ // border: `1px solid ${tailwind.colors.green[8]}`,
159
+ boxShadow: t =>
160
+ `inset 0 0 0 1px ${t.colors.green[8]}, 0 0 0 0 transparent`,
161
+ opacity: 0.7,
162
+ color: `green.8`,
163
+ p: 3,
164
+ my: 3,
149
165
  fontWeight: `medium`,
150
166
  display: `flex`,
151
167
  width: `100%`,
@@ -1,8 +1,8 @@
1
1
  export default {
2
2
  Container: {
3
- // py: 3,
4
- // width: ["100%", "90%"],
5
- // maxWidth: "1168px",
3
+ py: 3,
4
+ width: ["100%", "90%"],
5
+ maxWidth: "1168px",
6
6
  },
7
7
  Header: {
8
8
  primary: {