show frontpage for debuggnig

This commit is contained in:
q
2025-01-23 11:02:59 +02:00
parent f4bdbed05f
commit d004f3c69d
4 changed files with 81 additions and 5 deletions

View File

@@ -45,7 +45,7 @@ logging.basicConfig(
format=f"[%(asctime)s] [%(levelname)s] %(message)s", format=f"[%(asctime)s] [%(levelname)s] %(message)s",
) )
__VERSION__ = "20240928.0" __VERSION__ = "20250123.0"
app = Flask(__name__) app = Flask(__name__)
app.config.from_object(__name__) app.config.from_object(__name__)
app.config.from_prefixed_env() app.config.from_prefixed_env()
@@ -68,8 +68,10 @@ def log_the_status_code(response):
@app.route("/") @app.route("/")
def index(): def index():
"""Returns Nothing""" """Returns Index"""
return "", 200 return render_template(
"index.html"
)
@app.route('/health.html', methods=["GET",]) # fmt: skip @app.route('/health.html', methods=["GET",]) # fmt: skip

67
code/static/mfl.svg Normal file
View File

@@ -0,0 +1,67 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<svg
id="svg8"
version="1.1"
viewBox="0 0 58.810692 43.289196"
height="43.289196mm"
width="58.810692mm"
sodipodi:docname="mfl.svg"
inkscape:version="1.2.2 (b0a8486541, 2022-12-01)"
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
xmlns="http://www.w3.org/2000/svg"
xmlns:svg="http://www.w3.org/2000/svg"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:cc="http://creativecommons.org/ns#"
xmlns:dc="http://purl.org/dc/elements/1.1/">
<sodipodi:namedview
id="namedview6"
pagecolor="#ffffff"
bordercolor="#000000"
borderopacity="0.25"
inkscape:showpageshadow="2"
inkscape:pageopacity="0.0"
inkscape:pagecheckerboard="0"
inkscape:deskcolor="#d1d1d1"
inkscape:document-units="mm"
showgrid="false"
inkscape:zoom="1.4734708"
inkscape:cx="102.13979"
inkscape:cy="210.38761"
inkscape:window-width="1858"
inkscape:window-height="1022"
inkscape:window-x="0"
inkscape:window-y="0"
inkscape:window-maximized="1"
inkscape:current-layer="svg8" />
<defs
id="defs2" />
<metadata
id="metadata5">
<rdf:RDF>
<cc:Work
rdf:about="">
<dc:format>image/svg+xml</dc:format>
<dc:type
rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
</cc:Work>
</rdf:RDF>
</metadata>
<g
id="layer1"
transform="translate(-72.671388,-73.345563)" />
<g
aria-label="MF"
id="text1003"
style="font-size:50.8px;-inkscape-font-specification:sans-serif;text-align:center;letter-spacing:-14.5521px;text-anchor:middle;stroke:#000000;stroke-width:7.01799;stop-color:#000000"
transform="translate(-72.671388,-73.345563)">
<path
d="m 92.182388,113.12576 -11.938,-31.800797 h -0.2032 q 0.1524,1.5748 0.254,4.2672 0.1016,2.6416 0.1016,5.5372 v 21.996397 h -4.2164 V 76.854563 h 6.7564 l 11.176,29.717997 h 0.2032 L 105.69519,76.854563 h 6.7056 v 36.271197 h -4.5212 V 90.824563 q 0,-2.6416 0.1016,-5.2324 0.1524,-2.5908 0.254,-4.2164 h -0.2032 L 95.941588,113.12576 Z"
style="stroke-width:7.018"
id="path1055" />
<path
d="m 112.27588,113.12576 h -4.572 V 76.854563 h 20.2692 v 4.0132 h -15.6972 v 12.8524 h 14.732 v 4.0132 h -14.732 z"
style="stroke-width:7.018"
id="path1057" />
</g>
</svg>

After

Width:  |  Height:  |  Size: 2.4 KiB

View File

@@ -0,0 +1,9 @@
<!DOCTYPE html>
<html>
<head>
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>MF</title>
</head>
<body style="background: white; background-image: url('/static/mfl.svg'); background-repeat: no-repeat; background-size: cover;">
</body>
</html>

View File

@@ -1,5 +1,3 @@
version: '2'
services: services:
miniflees: miniflees: