@t2ca/gatsby-theme-showcase 1.0.94 → 1.0.96

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.94",
3
+ "version": "1.0.96",
4
4
  "main": "index.js",
5
5
  "license": "MIT",
6
6
  "devDependencies": {
@@ -1,6 +1,6 @@
1
1
  /** @jsx jsx */
2
2
  import { Link } from "gatsby"
3
- import { jsx, Container, Box } from "theme-ui"
3
+ import { jsx, Container, Box, Alert } from "theme-ui"
4
4
  import NavLink from "./nav-link"
5
5
  import ColorModeToggle from "./color-mode-toggle"
6
6
 
@@ -27,69 +27,70 @@ export default ({
27
27
  menuList,
28
28
  svgLogo,
29
29
  button,
30
+ banner,
30
31
  }) => {
31
32
  return (
32
- <Box
33
- p={4}
34
- sx={{ ...styles, position: `fixed`, zIndex: `100`, width: `100%`, py: 1 }}
35
- >
36
- <Container>
37
- <div
38
- sx={{
39
- display: `flex`,
40
- justifyContent: `space-between`,
41
- alignItems: `center`,
42
- }}
43
- >
44
- <button
45
- title="Toggle Menu"
46
- onClick={() => setMenuOpen(!menuOpen)}
47
- sx={{
48
- appearance: "none",
49
- bg: "transparent",
50
- border: 0,
51
- color: "text",
52
- display: ["initial", "initial", "none"],
53
- fontFamily: "inherit",
54
- fontSize: 24,
55
- p: 0,
56
- m: 0,
57
- ":focus": {
58
- outline: "none",
59
- },
60
- }}
61
- >
62
- <Burger />
63
- </button>
64
-
65
- <Link to="/" sx={{ color: "inherit", textDecoration: "none" }}>
66
- {svgLogo}
67
- </Link>
33
+ <div sx={{ position: `fixed`, zIndex: `100`, width: `100%` }}>
34
+ {banner && <Alert variant="banner">{banner}</Alert>}
35
+ <Box p={4} sx={{ ...styles, py: 1 }}>
36
+ <Container>
68
37
  <div
69
38
  sx={{
70
39
  display: `flex`,
71
40
  justifyContent: `space-between`,
72
41
  alignItems: `center`,
73
- mb: 0,
74
- p: 0,
75
- height: 59,
76
42
  }}
77
43
  >
78
- <div sx={{ display: ["none", "none", "inherit"] }}>
79
- {menuList &&
80
- menuList.map(({ node: { label, link, id } }) => (
81
- <NavLink key={id} to={link}>
82
- {label}
83
- </NavLink>
84
- ))}
85
- </div>
44
+ <button
45
+ title="Toggle Menu"
46
+ onClick={() => setMenuOpen(!menuOpen)}
47
+ sx={{
48
+ appearance: "none",
49
+ bg: "transparent",
50
+ border: 0,
51
+ color: "text",
52
+ display: ["initial", "initial", "none"],
53
+ fontFamily: "inherit",
54
+ fontSize: 24,
55
+ p: 0,
56
+ m: 0,
57
+ ":focus": {
58
+ outline: "none",
59
+ },
60
+ }}
61
+ >
62
+ <Burger />
63
+ </button>
64
+
65
+ <Link to="/" sx={{ color: "inherit", textDecoration: "none" }}>
66
+ {svgLogo}
67
+ </Link>
68
+ <div
69
+ sx={{
70
+ display: `flex`,
71
+ justifyContent: `space-between`,
72
+ alignItems: `center`,
73
+ mb: 0,
74
+ p: 0,
75
+ height: 59,
76
+ }}
77
+ >
78
+ <div sx={{ display: ["none", "none", "inherit"] }}>
79
+ {menuList &&
80
+ menuList.map(({ node: { label, link, id } }) => (
81
+ <NavLink key={id} to={link}>
82
+ {label}
83
+ </NavLink>
84
+ ))}
85
+ </div>
86
86
 
87
- {button}
87
+ {button}
88
88
 
89
- <ColorModeToggle />
89
+ <ColorModeToggle />
90
+ </div>
90
91
  </div>
91
- </div>
92
- </Container>
93
- </Box>
92
+ </Container>
93
+ </Box>
94
+ </div>
94
95
  )
95
96
  }
@@ -30,8 +30,6 @@ const Layout = ({ header, main, children, banner }) => {
30
30
 
31
31
  <Header styles={header} menuOpen={menuOpen} setMenuOpen={setMenuOpen} />
32
32
 
33
- {banner && <Alert variant="banner">{banner}</Alert>}
34
-
35
33
  <Sidebar open={menuOpen} />
36
34
 
37
35
  <div