diff options
author | lonkaars <l.leblansch@gmail.com> | 2021-01-05 10:45:35 +0100 |
---|---|---|
committer | lonkaars <l.leblansch@gmail.com> | 2021-01-05 10:45:35 +0100 |
commit | b6abf82e0c8946353f973042bb58c30f3853496a (patch) | |
tree | 4959439683a194e9b6d35544040b5ec9ef45e6de /src/components/page.tsx | |
parent | 22bf08328d56852969d5f1dc98561554aea98d3c (diff) |
coole titel
Diffstat (limited to 'src/components/page.tsx')
-rw-r--r-- | src/components/page.tsx | 18 |
1 files changed, 16 insertions, 2 deletions
diff --git a/src/components/page.tsx b/src/components/page.tsx index 03a6fbc..045b0f7 100644 --- a/src/components/page.tsx +++ b/src/components/page.tsx @@ -8,7 +8,21 @@ var CenteredPageStyle: CSSProperties = { export class CenteredPage extends Component { render () { return <div style={CenteredPageStyle}> - {this.props.children} - </div> + <div style={{margin: "0 6px"}}> {this.props.children} </div> + </div>; + } +} + +var PageTitleStyle: CSSProperties = { + color: "var(--background)", + marginLeft: 6, + marginTop: 32, + marginBottom: 64, + fontSize: 25 +} + +export class PageTitle extends Component { + render () { + return <h1 style={PageTitleStyle}>{this.props.children}</h1>; } } |