1import React from "react";
2import PropTypes from "prop-types";
3import { StaticQuery, graphql } from "gatsby";
4import { MDXProvider } from "@mdx-js/react";
5import { preToCodeBlock } from "mdx-utils";
6const yogaCard = require("./YogaCard.purs");
8import Header from "./header";
9import Code from "./code";
11const mdxProviderComponents = {
13 const props = preToCodeBlock(preProps);
14 return props ? <Code {...props} /> : <pre {...preProps} />;
18const ThemeProvider = yogaCard.makeThemeProvider();
20const Layout = ({ children }) => (
21 <ThemeProvider theme={yogaCard.dark}>
22 <MDXProvider components={mdxProviderComponents}>
25 query SiteTitleQuery {
34 <div style={{backgroundColor: yogaCard.dark.backgroundColour}}>
35 <Header siteTitle={data.site.siteMetadata.title} />
45 children: PropTypes.node.isRequired
keysesc to close
- j k
- move down, up
- enter
- open
- esc
- back, or up a level
- 1 2 3 4
- readme, files, commits, refs
- /
- filter
- y
- copy the clone command
- c
- compare the chosen commit with another (or shift-click both)
- ?
- show or hide this list