diff --git a/components/adminNav/adminNav.module.css b/components/adminNav/adminNav.module.css index 0cc22c4..aa2d4dc 100644 --- a/components/adminNav/adminNav.module.css +++ b/components/adminNav/adminNav.module.css @@ -64,3 +64,13 @@ a.navItem :global(.rmwc-icon) { a.navItem.selected :global(.rmwc-icon) { color: white; } + +.notNav h2 { + font-family: Arial, Helvetica, sans-serif; + font-size: 20px; + font-weight: normal; +} + +.notNav > :not(div) { + padding: 0 16px; +} diff --git a/components/form/form.js b/components/form/form.js index b4135a0..8c93919 100644 --- a/components/form/form.js +++ b/components/form/form.js @@ -10,6 +10,7 @@ export const IntegerInput = require('./integerInput.js').default export const DecimalInput = require('./decimalInput.js').default export const Button = require('./button.js').default export const Checkbox = require('./checkbox.js').default +export const TextArea = require('./textArea.js').default const errorReducer = (errors, action) => { switch (action.type) { diff --git a/components/form/styles.module.css b/components/form/styles.module.css index 9c68e94..ca3fee6 100644 --- a/components/form/styles.module.css +++ b/components/form/styles.module.css @@ -18,11 +18,11 @@ margin-bottom: 8px; } -.formElementContainer input { +.formElementContainer input , .formElementContainer textarea{ padding: 10px; } -.formElementContainer input, .formElementContainer .complexInput { +.formElementContainer input, .formElementContainer textarea, .formElementContainer .complexInput { box-sizing: border-box; width: 100%; min-width: 0; @@ -31,6 +31,12 @@ transition-property: border-color,box-shadow; transition-duration: .2s; transition-timing-function: ease-in-out; + font: 400 14px Arial; +} + +.formElementContainer textarea { + height: 120px; + resize: none; } :global(.dark) .formElementContainer input, :global(.dark) .formElementContainer .complexInput { @@ -71,7 +77,7 @@ .inputDecorators > span { white-space: pre; display: inline-block; - font: 400 13.3333px Arial; + font: 400 14px Arial; } .inputDecorators > span { diff --git a/components/form/textArea.js b/components/form/textArea.js new file mode 100644 index 0000000..6c248e4 --- /dev/null +++ b/components/form/textArea.js @@ -0,0 +1,15 @@ +import React from 'react' + +import styles from './styles.module.css' + +export default function TextArea({label: _label, error, hint, height, name, value, onChange, onBlur, isValid}){ + const label = _label || name.replace(name[0], name[0].toUpperCase()) + + return ( +