From 0d960cc1fdf6e8a875e3fd8f2fdfff9e8b97c1a4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E2=80=9CNaeel=E2=80=9D?= Date: Sat, 5 Sep 2026 07:43:41 +0300 Subject: [PATCH] Bootstrap Flask upload platform --- requirements.txt | 3 +++ site/app.py | 15 +++++++++++++++ site/static/style.css | 8 ++++++++ site/templates/index.html | 15 +++++++++++++++ 4 files changed, 41 insertions(+) create mode 100644 requirements.txt create mode 100644 site/app.py create mode 100644 site/static/style.css create mode 100644 site/templates/index.html diff --git a/requirements.txt b/requirements.txt new file mode 100644 index 0000000..0a5d8dd --- /dev/null +++ b/requirements.txt @@ -0,0 +1,3 @@ +Flask>=3.0 +gunicorn>=21.2 +requests>=2.31 \ No newline at end of file diff --git a/site/app.py b/site/app.py new file mode 100644 index 0000000..7c53618 --- /dev/null +++ b/site/app.py @@ -0,0 +1,15 @@ +from flask import Flask, render_template + + +VERSION = "0.1.0" + +app = Flask(__name__, template_folder="templates", static_folder="static") + + +@app.route("/") +def index(): + return render_template("index.html", version=VERSION) + + +if __name__ == "__main__": + app.run(debug=True, host="0.0.0.0", port=5000) \ No newline at end of file diff --git a/site/static/style.css b/site/static/style.css new file mode 100644 index 0000000..882e513 --- /dev/null +++ b/site/static/style.css @@ -0,0 +1,8 @@ +:root { + color-scheme: light; + font-family: sans-serif; +} + +body { + margin: 2rem; +} \ No newline at end of file diff --git a/site/templates/index.html b/site/templates/index.html new file mode 100644 index 0000000..ffdc82b --- /dev/null +++ b/site/templates/index.html @@ -0,0 +1,15 @@ + + + + + + Upload Platform + + + +
+

Upload Platform

+

Version: {{ version }}

+
+ + \ No newline at end of file