@t2ca/gatsby-theme-showcase 1.0.81 → 1.0.83
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
package/src/components/header.js
CHANGED
|
@@ -3,7 +3,6 @@ import { Link } from "gatsby"
|
|
|
3
3
|
import { jsx, Container, Box } from "theme-ui"
|
|
4
4
|
import NavLink from "./nav-link"
|
|
5
5
|
import ColorModeToggle from "./color-mode-toggle"
|
|
6
|
-
import { useColorMode } from "theme-ui"
|
|
7
6
|
|
|
8
7
|
const Burger = () => (
|
|
9
8
|
<svg
|
|
@@ -30,8 +29,6 @@ export default ({
|
|
|
30
29
|
svgLogo,
|
|
31
30
|
button,
|
|
32
31
|
}) => {
|
|
33
|
-
const [colorMode, setColorMode] = useColorMode()
|
|
34
|
-
const isDark = colorMode === `dark`
|
|
35
32
|
return (
|
|
36
33
|
<Box
|
|
37
34
|
p={4}
|
|
@@ -77,46 +74,6 @@ export default ({
|
|
|
77
74
|
)}
|
|
78
75
|
<Link to="/" sx={{ color: "inherit", textDecoration: "none" }}>
|
|
79
76
|
{svgLogo}
|
|
80
|
-
{/* <div sx={{ display: ["none", "none", "inherit"] }}>
|
|
81
|
-
|
|
82
|
-
<img
|
|
83
|
-
src={isDark ? desktopLogoWhite : desktopLogo}
|
|
84
|
-
height={desktopLogoHeight}
|
|
85
|
-
alt={name}
|
|
86
|
-
sx={{
|
|
87
|
-
verticalAlign: ["bottom", "text-bottom"],
|
|
88
|
-
}}
|
|
89
|
-
/>
|
|
90
|
-
<Img
|
|
91
|
-
fixed={isDark ? desktopLogoWhite : desktopLogo}
|
|
92
|
-
sx={{
|
|
93
|
-
verticalAlign: ["bottom", "text-bottom"],
|
|
94
|
-
}}
|
|
95
|
-
alt={name}
|
|
96
|
-
fadeIn={false}
|
|
97
|
-
loading="eager"
|
|
98
|
-
/>
|
|
99
|
-
</div>
|
|
100
|
-
<div sx={{ display: ["inherit", "inherit", "none"] }}>
|
|
101
|
-
|
|
102
|
-
<img
|
|
103
|
-
src={mobileLogo}
|
|
104
|
-
height={mobileLogoHeight}
|
|
105
|
-
alt={name}
|
|
106
|
-
sx={{
|
|
107
|
-
verticalAlign: ["bottom", "text-bottom"],
|
|
108
|
-
}}
|
|
109
|
-
/>
|
|
110
|
-
<Img
|
|
111
|
-
fixed={mobileLogo}
|
|
112
|
-
sx={{
|
|
113
|
-
verticalAlign: ["bottom", "text-bottom"],
|
|
114
|
-
}}
|
|
115
|
-
alt={name}
|
|
116
|
-
fadeIn={false}
|
|
117
|
-
loading="eager"
|
|
118
|
-
/>
|
|
119
|
-
</div>*/}
|
|
120
77
|
</Link>
|
|
121
78
|
<div
|
|
122
79
|
sx={{
|
|
@@ -137,11 +94,7 @@ export default ({
|
|
|
137
94
|
))}
|
|
138
95
|
</div>
|
|
139
96
|
|
|
140
|
-
{button
|
|
141
|
-
<div sx={{ display: ["none", "none", "inherit"], px: 3 }}>
|
|
142
|
-
{button}
|
|
143
|
-
</div>
|
|
144
|
-
) : null}
|
|
97
|
+
{button && { button }}
|
|
145
98
|
|
|
146
99
|
<ColorModeToggle />
|
|
147
100
|
</div>
|