From 8a3857a093a4bc222b87c11c6d186e660a907cb9 Mon Sep 17 00:00:00 2001 From: cato447 Date: Fri, 9 Jan 2026 00:48:44 +0100 Subject: [PATCH] added rule page --- app/static/style.css | 14 ++++++++++++ app/templates/base.html | 4 +++- app/templates/rules.html | 47 ++++++++++++++++++++++++++++++++++++++++ run.py | 2 +- 4 files changed, 65 insertions(+), 2 deletions(-) diff --git a/app/static/style.css b/app/static/style.css index 27ef02e..725d935 100644 --- a/app/static/style.css +++ b/app/static/style.css @@ -32,6 +32,20 @@ footer { color: #00ff00; } +.container.header-title { + background: transparent; + border: none; + padding-left: 0; + padding-right: 0; + margin-bottom: 0; +} + +/* Ensure the link inside doesn't have extra decoration if not wanted */ +.header-title h1 { + margin: 0; +} + + h1 { font-size: 1.5rem; word-wrap: break-word; } input[type="text"], input[type="email"] { diff --git a/app/templates/base.html b/app/templates/base.html index 460e9b3..09d8f36 100644 --- a/app/templates/base.html +++ b/app/templates/base.html @@ -7,7 +7,9 @@ -

> TUM CTF 2026_

+
+

> TUM CTF 2026

+
{% block content %}{% endblock %}
diff --git a/app/templates/rules.html b/app/templates/rules.html index ce7ed87..35aced5 100644 --- a/app/templates/rules.html +++ b/app/templates/rules.html @@ -1,8 +1,55 @@ {% extends "base.html" %} {% block content %} +

> Rules

+ +
+

> Code of Conduct

+ We are committed to providing a friendly, safe, and welcoming environment for all participants of the h4tum CTF Contest and its presence on the related h4tum CTF Discord that is free from discrimination on any basis. + This Code of Conduct outlines our expectations for user behavior, as well as reporting steps and consequences of unacceptable behavior. + +

Expected Behaviour

+ + + This code is not exhaustive or complete. It serves to distill our shared understanding of a collaborative, shared environment, and goals. We expect it to be followed in spirit as much as in letter. + +

Unacceptable Behaviour

+ + +

Consequences of unacceptable behavior

+ Unacceptable behavior by participants will not be tolerated.
+ Anyone asked to stop unacceptable behavior is expected to comply immediately.
+ If a participant engages in unacceptable behavior, h4tum CTF organizers may, at their discretion, take any action they deem appropriate, up to and including expulsion from the competition and removal from the h4tum CTF Discord.
{% endblock %} diff --git a/run.py b/run.py index a3fdaf3..bce0a8c 100644 --- a/run.py +++ b/run.py @@ -3,4 +3,4 @@ from app import create_app app = create_app() if __name__ == '__main__': - app.run(debug=True) + app.run(debug=True, host='0.0.0.0')