aboutsummaryrefslogtreecommitdiff
path: root/src/components/page.tsx
blob: 44b00ba991ba3dc32699cce717ff5a55b8b33fb7 (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
29
30
31
import { Component, CSSProperties } from 'react';

var CenteredPageStyle: CSSProperties = {
	maxWidth: 802,
	margin: "0 auto"
}

export class CenteredPage extends Component {
	render () {
		return <div className="CenteredPageOuter" style={CenteredPageStyle}>
		<div className="CenteredPageInner" style={{
			margin: "0 6px",
			lineHeight: 0
		}}> {this.props.children} </div>
		</div>;
	}
}

var PageTitleStyle: CSSProperties = {
	color: "var(--text-alt)",
	marginLeft: 6,
	marginTop: 32,
	marginBottom: 64,
	fontSize: 25
}

export class PageTitle extends Component {
	render () {
		return <h1 style={PageTitleStyle}>{this.props.children}</h1>;
	}
}