From f98c9703488f04667fa30fc3172ca28b686f8bf3 Mon Sep 17 00:00:00 2001 From: Paul-Christian Volkmer Date: Tue, 9 Jan 2024 18:09:44 +0100 Subject: [PATCH] chore: layout and style changes --- src/main/resources/static/style.css | 156 ++++++++++++------- src/main/resources/templates/configs.html | 127 ++++++++------- src/main/resources/templates/fragments.html | 4 + src/main/resources/templates/report.html | 16 +- src/main/resources/templates/statistics.html | 40 ++--- 5 files changed, 205 insertions(+), 138 deletions(-) diff --git a/src/main/resources/static/style.css b/src/main/resources/static/style.css index 73fa08a..f3266e2 100644 --- a/src/main/resources/static/style.css +++ b/src/main/resources/static/style.css @@ -1,5 +1,6 @@ :root { - --table-border: rgba(96, 96, 96, 1); + --text: #333; + --table-border: rgba(16, 24, 40, .1); --bg-blue: rgb(0, 74, 157); --bg-blue-op: rgba(0, 74, 157, .35); @@ -19,49 +20,78 @@ --bg-gray-op: rgba(112, 128, 144, .35); } +html { + background: linear-gradient(-5deg, var(--bg-blue-op), transparent 10em); + min-height: 100vh; + overflow-y: scroll; +} + body { - margin: 0; + margin: 0 0 5em 0; font-family: sans-serif; font-size: .8rem; - color: #333; + color: var(--text); + + min-height: 100vh; + + background: url(bg.jpeg) no-repeat; + background-size: contain; } nav { margin: 0 auto; - background: #d5dad5; - height: 3rem; + padding: 2em 0; + + line-height: 1.5rem; max-width: 1140px; + + border-bottom: 1px solid var(--table-border); } -nav a { - color: #004a8f; - text-transform: uppercase; +nav > a.nav-home { + float: left; + + color: var(--text); + line-height: 1.5em; text-decoration: none; - line-height: 2rem; - font-weight: 700; + + font-size: 1.5em; + font-weight: bold; } -nav a:hover { - text-decoration: underline; +nav > a.nav-home > img { + width: 1.5em; + vertical-align: middle; } nav > ul { - margin: 0 3rem; + margin: 0 0 0 auto; padding: 0; + + width: max-content; } nav > ul > li { - background: #fbfbfb; - display: block; - float: left; - padding: 2px 1rem; - border-left: 1px solid #d5dad5; + display: inline-block; + padding: 0 1rem; + border-left: 1px solid var(--table-border); } nav > ul > li:first-of-type { border-left: none; } +nav li a { + color: #004a8f; + text-transform: uppercase; + text-decoration: none; + font-weight: 700; +} + +nav li a:hover { + text-decoration: underline; +} + .breadcrumps { margin: 0 auto; max-width: 1140px; @@ -85,7 +115,7 @@ nav > ul > li:first-of-type { } .breadcrumps ul li a { - color: #333333; + color: var(--text); text-decoration: none; } @@ -98,6 +128,10 @@ main { max-width: 1140px; } +section { + margin: 3em 0; +} + form { margin: 1rem 0; padding: 1rem; @@ -139,12 +173,17 @@ form.samplecode-input input:focus-visible { background: lightgreen; } -table { - border-top: 1px solid var(--table-border); - border-left: 1px solid var(--table-border); - border-spacing: 0; - border-radius: 3px; +table, .chart { + border: 1px solid var(--table-border); + padding: 1.5em; + border-spacing: 0; + border-radius: .5em; + + background: white; +} + +table { min-width: 100%; font-family: sans-serif; } @@ -165,64 +204,71 @@ table.samples { display: block; } -th { - background: #eee; -} - -td, th { +th, td { padding: 0.4rem .2rem; - border-right: 1px solid var(--table-border); - border-bottom: 1px solid var(--table-border); + line-height: 2em; text-align: left; white-space: nowrap; vertical-align: top; } +th { + border-bottom: 1px solid var(--bg-gray); +} + td { font-family: monospace; + border-bottom: 1px solid var(--bg-gray-op); } -td.bg-blue, th.bg-blue { +tr:last-of-type > td { + border-bottom: none; +} + +td > small { + display: block; + text-align: center; +} + +td.bg-blue, th.bg-blue, +td.bg-green, th.bg-green, +td.bg-yellow, th.bg-yellow, +td.bg-red, th.bg-red, +td.bg-gray, th.bg-gray +{ + width: 8em; +} + +td.bg-blue > small, th.bg-blue > small { background: var(--bg-blue); color: white; + border-radius: 0.4em; } -tr:has(td.bg-blue) { - background: var(--bg-blue-op); -} - -td.bg-green, th.bg-green { +td.bg-green > small, th.bg-green > small { background: var(--bg-green); color: white; + border-radius: 0.4em; } -tr:has(td.bg-green) { - background: var(--bg-green-op); -} - -td.bg-yellow, th.bg-yellow { +td.bg-yellow > small, th.bg-yellow > small { background: var(--bg-yellow); color: white; + border-radius: 0.4em; } -tr:has(td.bg-yellow) { - background: var(--bg-yellow-op); -} - -td.bg-red, th.bg-red { +td.bg-red > small, th.bg-red > small { background: var(--bg-red); color: white; + border-radius: 0.4em; } -tr:has(td.bg-red) { - background: var(--bg-red-op); -} - -td.bg-gray, th.bg-gray { +td.bg-gray > small, th.bg-gray > small { background: var(--bg-gray); color: white; + border-radius: 0.4em; } .bg-path { @@ -341,12 +387,6 @@ input.inline:focus-visible { } .chart { - padding: 1rem; - margin: .2rem; - - border: 1px solid var(--table-border); - border-radius: 3px; - width: calc(100% - 2.4rem - 4px); height: 320px; diff --git a/src/main/resources/templates/configs.html b/src/main/resources/templates/configs.html index 1d76063..5de2a79 100644 --- a/src/main/resources/templates/configs.html +++ b/src/main/resources/templates/configs.html @@ -10,67 +10,80 @@

Konfiguration

-

Allgemeine Konfiguration

- - - - - - - - +
+

🔧 Allgemeine Konfiguration

+
NameWert
+ - - + + + + + + + + + + + + + +
Pseudonym erzeugt über[[ ${pseudonymGenerator} ]]NameWert
Pseudonym erzeugt über[[ ${pseudonymGenerator} ]]
MTBFile-Sender[[ ${mtbFileSender} ]]
+ + +
+

Verbindung zum bwHC-Backend

+

+ Verbindung über [[ ${mtbFileSender} ]]. Die Verbindung ist aktuell + verfügbar. + nicht verfügbar! +

+
+ +
+

Transformationen

+ +

Syntax

+ Hier einige Beispiele zum Syntax des JSON-Path +
    +
  • diagnoses[*].icdO3T.version: Ersetze die ICD-O3T-Version in allen Diagnosen, z.B. zur Version der deutschen Übersetzung
  • +
  • patient.gender: Ersetze das Geschlecht des Patienten, z.B. in das von bwHC verlangte Format
  • +
+ +

Konfigurierte Transformationen

+ +

+ Keine konfigurierten Transformationen. +

+
+ +

+ Hier sehen Sie eine Übersicht der konfigurierten Transformationen. +

+ + + - - + + - -
MTBFile-Sender[[ ${mtbFileSender} ]]JSON-PathTransformation von ⇒ nach
- -

Verbindung zum bwHC-Backend

-

- Verbindung über [[ ${mtbFileSender} ]]. Die Verbindung ist aktuell - verfügbar. - nicht verfügbar! -

- -

Transformationen

- -

Syntax

- Hier einige Beispiele zum Syntax des JSON-Path -
    -
  • diagnoses[*].icdO3T.version: Ersetze die ICD-O3T-Version in allen Diagnosen, z.B. zur Version der deutschen Übersetzung
  • -
  • patient.gender: Ersetze das Geschlecht des Patienten, z.B. in das von bwHC verlangte Format
  • -
- -

Konfigurierte Transformationen

-

- Hier sehen Sie eine Übersicht der konfigurierten Transformationen. -

- - - - - - - - - - - - - - -
JSON-PathTransformation von ⇒ nach
- [[ ${transformation.path} ]] - - [[ ${transformation.existingValue} ]] - - [[ ${transformation.newValue} ]] -
+ + + + + [[ ${transformation.path} ]] + + + [[ ${transformation.existingValue} ]] + + [[ ${transformation.newValue} ]] + + + + +
+
\ No newline at end of file diff --git a/src/main/resources/templates/fragments.html b/src/main/resources/templates/fragments.html index fbbe47d..677e841 100644 --- a/src/main/resources/templates/fragments.html +++ b/src/main/resources/templates/fragments.html @@ -7,6 +7,10 @@