This commit is contained in:
Alfred Melch 2020-03-14 08:23:15 +01:00
parent 34923713f5
commit e50a929d8b
3 changed files with 14 additions and 4 deletions

View File

@ -17,4 +17,5 @@ header {
footer {
background-color: antiquewhite;
margin-top: 2em;
}

View File

@ -13,6 +13,7 @@ import { Options } from 'components/Options'
import { TextInput } from 'components/TextInput'
import { TextOutput } from 'components/TextOutput'
import { TotalTime } from 'components/TotalTime'
import { Div } from 'styles/Div'
export const App = () => {
const { t } = useTranslation()
@ -32,13 +33,15 @@ export const App = () => {
<main>
<Container>
<h2>Widget</h2>
<RsvpWidget />
<Flex>
<FlexMain padding="10px">
<Div maxWidth="600px" margin="0 auto">
<RsvpWidget />
</Div>
<Flex flexWrap="wrap">
<FlexMain padding="10px" minWidth="300px">
<h2>Options</h2>
<Options />
</FlexMain>
<FlexMain>
<FlexMain padding="10px" minWidth="300px">
<h2>Text input</h2>
<TextInput />
</FlexMain>

6
src/styles/Div.js Normal file
View File

@ -0,0 +1,6 @@
import React from 'react'
/** A generic div. Mainly for development. Try to use as sparse as possible */
export const Div = ({ children, ...rest }) => {
return <div style={rest}>{children}</div>
}