feat: update style of mail

This commit is contained in:
2026-04-19 10:53:18 +03:00
parent 323e309c7e
commit 10e8dc4e96
6 changed files with 82 additions and 22 deletions

View File

@@ -1,11 +1,11 @@
import base64
from pathlib import Path
_LOGO_PATH = Path(__file__).resolve().parent / 'templates' / 'static' / 'exa-logo.png'
EXA_LOGO_CID = 'exa-logo'
def get_exa_logo_data_uri() -> str | None:
def get_exa_logo_png() -> bytes | 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}'
return _LOGO_PATH.read_bytes()