From 2db55c3d261ddee52019bbd06dc5f6545db39c16 Mon Sep 17 00:00:00 2001 From: Jules Laplace Date: Tue, 2 Jun 2020 16:09:59 +0200 Subject: form for making a new graph. add username field to db --- frontend/common/app.css | 37 ++++++++++++++++------ frontend/common/form.component.js | 8 +++++ frontend/common/form.css | 61 ++++++++++++++++++++++++------------- frontend/common/header.component.js | 14 ++++----- frontend/common/index.js | 1 + 5 files changed, 83 insertions(+), 38 deletions(-) (limited to 'frontend/common') diff --git a/frontend/common/app.css b/frontend/common/app.css index a235507..41aa54e 100644 --- a/frontend/common/app.css +++ b/frontend/common/app.css @@ -2,15 +2,17 @@ html, body { margin: 0; padding: 0; - min-width: 100%; - min-height: 100%; + width: 100%; + height: 100%; } body { - background: #fff; - color: #000; + background: #000; + color: #ddd; overflow-y: scroll; font-family: 'Roboto', sans-serif; font-size: 0.875rem; + height: 100%; + width: 100%; } .gray { color: #888; @@ -18,6 +20,21 @@ body { /* layout */ +.container { + height: 100%; + width: 100%; +} +.app { + display: flex; + flex-direction: column; + height: 100%; + width: 100%; +} +.app .body { + display: flex; + flex-grow: 1; +} + .row { display: flex; flex-direction: row; @@ -30,9 +47,7 @@ body { .row > div:last-child { margin-right: 0; } -.body section > div:last-child { - flex-grow: 1; -} + .row.menubar { justify-content: flex-end; @@ -59,7 +74,7 @@ header { flex-direction: row; justify-content: space-between; align-items: center; - background: #11f; + background: rgba(64,64,64,0.5); color: white; } header b { @@ -151,8 +166,12 @@ p { /* links */ +b { + color: #fff; +} a { - color: #11f; + text-decoration: underline; + color: #8df; } /* menu button */ diff --git a/frontend/common/form.component.js b/frontend/common/form.component.js index fb8acbe..36369b5 100644 --- a/frontend/common/form.component.js +++ b/frontend/common/form.component.js @@ -10,10 +10,18 @@ export const TextInput = props => ( onChange={props.onChange} name={props.name} value={props.data[props.name]} + autoComplete={props.autoComplete} /> ) +export const LabelDescription = props => ( + +) + export const NumberInput = props => (