@t2ca/gatsby-theme-showcase 1.0.16 → 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.16",
3
+ "version": "1.0.17",
4
4
  "main": "index.js",
5
5
  "license": "MIT",
6
6
  "devDependencies": {
@@ -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
+ )
@@ -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
  )
@@ -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%`,