This commit is contained in:
fingadumbledore 2022-10-24 09:12:01 +02:00
parent f913c0d3f7
commit 7070eb687d
5 changed files with 28 additions and 15 deletions

12
main.py
View File

@ -1,6 +1,18 @@
from flask import Flask, render_template, jsonify, request, session, redirect
import sqlite3
import os
import time
import qrcode
import shutil
if not os.path.exists("./static/img/qr.png"):
img = qrcode.make('127.0.0.1:5000')
type(img)
img.save("qr.png")
ort = "./static/img"
shutil.move("qr.png", ort)
app = Flask(__name__, template_folder='templates/')
date = time.strftime("%d-%m-%Y %H:%M:%S", time.localtime(time.time()))

BIN
static/img/qr.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 452 B

View File

@ -17,19 +17,6 @@
<input type="color" id="colorpicker" value="#0000ff">
</div>
<div id="Planer">
<h3>Planer</h3>
<p>Füge ein Event ein</p>
<form class="modal-content animate" action="http://127.0.0.1:5000/get_event" method="POST">
<div class="container">
<input type="text" placeholder="Tomb Raider spielen" name="event" required>
<input type="text" placeholder="15:30" name="zeit" required>
<button type="submit">&#10133;</button>
</div>
</form>
</div>
<div id="userVerwaltung">
<h1>User Verwaltung</h1>
<p>An dieser Stelle sollen später die User angezeigt werden, und der Session Admin kann diese dann verwalten</p>

View File

@ -8,6 +8,18 @@
<title>Planer</title>
</head>
<body>
<center><h1>Planer</h1></center>
</body>
<center><h1>Planer</h1>
<p>Füge ein Event ein</p>
<form class="modal-content animate" action="http://127.0.0.1:5000/get_event" method="POST">
<div class="container">
<input type="text" placeholder="Tomb Raider spielen" name="event" required>
<input type="text" placeholder="15:30" name="zeit" required>
<button type="submit">&#10133;</button>
</div>
</form>
</center>
</body>
</html>

View File

@ -11,6 +11,8 @@
<center><h1>Session Informationen</h1></center>
<p>User: </p>
<p>Uptime: </p>
<h1>QR-Code</h1>
<img src="../static/img/qr.png"
</body>
</html>