convert-service: лого через /static/logo.svg (как в Сверке)

This commit is contained in:
“Naeel”
2026-07-16 11:14:51 +04:00
parent 35dfa57ba3
commit b5d4b90048
+6 -1
View File
@@ -53,7 +53,7 @@ h1{font-size:22px;font-weight:700;margin-bottom:6px}
</head>
<body>
<div class="logo-bar">
<img src="' + LOGO_DATA_URI + '" alt="Nubes" style="height:28px">
<img src="/static/logo.svg" alt="Nubes" style="height:28px">
<span class="badge">КОНВЕРТЕР</span>
<span class="badge" style="background:var(--brand-grey-light);color:var(--nubes-dark);">v__VERSION__</span>
</div>
@@ -180,6 +180,11 @@ def convert():
def health():
return {"ok": True, "version": VERSION}
@app.route("/static/logo.svg")
def logo():
from flask import Response
return Response(_LOGO_SVG, mimetype="image/svg+xml")
if __name__ == "__main__":
import io
app.run(host="0.0.0.0", port=5000)