@t2ca/gatsby-theme-showcase 1.0.40 → 1.0.42
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/footer.js
CHANGED
|
@@ -1,11 +1,50 @@
|
|
|
1
1
|
/** @jsx jsx */
|
|
2
2
|
import React from "react"
|
|
3
|
+
import { Link } from "gatsby"
|
|
3
4
|
import { jsx, Box, Container } from "theme-ui"
|
|
5
|
+
import { FaTwitter, FaGithub, FaLinkedin, FaInstagram } from "react-icons/fa"
|
|
4
6
|
|
|
5
7
|
export default ({ name }) => {
|
|
6
8
|
return (
|
|
7
|
-
<Box bg="
|
|
8
|
-
<Container>
|
|
9
|
+
<Box bg="Menu">
|
|
10
|
+
<Container>
|
|
11
|
+
<footer
|
|
12
|
+
sx={{
|
|
13
|
+
display: "flex",
|
|
14
|
+
flexWrap: "wrap",
|
|
15
|
+
alignItems: "center",
|
|
16
|
+
p: 2,
|
|
17
|
+
variant: "styles.footer",
|
|
18
|
+
}}
|
|
19
|
+
>
|
|
20
|
+
<a
|
|
21
|
+
href="https://www.twitter.com/t2media"
|
|
22
|
+
sx={{ variant: "styles.navlink", p: 3 }}
|
|
23
|
+
>
|
|
24
|
+
<FaTwitter />
|
|
25
|
+
</a>
|
|
26
|
+
<a
|
|
27
|
+
href="https://www.instagram.com/t2.media"
|
|
28
|
+
sx={{ variant: "styles.navlink", p: 3 }}
|
|
29
|
+
>
|
|
30
|
+
<FaInstagram />
|
|
31
|
+
</a>
|
|
32
|
+
<a
|
|
33
|
+
href="https://www.github.com/t2media"
|
|
34
|
+
sx={{ variant: "styles.navlink", p: 3 }}
|
|
35
|
+
>
|
|
36
|
+
<FaGithub />
|
|
37
|
+
</a>
|
|
38
|
+
<a
|
|
39
|
+
href="https://www.linkedin.com/company/t2media"
|
|
40
|
+
sx={{ variant: "styles.navlink", p: 3 }}
|
|
41
|
+
>
|
|
42
|
+
<FaLinkedin />
|
|
43
|
+
</a>
|
|
44
|
+
<div sx={{ mx: "auto" }} />
|
|
45
|
+
<div sx={{ variant: "styles.navlink", p: 3 }}>{name}</div>
|
|
46
|
+
</footer>
|
|
47
|
+
</Container>
|
|
9
48
|
</Box>
|
|
10
49
|
)
|
|
11
50
|
}
|
package/src/components/header.js
CHANGED
|
@@ -5,6 +5,7 @@ import { jsx, Container, Box } from "theme-ui"
|
|
|
5
5
|
import Img from "gatsby-image"
|
|
6
6
|
import NavLink from "./nav-link"
|
|
7
7
|
import ColorModeToggle from "./color-mode-toggle"
|
|
8
|
+
import { useColorMode } from "theme-ui"
|
|
8
9
|
|
|
9
10
|
const Burger = () => (
|
|
10
11
|
<svg
|
|
@@ -29,8 +30,11 @@ export default ({
|
|
|
29
30
|
nav,
|
|
30
31
|
menuList,
|
|
31
32
|
desktopLogo,
|
|
33
|
+
desktopLogoWhite,
|
|
32
34
|
mobileLogo,
|
|
33
35
|
}) => {
|
|
36
|
+
const [colorMode, setColorMode] = useColorMode()
|
|
37
|
+
const isDark = colorMode === `dark`
|
|
34
38
|
return (
|
|
35
39
|
<Box
|
|
36
40
|
p={4}
|
|
@@ -77,7 +81,7 @@ export default ({
|
|
|
77
81
|
<Link to="/" sx={{ color: "inherit", textDecoration: "none" }}>
|
|
78
82
|
<div sx={{ display: ["none", "inherit"], pt: "4px" }}>
|
|
79
83
|
<Img
|
|
80
|
-
fixed={desktopLogo}
|
|
84
|
+
fixed={isDark ? desktopLogoWhite : desktopLogo}
|
|
81
85
|
sx={{
|
|
82
86
|
verticalAlign: ["bottom", "text-bottom"],
|
|
83
87
|
}}
|