aboutsummaryrefslogtreecommitdiffstats
path: root/packages/dev-tools-pages/ts/components/Content.tsx
diff options
context:
space:
mode:
authorMegan Pearson <megan.e.pearson@gmail.com>2018-10-22 20:11:20 +0800
committerMegan Pearson <megan.e.pearson@gmail.com>2018-10-22 20:11:20 +0800
commit50eee9a657fe81fa0af4652f9a5a3f1892a1f1fa (patch)
tree69befae2cf8c87d0bd97bb8e9917515c6033924f /packages/dev-tools-pages/ts/components/Content.tsx
parent580e574c841fb9b0ba9d37a50bd5a0f787799ff2 (diff)
parent917952bc2aac353a2375e1fd7906ed14b81a6830 (diff)
downloaddexon-sol-tools-50eee9a657fe81fa0af4652f9a5a3f1892a1f1fa.tar
dexon-sol-tools-50eee9a657fe81fa0af4652f9a5a3f1892a1f1fa.tar.gz
dexon-sol-tools-50eee9a657fe81fa0af4652f9a5a3f1892a1f1fa.tar.bz2
dexon-sol-tools-50eee9a657fe81fa0af4652f9a5a3f1892a1f1fa.tar.lz
dexon-sol-tools-50eee9a657fe81fa0af4652f9a5a3f1892a1f1fa.tar.xz
dexon-sol-tools-50eee9a657fe81fa0af4652f9a5a3f1892a1f1fa.tar.zst
dexon-sol-tools-50eee9a657fe81fa0af4652f9a5a3f1892a1f1fa.zip
Merge branch 'feature/alternate-main' into dev-tools-pages
Diffstat (limited to 'packages/dev-tools-pages/ts/components/Content.tsx')
-rw-r--r--packages/dev-tools-pages/ts/components/Content.tsx34
1 files changed, 34 insertions, 0 deletions
diff --git a/packages/dev-tools-pages/ts/components/Content.tsx b/packages/dev-tools-pages/ts/components/Content.tsx
new file mode 100644
index 000000000..6f46274f7
--- /dev/null
+++ b/packages/dev-tools-pages/ts/components/Content.tsx
@@ -0,0 +1,34 @@
+import * as React from 'react';
+import styled from 'styled-components';
+
+import Container from './Container';
+
+const StyledMain =
+ styled.div <
+ MainProps >
+ `
+ padding-top: 6.25rem;
+ padding-bottom: 6.25rem;
+ ${props =>
+ props.dark
+ ? `
+ background-color: #000;
+ color: #fff;
+ `
+ : ''};
+`;
+
+interface MainProps {
+ dark?: boolean;
+ children: React.ReactNode;
+}
+
+function Main(props: MainProps) {
+ return (
+ <StyledMain dark={props.dark}>
+ <Container>{props.children}</Container>
+ </StyledMain>
+ );
+}
+
+export default Main;