@t2ca/gatsby-theme-showcase 1.0.20 → 1.0.22
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
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@t2ca/gatsby-theme-showcase",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.22",
|
|
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
|
|
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-
|
|
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
|
},
|
package/src/components/header.js
CHANGED
|
@@ -3,10 +3,25 @@ import React from "react"
|
|
|
3
3
|
import { Link } from "gatsby"
|
|
4
4
|
import { jsx, Container, Box } from "theme-ui"
|
|
5
5
|
|
|
6
|
-
import MenuButton from "./menu-button"
|
|
7
6
|
import NavLink from "./nav-link"
|
|
8
7
|
import ColorModeToggle from "./color-mode-toggle"
|
|
9
8
|
|
|
9
|
+
const Burger = () => (
|
|
10
|
+
<svg
|
|
11
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
12
|
+
width="1.5rem"
|
|
13
|
+
height="1.5rem"
|
|
14
|
+
fill="currentcolor"
|
|
15
|
+
viewBox="0 0 24 24"
|
|
16
|
+
sx={{
|
|
17
|
+
display: "block",
|
|
18
|
+
margin: 0,
|
|
19
|
+
}}
|
|
20
|
+
>
|
|
21
|
+
<path d="M3 18h18v-2H3v2zm0-5h18v-2H3v2zm0-7v2h18V6H3z" />
|
|
22
|
+
</svg>
|
|
23
|
+
)
|
|
24
|
+
|
|
10
25
|
export default ({ setMenuOpen, styles, menuOpen, nav, name, menuList }) => {
|
|
11
26
|
return (
|
|
12
27
|
<Box
|
|
@@ -21,15 +36,36 @@ export default ({ setMenuOpen, styles, menuOpen, nav, name, menuList }) => {
|
|
|
21
36
|
alignItems: `center`,
|
|
22
37
|
}}
|
|
23
38
|
>
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
39
|
+
{!menuOpen ? (
|
|
40
|
+
<button
|
|
41
|
+
title="Toggle Menu"
|
|
42
|
+
onClick={e => {
|
|
43
|
+
setMenuOpen(!menuOpen)
|
|
44
|
+
// if (!props.menuOpen) return props.setMenuOpen(!props.menuOpen)
|
|
45
|
+
if (!nav.current) return
|
|
46
|
+
const navLink = nav.current.querySelector("a")
|
|
47
|
+
if (navLink) navLink.focus()
|
|
48
|
+
}}
|
|
49
|
+
sx={{
|
|
50
|
+
appearance: "none",
|
|
51
|
+
bg: "transparent",
|
|
52
|
+
border: 0,
|
|
53
|
+
color: "text",
|
|
54
|
+
display: ["initial", "none"],
|
|
55
|
+
fontFamily: "inherit",
|
|
56
|
+
fontSize: 24,
|
|
57
|
+
p: 0,
|
|
58
|
+
m: 0,
|
|
59
|
+
":focus": {
|
|
60
|
+
outline: "none",
|
|
61
|
+
},
|
|
62
|
+
}}
|
|
63
|
+
>
|
|
64
|
+
<Burger />
|
|
65
|
+
</button>
|
|
66
|
+
) : (
|
|
67
|
+
<Burger />
|
|
68
|
+
)}
|
|
33
69
|
<Link to="/" sx={{ color: "inherit", textDecoration: "none" }}>
|
|
34
70
|
<span
|
|
35
71
|
sx={{
|
package/src/components/layout.js
CHANGED
|
@@ -8,7 +8,7 @@ import Header from "./header"
|
|
|
8
8
|
import Footer from "./footer"
|
|
9
9
|
import Sidebar from "./sidebar"
|
|
10
10
|
|
|
11
|
-
const Layout = ({ header, main,
|
|
11
|
+
const Layout = ({ header, main, children }) => {
|
|
12
12
|
const [menuOpen, setMenuOpen] = useState(false)
|
|
13
13
|
const nav = useRef(null)
|
|
14
14
|
|
|
@@ -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
|