aboutsummaryrefslogtreecommitdiff
path: root/src/components/page.tsx
diff options
context:
space:
mode:
Diffstat (limited to 'src/components/page.tsx')
-rw-r--r--src/components/page.tsx32
1 files changed, 0 insertions, 32 deletions
diff --git a/src/components/page.tsx b/src/components/page.tsx
deleted file mode 100644
index d8a4a2b..0000000
--- a/src/components/page.tsx
+++ /dev/null
@@ -1,32 +0,0 @@
-import { Component, CSSProperties, ReactNode } from 'react';
-
-interface CenteredPageProps {
- width?: number;
- children?: ReactNode;
- style?: CSSProperties;
-}
-
-export function CenteredPage (props: CenteredPageProps) {
- return <div className="CenteredPageOuter" style={{
- maxWidth: props.width,
- margin: "0 auto"
- }}>
- <div className="CenteredPageInner" style={{
- margin: "0 6px",
- lineHeight: 0,
- ...props.style
- }}>{props.children}</div>
- </div>;
-}
-
-export class PageTitle extends Component {
- render () {
- return <h1 style={{
- color: "var(--text-alt)",
- marginLeft: 6,
- marginTop: 32,
- marginBottom: 64,
- fontSize: 25,
- }}>{this.props.children}</h1>;
- }
-}