From 8cf720986eb464a39e634ca59c4c3b20b3cd368d Mon Sep 17 00:00:00 2001 From: August Skare Date: Mon, 22 Oct 2018 13:18:51 +0200 Subject: rename Main to Content --- packages/dev-tools-pages/ts/components/Content.tsx | 44 ++++++++++++++++++++++ 1 file changed, 44 insertions(+) create mode 100644 packages/dev-tools-pages/ts/components/Content.tsx (limited to 'packages/dev-tools-pages/ts/components/Content.tsx') 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..6c0270dbc --- /dev/null +++ b/packages/dev-tools-pages/ts/components/Content.tsx @@ -0,0 +1,44 @@ +import * as React from 'react'; +import styled from 'styled-components'; + +import { Beta } from './Typography'; +import Container from './Container'; +import ContentBlock from './ContentBlock'; + +const StyledMain = + styled.div < + MainProps > + ` + padding-top: 6.25rem; + padding-bottom: 6.25rem; + ${props => + props.dark + ? ` + background-color: #000; + color: #fff; + ` + : ''}; +`; + +interface MainProps { + title?: string; + subtitle?: string; + dark?: boolean; + children: React.ReactNode; +} + +function Main(props: MainProps) { + return ( + + + + {props.subtitle ? {props.subtitle} : null} + + + {props.children} + + + ); +} + +export default Main; -- cgit v1.2.3