blob: b8e8770b0f46e0e230112bf23336d4da52b6f37c (
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
|
import { Component, ReactNode } from 'react';
export function CenteredPage(props: {
width?: number;
children?: ReactNode;
className?: string;
}) {
return <div
className='CenteredPageOuter'
style={{ maxWidth: props.width }}
>
<div className={'CenteredPageInner ' + props.className}>
{props.children}
</div>
</div>;
}
export class PageTitle extends Component {
render() {
return <h1 className='pageTitle'>
{this.props.children}
</h1>;
}
}
|