Redesign UI with Baumann Works branding and logo

This commit is contained in:
2026-07-12 01:28:41 +02:00
parent ebba1ade5e
commit 71f4e65538
4 changed files with 256 additions and 129 deletions
+4 -1
View File
@@ -5,6 +5,9 @@ from html import escape
app = Flask(__name__)
_LOGO_PATH = pathlib.Path(__file__).parent / 'static' / 'logo.png'
_LOGO_B64 = base64.b64encode(_LOGO_PATH.read_bytes()).decode()
_FONT_PATH = pathlib.Path('/usr/local/share/fonts/г/ГОСТ_тип_А.ttf')
_FONT_B64 = base64.b64encode(_FONT_PATH.read_bytes()).decode()
_FONT_FACE = (
@@ -106,7 +109,7 @@ def generate_svg(unit, min_val, max_val, range_label, big_ticks, small_ticks, la
@app.route('/')
def index():
return render_template('index.html')
return render_template('index.html', logo_b64=_LOGO_B64)
@app.route('/generate', methods=['POST'])