@t2ca/gatsby-theme-showcase 1.0.19 → 1.0.21

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/gatsby-config.js CHANGED
@@ -44,6 +44,7 @@ module.exports = ({ contentPath = "data", basePath = "/" }) => ({
44
44
  // typeName: "Event",
45
45
  // },
46
46
  // },
47
+ `gatsby-plugin-react-helmet`,
47
48
  `gatsby-plugin-emotion`,
48
49
  `gatsby-plugin-theme-ui`,
49
50
  {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@t2ca/gatsby-theme-showcase",
3
- "version": "1.0.19",
3
+ "version": "1.0.21",
4
4
  "main": "index.js",
5
5
  "license": "MIT",
6
6
  "devDependencies": {
@@ -24,7 +24,6 @@
24
24
  },
25
25
  "dependencies": {
26
26
  "@emotion/styled": "^10.0.17",
27
- "@hot-loader/react-dom": "^16.9.0",
28
27
  "@mdx-js/mdx": "^1.4.0",
29
28
  "@theme-ui/components": "^0.3.0",
30
29
  "@theme-ui/preset-bootstrap": "^0.3.0",
@@ -36,18 +35,18 @@
36
35
  "gatsby-image": "^2.2.7",
37
36
  "gatsby-plugin-emotion": "^4.1.2",
38
37
  "gatsby-plugin-mdx": "^1.0.33",
38
+ "gatsby-plugin-react-helmet": "^3.1.21",
39
39
  "gatsby-plugin-sharp": "^2.2.9",
40
- "gatsby-plugin-theme-ui": "^0.3.0-alpha.6",
40
+ "gatsby-plugin-theme-ui": "^0.3.0",
41
41
  "gatsby-remark-images": "^3.1.7",
42
42
  "gatsby-source-filesystem": "^2.1.4",
43
43
  "gatsby-transformer-json": "^2.2.2",
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-google-maps": "^9.4.5",
47
+ "react-helmet": "6.0.0-beta.2",
48
48
  "react-icons": "^3.7.0",
49
49
  "react-spring": "^8.0.27",
50
- "react-switch": "^5.0.0",
51
50
  "remark-slug": "^5.1.2",
52
51
  "theme-ui": "^0.3.0"
53
52
  },
@@ -1,66 +1,34 @@
1
1
  /** @jsx jsx */
2
2
  import React, { useState, useRef } from "react"
3
- import { jsx, Styled, useColorMode } from "theme-ui"
3
+ import { jsx, Styled } from "theme-ui"
4
4
  import { Global } from "@emotion/core"
5
-
6
- import {
7
- withGoogleMap,
8
- withScriptjs,
9
- GoogleMap,
10
- Marker,
11
- } from "react-google-maps"
12
-
13
- import jsonMapStyles from "./map-styles"
14
- import jsonMapStylesDark from "./map-styles-dark"
5
+ import { Helmet } from "react-helmet"
15
6
 
16
7
  import MobileNavigation from "./navigation-mobile"
17
8
  import Header from "./header"
18
9
  import Footer from "./footer"
19
10
  import Sidebar from "./sidebar"
20
11
 
21
- const Layout = ({ header, main, location, children }) => {
12
+ const Layout = ({ header, main, children }) => {
22
13
  const [menuOpen, setMenuOpen] = useState(false)
23
14
  const nav = useRef(null)
24
15
 
25
- const [colorMode] = useColorMode()
26
-
27
- const Map = () => {
28
- return (
29
- <GoogleMap
30
- defaultZoom={10}
31
- defaultCenter={{ lat: 51.0486, lng: -114.0708 }}
32
- defaultOptions={{
33
- styles: colorMode === "light" ? jsonMapStyles : jsonMapStylesDark,
34
- disableDefaultUI: true,
35
- zoomControl: false,
36
- scaleControl: false,
37
- scrollwheel: false,
38
- disableDoubleClickZoom: true,
39
- }}
40
- >
41
- <Marker position={{ lat: 51.0486, lng: -114.0708 }} />
42
- </GoogleMap>
43
- )
44
- }
45
-
46
- const WrapperMap = withScriptjs(withGoogleMap(Map))
47
-
48
16
  return (
49
17
  <Styled.root>
50
18
  <Global
51
19
  styles={{
52
- body: { margin: 0 },
53
20
  html: {
54
21
  fontSize: `16px`,
55
22
  WebkitFontSmoothing: `antialiased`,
56
23
  MozOsxFontSmoothing: `grayscale`,
57
24
  },
58
- ".mapElement > div": {
59
- backgroundColor: "transparent !important",
60
- },
61
25
  }}
62
26
  />
63
27
 
28
+ <Helmet>
29
+ <html lang="en" />
30
+ </Helmet>
31
+
64
32
  <Header
65
33
  styles={header}
66
34
  menuOpen={menuOpen}
@@ -99,31 +67,6 @@ const Layout = ({ header, main, location, children }) => {
99
67
  <Footer />
100
68
  </div>
101
69
 
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}*/}
126
-
127
70
  <MobileNavigation />
128
71
  </Styled.root>
129
72
  )
@@ -3,64 +3,6 @@ import React from "react"
3
3
  import { useStaticQuery, graphql } from "gatsby"
4
4
  import { jsx } from "theme-ui"
5
5
  import Img from "gatsby-image"
6
- import styled from "@emotion/styled"
7
-
8
- // import { colors, space, mediaQueries } from "../../utils/presets"
9
- // import { Name } from "./homepage-section"
10
-
11
- // const Section = styled(`section`)`
12
- // overflow: hidden;
13
- // padding: ${space[5]} 0;
14
- // width: 100%;
15
- // border-bottom: 1px solid ${colors.ui.border.subtle};
16
-
17
- // ${mediaQueries.xl} {
18
- // margin: -1px 0;
19
- // padding: ${space[5]} 0;
20
- // }
21
-
22
- // ${mediaQueries.xxl} {
23
- // padding: ${space[7]} 0;
24
- // }
25
- // `
26
-
27
- // const Title = styled(`header`)`
28
- // padding-right: ${space[6]};
29
- // padding-left: ${space[6]};
30
- // ${mediaQueries.md} {
31
- // max-width: 30rem;
32
- // }
33
-
34
- // ${mediaQueries.lg} {
35
- // margin-left: ${space[9]};
36
- // }
37
-
38
- // ${mediaQueries.xl} {
39
- // padding-right: 5%;
40
- // padding-left: 5%;
41
- // }
42
-
43
- // ${mediaQueries.xxl} {
44
- // padding-right: 8%;
45
- // padding-left: 8%;
46
- // }
47
- // `
48
-
49
- // const LogoGroup = styled(`div`)`
50
- // position: relative;
51
- // display: grid;
52
- // grid-auto-flow: column;
53
- // grid-auto-columns: auto;
54
- // grid-gap: 16;
55
- // align-items: center;
56
- // overflow-x: scroll;
57
- // padding-left: 3;
58
- // padding-bottom: 1;
59
-
60
- // &::-webkit-scrollbar {
61
- // display: none;
62
- // }
63
- // `
64
6
 
65
7
  const LogoBanner = () => {
66
8
  const data = useStaticQuery(graphql`
@@ -1,32 +0,0 @@
1
- const jsonMapStylesDark = [
2
- {
3
- stylers: [
4
- {
5
- hue: "#ff1a00",
6
- },
7
- {
8
- invert_lightness: true,
9
- },
10
- {
11
- saturation: -100,
12
- },
13
- {
14
- lightness: 33,
15
- },
16
- {
17
- gamma: 0.5,
18
- },
19
- ],
20
- },
21
- {
22
- featureType: "water",
23
- elementType: "geometry",
24
- stylers: [
25
- {
26
- color: "#2D333C",
27
- },
28
- ],
29
- },
30
- ]
31
-
32
- export default jsonMapStylesDark
@@ -1,136 +0,0 @@
1
- const jsonMapStyles = [
2
- {
3
- featureType: "administrative",
4
- elementType: "all",
5
- stylers: [
6
- {
7
- saturation: "-100",
8
- },
9
- ],
10
- },
11
- {
12
- featureType: "administrative.province",
13
- elementType: "all",
14
- stylers: [
15
- {
16
- visibility: "off",
17
- },
18
- ],
19
- },
20
- {
21
- featureType: "landscape",
22
- elementType: "all",
23
- stylers: [
24
- {
25
- saturation: -100,
26
- },
27
- {
28
- lightness: 65,
29
- },
30
- {
31
- visibility: "on",
32
- },
33
- ],
34
- },
35
- {
36
- featureType: "poi",
37
- elementType: "all",
38
- stylers: [
39
- {
40
- saturation: -100,
41
- },
42
- {
43
- lightness: "50",
44
- },
45
- {
46
- visibility: "simplified",
47
- },
48
- ],
49
- },
50
- {
51
- featureType: "poi",
52
- elementType: "labels.icon",
53
- stylers: [
54
- {
55
- visibility: "off",
56
- },
57
- ],
58
- },
59
- {
60
- featureType: "road",
61
- elementType: "all",
62
- stylers: [
63
- {
64
- saturation: "-100",
65
- },
66
- ],
67
- },
68
- {
69
- featureType: "road.highway",
70
- elementType: "all",
71
- stylers: [
72
- {
73
- visibility: "simplified",
74
- },
75
- ],
76
- },
77
- {
78
- featureType: "road.arterial",
79
- elementType: "all",
80
- stylers: [
81
- {
82
- lightness: "30",
83
- },
84
- ],
85
- },
86
- {
87
- featureType: "road.local",
88
- elementType: "all",
89
- stylers: [
90
- {
91
- lightness: "40",
92
- },
93
- ],
94
- },
95
- {
96
- featureType: "transit",
97
- elementType: "all",
98
- stylers: [
99
- {
100
- saturation: -100,
101
- },
102
- {
103
- visibility: "simplified",
104
- },
105
- ],
106
- },
107
- {
108
- featureType: "water",
109
- elementType: "geometry",
110
- stylers: [
111
- {
112
- hue: "#ffff00",
113
- },
114
- {
115
- lightness: -25,
116
- },
117
- {
118
- saturation: -97,
119
- },
120
- ],
121
- },
122
- {
123
- featureType: "water",
124
- elementType: "labels",
125
- stylers: [
126
- {
127
- lightness: -25,
128
- },
129
- {
130
- saturation: -100,
131
- },
132
- ],
133
- },
134
- ]
135
-
136
- export default jsonMapStyles