22 | (event.key === "Enter" ? handleClose : {})}
27 | sx={{
28 | backgroundColor: transparentize("black", 0.2),
29 | display: [
30 | state.isNavOpen ? "flex" : "none",
31 | state.isNavOpen ? "flex" : "none",
32 | state.isNavOpen ? "flex" : "none",
33 | "none",
34 | ],
35 | height: "100%",
36 | justifyContent: "flex-end",
37 | p: 3,
38 | position: "fixed",
39 | transition: ".2s linear background-color",
40 | width: "100%",
41 | zIndex: theme => theme.zIndices.lightbox,
42 | ":focus": {
43 | backgroundColor: transparentize("black", 0.4),
44 | },
45 | }}
46 | >
47 |
52 |
53 |
54 | )
55 | })
56 |
--------------------------------------------------------------------------------
/src/components/Lightbox/index.js:
--------------------------------------------------------------------------------
1 | export { Lightbox } from "./Lightbox"
2 |
--------------------------------------------------------------------------------
/src/components/Logo/Logo.js:
--------------------------------------------------------------------------------
1 | /** @jsx jsx */
2 | import { useContext } from "react"
3 | import PropTypes from "prop-types"
4 | import { jsx } from "theme-ui"
5 |
6 | import { ThemeWrapper } from "../ThemeWrapper"
7 | import { commonFocus } from "../../theme"
8 |
9 | import { useSiteMetadata } from "../../data/useSiteMetadata"
10 |
11 | export const Logo = ({ isElementVisible }) => {
12 | const {
13 | site: {
14 | siteMetadata: { url },
15 | },
16 | } = useSiteMetadata()
17 |
18 | return (
19 |
10 | `${theme.space[2]}px ${theme.space[3]}px`,
24 | position: ["relative", "relative", "relative", "fixed"],
25 | width: "inherit",
26 | zIndex: theme => ["", "", theme.zIndices.toolbar],
27 | }}
28 | >
29 | {children}
30 |
31 |
32 |
33 | ))
34 |
35 | Toolbar.propTypes = {
36 | /** React children */
37 | children: PropTypes.any,
38 | }
39 |
--------------------------------------------------------------------------------
/src/components/Toolbar/index.js:
--------------------------------------------------------------------------------
1 | export { Toolbar } from "./Toolbar"
2 |
--------------------------------------------------------------------------------
/src/components/TopNav/TopNav.js:
--------------------------------------------------------------------------------
1 | /** @jsx jsx */
2 | import { jsx } from "theme-ui"
3 | import { Flex, NavLink } from "@theme-ui/components"
4 | import { Link } from "gatsby"
5 |
6 | import { ThemeWrapper } from "../ThemeWrapper"
7 |
8 | export const TopNav = () => {
9 | return (
10 |