projekt setup

This commit is contained in:
Bernhard Kolb 2026-04-14 13:06:36 +02:00
parent cd08781954
commit f29d7c69d5
5 changed files with 54 additions and 0 deletions

18
app.py Normal file
View File

@ -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)

18
templates/base.html Normal file
View File

@ -0,0 +1,18 @@
<!DOCTYPE html>
<html lang="de">
<head>
<meta charset="UTF-8">
<title>{{ title or "Hebamme Krystyna" }}</title>
</head>
<body>
<nav>
<a href="/">Home</a> |
<a href="/impressum">Impressum</a> |
<a href="/kontakt">Kontakt</a>
</nav>
<hr>
{% block content %}{% endblock %}
</body>
</html>

6
templates/home.html Normal file
View File

@ -0,0 +1,6 @@
{% extends "base.html" %}
{% block content %}
<h1>Willkommen</h1>
<p>Herzlich willkommen bei Hebamme Krystyna.</p>
{% endblock %}

6
templates/impressum.html Normal file
View File

@ -0,0 +1,6 @@
{% extends "base.html" %}
{% block content %}
<h1>Willkommen</h1>
<p>Herzlich willkommen bei Hebamme Krystyna.</p>
{% endblock %}

6
templates/kontakt.html Normal file
View File

@ -0,0 +1,6 @@
{% extends "base.html" %}
{% block content %}
<h1>Kontakt</h1>
<p>Email: info@hebammekrystyna.de</p>
{% endblock %}