From f29d7c69d55b09e8eefbe65c86485567ba0547f8 Mon Sep 17 00:00:00 2001 From: Bernhard Kolb Date: Tue, 14 Apr 2026 13:06:36 +0200 Subject: [PATCH] projekt setup --- app.py | 18 ++++++++++++++++++ templates/base.html | 18 ++++++++++++++++++ templates/home.html | 6 ++++++ templates/impressum.html | 6 ++++++ templates/kontakt.html | 6 ++++++ 5 files changed, 54 insertions(+) create mode 100644 app.py create mode 100644 templates/base.html create mode 100644 templates/home.html create mode 100644 templates/impressum.html create mode 100644 templates/kontakt.html diff --git a/app.py b/app.py new file mode 100644 index 0000000..0e9a06d --- /dev/null +++ b/app.py @@ -0,0 +1,18 @@ +from flask import Flask, render_template + +app = Flask(__name__) + +@app.route("/") +def home(): + return render_template("home.html") + +@app.route("/impressum") +def impressum(): + return render_template("impressum.html") + +@app.route("/kontakt") +def kontakt(): + return render_template("kontakt.html") + +if __name__ == "__main__": + app.run(host="0.0.0.0", port=5000) \ No newline at end of file diff --git a/templates/base.html b/templates/base.html new file mode 100644 index 0000000..a500a6b --- /dev/null +++ b/templates/base.html @@ -0,0 +1,18 @@ + + + + + {{ title or "Hebamme Krystyna" }} + + + + +
+ + {% block content %}{% endblock %} + + \ No newline at end of file diff --git a/templates/home.html b/templates/home.html new file mode 100644 index 0000000..5ff54c4 --- /dev/null +++ b/templates/home.html @@ -0,0 +1,6 @@ +{% extends "base.html" %} + +{% block content %} +

Willkommen

+

Herzlich willkommen bei Hebamme Krystyna.

+{% endblock %} \ No newline at end of file diff --git a/templates/impressum.html b/templates/impressum.html new file mode 100644 index 0000000..5ff54c4 --- /dev/null +++ b/templates/impressum.html @@ -0,0 +1,6 @@ +{% extends "base.html" %} + +{% block content %} +

Willkommen

+

Herzlich willkommen bei Hebamme Krystyna.

+{% endblock %} \ No newline at end of file diff --git a/templates/kontakt.html b/templates/kontakt.html new file mode 100644 index 0000000..5b8a6e1 --- /dev/null +++ b/templates/kontakt.html @@ -0,0 +1,6 @@ +{% extends "base.html" %} + +{% block content %} +

Kontakt

+

Email: info@hebammekrystyna.de

+{% endblock %} \ No newline at end of file