From d94086a3ef56a4004fd3f4c593e65c4ee2d26a31 Mon Sep 17 00:00:00 2001 From: Namonay Date: Thu, 19 Feb 2026 15:07:51 +0000 Subject: [PATCH] better css --- server/src/data/app.py | 5 +++-- server/src/data/templates/index.html | 27 +++++++++++++++------------ 2 files changed, 18 insertions(+), 14 deletions(-) diff --git a/server/src/data/app.py b/server/src/data/app.py index 423ab0b..64647f8 100644 --- a/server/src/data/app.py +++ b/server/src/data/app.py @@ -2,12 +2,13 @@ from flask import Flask, render_template, request, redirect app = Flask(__name__) +items = ['dummy1', 'dummy2', 'a', 'aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa'] @app.route("/") def mainpage(): - items = ['dummy1', 'dummy2', 'a', 'aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa'] - return render_template('index.html', title='BG Shutdown') + return render_template('index.html', title='BG Shutdown', items=items) @app.route('/submit', methods =['POST']) def submit(): value = request.form.get("query") + items.append(query) print(value) return redirect(url_for("mainpage")) \ No newline at end of file diff --git a/server/src/data/templates/index.html b/server/src/data/templates/index.html index 67b4af2..cdb346b 100644 --- a/server/src/data/templates/index.html +++ b/server/src/data/templates/index.html @@ -3,13 +3,14 @@
-
+ +
@@ -20,19 +21,21 @@
-
- +
-{% endblock %} \ No newline at end of file +{% endblock %}