aboutsummaryrefslogtreecommitdiffstats
path: root/packages/dev-tools-pages/ts/components/content.tsx
diff options
context:
space:
mode:
authorAugust Skare <post@augustskare.no>2018-11-20 00:27:00 +0800
committerAugust Skare <post@augustskare.no>2018-11-20 00:27:00 +0800
commit31d07fdac80a2a546646b1eb232fa7dd6319ce83 (patch)
treecd2bbb781ea499f599c6b06d54270067c437c020 /packages/dev-tools-pages/ts/components/content.tsx
parent881655bb57e93fa1cf344585cda1653c995f1411 (diff)
downloaddexon-0x-contracts-31d07fdac80a2a546646b1eb232fa7dd6319ce83.tar.gz
dexon-0x-contracts-31d07fdac80a2a546646b1eb232fa7dd6319ce83.tar.zst
dexon-0x-contracts-31d07fdac80a2a546646b1eb232fa7dd6319ce83.zip
rename all files and directories to lowercase
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..55550441c
--- /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;
+ p:not([class]) {
+ color: #CCC;
+ }
+ `
+ : ''};
+`;
+
+interface MainProps {
+ dark?: boolean;
+}
+
+const Content: React.StatelessComponent<MainProps> = props => (
+ <StyledMain dark={props.dark}>
+ <Container>{props.children}</Container>
+ </StyledMain>
+);
+
+export { Content };