From 22bf08328d56852969d5f1dc98561554aea98d3c Mon Sep 17 00:00:00 2001 From: lonkaars Date: Tue, 5 Jan 2021 09:44:56 +0100 Subject: CenteredPage toegevoegd --- src/components/logo.tsx | 4 ++-- src/components/navbar.tsx | 3 +-- src/components/page.tsx | 14 ++++++++++++++ 3 files changed, 17 insertions(+), 4 deletions(-) create mode 100644 src/components/page.tsx (limited to 'src/components') diff --git a/src/components/logo.tsx b/src/components/logo.tsx index 1d1f3c6..b0f358f 100644 --- a/src/components/logo.tsx +++ b/src/components/logo.tsx @@ -6,7 +6,7 @@ export function LogoDark() { - + ); @@ -20,7 +20,7 @@ export function LogoLight() { - + ); diff --git a/src/components/navbar.tsx b/src/components/navbar.tsx index 45818b3..904e64a 100644 --- a/src/components/navbar.tsx +++ b/src/components/navbar.tsx @@ -38,7 +38,7 @@ var NavBarSettingsAreaStyle: CSSProperties = { left: 0 } -function NavBar() { +export function NavBar() { return (
@@ -54,4 +54,3 @@ function NavBar() { ); } -export default NavBar; diff --git a/src/components/page.tsx b/src/components/page.tsx new file mode 100644 index 0000000..03a6fbc --- /dev/null +++ b/src/components/page.tsx @@ -0,0 +1,14 @@ +import { Component, CSSProperties } from 'react'; + +var CenteredPageStyle: CSSProperties = { + maxWidth: 783, + margin: "0 auto" +} + +export class CenteredPage extends Component { + render () { + return
+ {this.props.children} +
+ } +} -- cgit v1.2.3