commit 5cc052548139062850de7c205c7893b6187df5ec Author: Megamichi Date: Sun Aug 25 21:25:23 2024 +0200 init diff --git a/__pycache__/app.cpython-311.pyc b/__pycache__/app.cpython-311.pyc new file mode 100644 index 0000000..803e33f Binary files /dev/null and b/__pycache__/app.cpython-311.pyc differ diff --git a/__pycache__/app.cpython-312.pyc b/__pycache__/app.cpython-312.pyc new file mode 100644 index 0000000..8aad2ca Binary files /dev/null and b/__pycache__/app.cpython-312.pyc differ diff --git a/app.py b/app.py new file mode 100644 index 0000000..ede7bda --- /dev/null +++ b/app.py @@ -0,0 +1,17 @@ +from flask import * + +app = Flask("Witze") +notes = [] + +@app.route("/") +def root(): + return render_template("index.html") + +@app.route("/note" ,methods=["POST","GET"]) +def note(): + if request.method == "POST": + notes.append(str(request.data)[3:-2]) + print(f"Notiz hinzugefügt: {request.data}") + return ["juhuuuu"] + elif request.method == "GET": + return notes \ No newline at end of file diff --git a/static/Script.js b/static/Script.js new file mode 100644 index 0000000..e69de29 diff --git a/static/blume.png b/static/blume.png new file mode 100644 index 0000000..25f8275 Binary files /dev/null and b/static/blume.png differ diff --git a/static/favicon.ico b/static/favicon.ico new file mode 100644 index 0000000..9f896c0 Binary files /dev/null and b/static/favicon.ico differ diff --git a/static/style.css b/static/style.css new file mode 100644 index 0000000..0eb0f60 --- /dev/null +++ b/static/style.css @@ -0,0 +1,37 @@ +a { + color: rgb(107, 214, 0); +} + +#body { + background-color: black; + color: chartreuse; +} + +.button { + color: black; + background-color: chartreuse; + border-color: chartreuse; + padding: 10px; + border-radius: 20px; +} + +.input { + color: chartreuse; + background-color: rgb(0, 0, 0); + border-color: chartreuse; + padding: 10px; + border-style: solid; + border-width: 1px; + border-radius: 20px; +} + +.note { + color: chartreuse; + background-color: black; + border-color: chartreuse; + padding: 10px; + border-style: solid; + border-width: 1px; + border-radius: 20px; + margin-bottom: 10px; +} \ No newline at end of file diff --git a/templates/index.html b/templates/index.html new file mode 100644 index 0000000..1b8c478 --- /dev/null +++ b/templates/index.html @@ -0,0 +1,62 @@ + + + + + + + + + Api Test + + +

Notizen

+
+ + +
+
+ +