blob: 045b0f7ba2ec6ed9c9cdfa348749dff3edd83320 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
import { Component, CSSProperties } from 'react';
var CenteredPageStyle: CSSProperties = {
maxWidth: 783,
margin: "0 auto"
}
export class CenteredPage extends Component {
render () {
return <div style={CenteredPageStyle}>
<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>;
}
}
|