diff --git a/slaeforms/static/styles.css b/slaeforms/static/styles.css index 0460c0d..3e1886a 100644 --- a/slaeforms/static/styles.css +++ b/slaeforms/static/styles.css @@ -2,6 +2,9 @@ body { width: 100%; height: 100vh; margin: 0; + display: flex; + justify-content: center; + /*align-items: center; this will make the content a square, with edges up and bottom*/ background-color: #a4b5ff; color: #000000; font-family: Tahoma; @@ -17,6 +20,38 @@ body { filter: invert(65%); } +#submitbutton { + cursor: pointer; + padding: 10px 20px; /* Increased padding for a bigger button */ + font-size: 20px; /* Increased font size */ + border: none; /* Removes default border */ + border-radius: 8px; /* Optional: rounds the corners of the button */ +} +#submitbutton:hover { + background-color: #0056b3; /* Darker shade for hover effect */ +} +.button-container { + display: flex; + justify-content: flex-end; + margin-top: 20px; /* Adjust as needed for spacing */ +} + +.textarea-container { + display: flex; + flex-direction: column; + align-items: center; +} +.textarea-label{ + align-self: flex-start; /* Aligns the label to the start of the container */ +} +.container { + width: 80%; /* You can adjust this width as needed */ + max-width: 1200px; /* Maximum width to keep it from getting too wide on large screens */ + padding: 20px; + background-color: #7b8cdb; /* Just for visual differentiation */ + box-shadow: 0 0 10px rgba(0, 0, 0, 0.1); +} + .videocontrols { width: 100px; /* Set a specific width for the buttons */ height: 70px; /* Set a specific height for the buttons */ @@ -63,6 +98,11 @@ iframe { } + +form { + text-align: center; +} + .centertext { text-align: center; } diff --git a/slaeforms/templates/standard_template.html b/slaeforms/templates/standard_template.html index fbf7dcc..b138540 100644 --- a/slaeforms/templates/standard_template.html +++ b/slaeforms/templates/standard_template.html @@ -1,19 +1,20 @@ -{% macro single_video(video_url, embed="yt", title="",width="560", height="315", class="center", code="
No code given
") -%} - {% if (embed == "yt") %} -No code given +
") -%} +{% if (embed == "yt") %} +Error: Block {{ stimulus["type"] }} could not be loaded!
- {% endif %} + {% else %} +Error: Block {{ stimulus["type"] }} could not be loaded!
+ {% endif %} -