Redesign UI with Baumann Works branding and logo
This commit is contained in:
+4
-1
@@ -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'])
|
||||
|
||||
Reference in New Issue
Block a user