projekt setup
This commit is contained in:
parent
cd08781954
commit
f29d7c69d5
18
app.py
Normal file
18
app.py
Normal 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
18
templates/base.html
Normal 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
6
templates/home.html
Normal 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
6
templates/impressum.html
Normal 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
6
templates/kontakt.html
Normal file
@ -0,0 +1,6 @@
|
||||
{% extends "base.html" %}
|
||||
|
||||
{% block content %}
|
||||
<h1>Kontakt</h1>
|
||||
<p>Email: info@hebammekrystyna.de</p>
|
||||
{% endblock %}
|
||||
Loading…
Reference in New Issue
Block a user