From 2e4d12e9890c36421d60ab06f6131f029844bc77 Mon Sep 17 00:00:00 2001 From: Pjotr Prins Date: Sun, 12 Apr 2020 15:10:29 -0500 Subject: Website: working on layout --- bh20simplewebuploader/main.py | 1 + .../static/image/coronasmallcomp.gif | Bin 0 -> 7335879 bytes .../static/image/covid19biohackathon.png | Bin 0 -> 21756 bytes bh20simplewebuploader/templates/form.html | 45 +++++++++++++++++---- 4 files changed, 39 insertions(+), 7 deletions(-) create mode 100644 bh20simplewebuploader/static/image/coronasmallcomp.gif create mode 100644 bh20simplewebuploader/static/image/covid19biohackathon.png (limited to 'bh20simplewebuploader') diff --git a/bh20simplewebuploader/main.py b/bh20simplewebuploader/main.py index 383ef84..81f2ef9 100644 --- a/bh20simplewebuploader/main.py +++ b/bh20simplewebuploader/main.py @@ -126,6 +126,7 @@ def generate_form(schema): return list(walk_fields(root_name)) + # At startup, we need to load the current metadata schema so we can make a form for it METADATA_SCHEMA = yaml.safe_load(urllib.request.urlopen('https://raw.githubusercontent.com/arvados/bh20-seq-resource/master/bh20sequploader/bh20seq-schema.yml')) FORM_ITEMS = generate_form(METADATA_SCHEMA) diff --git a/bh20simplewebuploader/static/image/coronasmallcomp.gif b/bh20simplewebuploader/static/image/coronasmallcomp.gif new file mode 100644 index 0000000..7a16637 Binary files /dev/null and b/bh20simplewebuploader/static/image/coronasmallcomp.gif differ diff --git a/bh20simplewebuploader/static/image/covid19biohackathon.png b/bh20simplewebuploader/static/image/covid19biohackathon.png new file mode 100644 index 0000000..7a744b6 Binary files /dev/null and b/bh20simplewebuploader/static/image/covid19biohackathon.png differ diff --git a/bh20simplewebuploader/templates/form.html b/bh20simplewebuploader/templates/form.html index afae4c7..839f22f 100644 --- a/bh20simplewebuploader/templates/form.html +++ b/bh20simplewebuploader/templates/form.html @@ -7,6 +7,7 @@ body { color: #101010; + background-color: #F9EDE1; } h1, h4 { @@ -21,6 +22,17 @@ color: #505050; font-style: italic; } + .header { + margin: 0 auto; + padding: 20px; + color: blue; + text-align: center; + height: 150px; + } + + .logo { + float: right; + } p, form { font-family: 'Raleway', sans-serif; @@ -112,18 +124,35 @@ -