chore(website): cleanup examples
This commit is contained in:
@@ -11,7 +11,6 @@ import { H4 } from 'components/Typo';
|
|||||||
import 'example-flows/Overview';
|
import 'example-flows/Overview';
|
||||||
|
|
||||||
const Wrapper = styled(Flex)`
|
const Wrapper = styled(Flex)`
|
||||||
border-top: 1px solid ${(p) => p.theme.colors.silverLighten30};
|
|
||||||
flex-grow: 1;
|
flex-grow: 1;
|
||||||
`;
|
`;
|
||||||
|
|
||||||
@@ -19,12 +18,12 @@ const ReactFlowWrapper = styled(Box)`
|
|||||||
flex-grow: 1;
|
flex-grow: 1;
|
||||||
|
|
||||||
.react-flow {
|
.react-flow {
|
||||||
|
border-bottom:1px solid ${(p) => p.theme.colors.silverLighten30};
|
||||||
height: 65vh;
|
height: 65vh;
|
||||||
}
|
}
|
||||||
`;
|
`;
|
||||||
|
|
||||||
const SourceWrapper = styled(Box)`
|
const SourceWrapper = styled(Box)`
|
||||||
border-top: 1px solid #eee;
|
|
||||||
max-width: 1000px;
|
max-width: 1000px;
|
||||||
margin: 0 auto;
|
margin: 0 auto;
|
||||||
`;
|
`;
|
||||||
@@ -50,6 +49,8 @@ export default ({ children, title, slug, sourceCodeFiles = [] }) => {
|
|||||||
robots: 'index, follow',
|
robots: 'index, follow',
|
||||||
};
|
};
|
||||||
|
|
||||||
|
console.log(sourceCodeFiles);
|
||||||
|
|
||||||
const hasSource = sourceCodeFiles.length > 0;
|
const hasSource = sourceCodeFiles.length > 0;
|
||||||
|
|
||||||
return (
|
return (
|
||||||
@@ -60,7 +61,7 @@ export default ({ children, title, slug, sourceCodeFiles = [] }) => {
|
|||||||
{children}
|
{children}
|
||||||
{hasSource && (
|
{hasSource && (
|
||||||
<SourceWrapper p={3}>
|
<SourceWrapper p={3}>
|
||||||
<H4 as="div">Source Code</H4>
|
<H4 as="div">{title} Source Code</H4>
|
||||||
{sourceCodeFiles.map((source) => (
|
{sourceCodeFiles.map((source) => (
|
||||||
<SourceCodeBlock key={source.absolutePath} {...source} />
|
<SourceCodeBlock key={source.absolutePath} {...source} />
|
||||||
))}
|
))}
|
||||||
|
|||||||
@@ -1,7 +1,6 @@
|
|||||||
.providerflow {
|
.providerflow {
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
display: flex;
|
display: flex;
|
||||||
height: 100%;
|
|
||||||
flex-grow: 1;
|
flex-grow: 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -27,7 +26,6 @@
|
|||||||
|
|
||||||
.providerflow .reactflow-wrapper {
|
.providerflow .reactflow-wrapper {
|
||||||
flex-grow: 1;
|
flex-grow: 1;
|
||||||
height: 100%;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.providerflow .selectall {
|
.providerflow .selectall {
|
||||||
|
|||||||
@@ -23,8 +23,6 @@ export default ({ data, pageContext }) => {
|
|||||||
load();
|
load();
|
||||||
}, [pageContext]);
|
}, [pageContext]);
|
||||||
|
|
||||||
console.log(pageContext, data);
|
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<ExamplePage
|
<ExamplePage
|
||||||
title={pageContext.title}
|
title={pageContext.title}
|
||||||
|
|||||||
Reference in New Issue
Block a user