feat: change templates bitforce to elcsa

This commit is contained in:
2026-04-18 12:39:02 +03:00
parent a0724af6f1
commit 323e309c7e
6 changed files with 107 additions and 96 deletions

View File

@@ -0,0 +1,11 @@
import base64
from pathlib import Path
_LOGO_PATH = Path(__file__).resolve().parent / 'templates' / 'static' / 'exa-logo.png'
def get_exa_logo_data_uri() -> str | None:
if not _LOGO_PATH.is_file():
return None
data = base64.b64encode(_LOGO_PATH.read_bytes()).decode('ascii')
return f'data:image/png;base64,{data}'