+ # DTSTART:20231114T090000
+ # DTEND:20231123T110000
+ # END:VEVENT
+ sdt = request.args.get('sdate').replace('-', '')
+ if request.args.get('edate') == "":
+ edt = sdt
+ else:
+ edt = request.args.get('edate').replace('-', '')
+ if request.args.get('stime') != "":
+ sdt += f"T{request.args.get('stime').replace(':', '')}00"
+ if request.args.get('etime') != "":
+ edt += f"T{request.args.get('etime').replace(':', '')}00"
+ data = (f"BEGIN:VEVENT\nSUMMARY:{request.args.get('title')}\n"
+ f"DESCRIPTION: {request.args.get('description')}\n"
+ f"LOCATION:{request.args.get('location')}\n"
+ f"DTSTART:{sdt}\nDTEND:{edt}\n"
+ f"END:VEVENT")
+
+ elif request.args.get('type') == "mail":
+ more = False
+ data = f"mailto:{request.args.get('mail')}"
+ if request.args.get('cc') != "":
+ data += f"?cc={request.args.get('cc')}"
+ more = True
+ if request.args.get('bcc') != "":
+ if more:
+ data += "&"
+ else:
+ data += "?"
+ more = True
+ data += f"bcc={request.args.get('bcc')}"
+ if request.args.get('subject') != "":
+ if more:
+ data += "&"
+ else:
+ data += "?"
+ more = True
+ data += f"subject={request.args.get('subject')}"
+ if request.args.get('body') != "":
+ if more:
+ data += "&"
+ else:
+ data += "?"
+ data += f"body={request.args.get('body')}"
+
+ else:
+ data = "Sorry kein Inhalt!!!"
return render_template('qr.html', data=data)
if __name__ == "__main__":
- app.run(host='0.0.0.0', port=80)
+ app.run(host='0.0.0.0', port=80, debug=True)
diff --git a/app/static/style.css b/app/static/style.css
new file mode 100644
index 0000000..2447cc2
--- /dev/null
+++ b/app/static/style.css
@@ -0,0 +1,28 @@
+ H1 {
+ text-align: center;
+ background-color: #eee;
+ border-radius: 60px;
+ filter: drop-shadow(10px 10px 20px blue);
+ font-size: 70px;
+ }
+ p {
+ text-align: center;
+ font-size: 50px;
+ }
+ div {
+ text-align: center;
+ font-size: 50px;
+ }
+ form {
+ text-align: center;
+ font-size: 50px;
+ }
+ input { font-size: 30px;
+ }
+ button {
+ border: solid gainsboro;
+ font-size: 30px;
+ margin: 15px;
+ border-radius: 50px;
+ filter: drop-shadow(10px 10px 10px blue);
+ }
diff --git a/app/templates/base.html b/app/templates/base.html
new file mode 100644
index 0000000..7c4b9be
--- /dev/null
+++ b/app/templates/base.html
@@ -0,0 +1,14 @@
+
+
+
+ QR-Code-Generator
+
+
+
+
+
+ QRCode-Generator
+ {% block inhalt %}
+ {% endblock %}
+
+
diff --git a/app/templates/cal.html b/app/templates/cal.html
new file mode 100644
index 0000000..0ac21d2
--- /dev/null
+++ b/app/templates/cal.html
@@ -0,0 +1,30 @@
+{% extends "base.html" %}
+
+{% block inhalt %}
+
+
+{% endblock %}
diff --git a/app/templates/index.html b/app/templates/index.html
index 6211232..65d5f3c 100644
--- a/app/templates/index.html
+++ b/app/templates/index.html
@@ -1,23 +1,14 @@
-
-
-
- QR-Code-Generator
-
-
-QRCode-Generator
-
+{% extends "base.html" %}
-
-
-
-
-
-
-
-
+{% block inhalt %}
+
+ Welche Art von QR-Code soll generiert werden?
+
+
+
+
+
+
+
+
+{% endblock %}
diff --git a/app/templates/mail.html b/app/templates/mail.html
new file mode 100644
index 0000000..9167cea
--- /dev/null
+++ b/app/templates/mail.html
@@ -0,0 +1,24 @@
+{% extends "base.html" %}
+
+{% block inhalt %}
+
+
+{% endblock %}
diff --git a/app/templates/qr.html b/app/templates/qr.html
index 09784b9..0d808e6 100644
--- a/app/templates/qr.html
+++ b/app/templates/qr.html
@@ -1,20 +1,15 @@
-
-
-
- QR-Code-Generator
-
-
-QRCode-Generator
-
- folgender Text wurde im QR-Code codiert:
+{% extends "base.html" %}
+
+{% block inhalt %}
+
+ folgendes wurde im QR-Code codiert:
{{ data }}
-
+
-
+
Noch einmal bitte!
+{% endblock %}
-
-
diff --git a/app/templates/tel.html b/app/templates/tel.html
new file mode 100644
index 0000000..41e3737
--- /dev/null
+++ b/app/templates/tel.html
@@ -0,0 +1,12 @@
+{% extends "base.html" %}
+
+{% block inhalt %}
+
+{% endblock %}
diff --git a/app/templates/text.html b/app/templates/text.html
new file mode 100644
index 0000000..e4db86d
--- /dev/null
+++ b/app/templates/text.html
@@ -0,0 +1,12 @@
+{% extends "base.html" %}
+
+{% block inhalt %}
+
+{% endblock %}
diff --git a/app/templates/url.html b/app/templates/url.html
new file mode 100644
index 0000000..5e44cc9
--- /dev/null
+++ b/app/templates/url.html
@@ -0,0 +1,15 @@
+{% extends "base.html" %}
+
+{% block inhalt %}
+
+
+{% endblock %}
diff --git a/app/templates/wifi.html b/app/templates/wifi.html
new file mode 100644
index 0000000..06e84af
--- /dev/null
+++ b/app/templates/wifi.html
@@ -0,0 +1,23 @@
+{% extends "base.html" %}
+
+{% block inhalt %}
+
+
+{% endblock %}