From 5ad3676b7fe4836119eb0a2ab592a3c148248a24 Mon Sep 17 00:00:00 2001 From: Jan Date: Sun, 15 Sep 2024 18:12:21 +0200 Subject: [PATCH] progress on studytest css --- slaeforms/app.py | 4 + slaeforms/static/styles.css | 27 ++++- slaeforms/templates/studytest.html | 186 +++++++++++++++++++++++++++++ 3 files changed, 216 insertions(+), 1 deletion(-) create mode 100644 slaeforms/templates/studytest.html diff --git a/slaeforms/app.py b/slaeforms/app.py index d12bb68..0481eee 100644 --- a/slaeforms/app.py +++ b/slaeforms/app.py @@ -249,6 +249,10 @@ def endpage(): def datenschutz(): return render_template("datenschutz.html") +@app.route("/studytest") +def studytest(): + return render_template("studytest.html") + @app.route("/form") def form(): diff --git a/slaeforms/static/styles.css b/slaeforms/static/styles.css index cd2d158..d286db1 100644 --- a/slaeforms/static/styles.css +++ b/slaeforms/static/styles.css @@ -322,6 +322,31 @@ iframe { display: flex; } + +/* Likert stuff 2 */ + +.outer-likert-container { + display: flex; +} + +.normal-likert-container { /* inner container */ + display: flex; + gap: 10px; /* Adjust spacing */ + text-align: center; + flex-grow: 1; +} + +.likertlabel { + flex-grow: 1; +} + +.likertinput { + margin: auto; + width: 60%; + min-height: 2em; + display: flex; +} + /* Likert stuff */ .likert { /* --likert-rows: 5;*/ @@ -345,7 +370,7 @@ iframe { aspect-ratio: 1.5 / 1; } -.likercontainer { +.likertcontainer { margin: 30px auto; text-align: center; } diff --git a/slaeforms/templates/studytest.html b/slaeforms/templates/studytest.html new file mode 100644 index 0000000..64505c9 --- /dev/null +++ b/slaeforms/templates/studytest.html @@ -0,0 +1,186 @@ + + + + + + + + Testform + + + + + + + + +
+
+ + +
+
+ + + + + + + + +
+
+ + + +
+ + + + + + + + +
+ + + + + + + +
+ +
+ + + + + + + +
+ + + + + + + + + +
+ + + + + + + + + +
+ + +
+
+
+ + + \ No newline at end of file