#!/usr/bin/env python3 """Compose paired diagnostic poster SVGs from the verified Daylog capture pixels.""" from __future__ import annotations import base64 from pathlib import Path ROOT = Path(__file__).resolve().parent def embedded_png(name: str) -> str: return "data:image/png;base64," + base64.b64encode((ROOT / name).read_bytes()).decode() def poster(theme: str) -> str: if theme == "light": bg, card, ink, secondary, line, accent, badge = ( "#f8f5ef", "#fffaf3", "#211b16", "#5f564d", "#d9c9b5", "#a75d15", "#e8d2b3" ) else: bg, card, ink, secondary, line, accent, badge = ( "#171412", "#292522", "#f8efe3", "#cdbdad", "#5b4a3d", "#f0a537", "#4c321d" ) entry = embedded_png(f"entry-{theme}.png") calendar = embedded_png(f"calendar-{theme}.png") streak = embedded_png(f"streak-{theme}.png") return f''' DAYLOG / AYLITH FICTIONAL · LOCAL SOURCE RUN A SMALL DAILY RITUAL The day, in your own words. Write a line. Notice the day. Find it again by date. REAL APP PIXELS · ONE FICTIONAL CHECK-IN KNOWN BUG: DAY ARROWS ARE OFFSET IN BUDAPEST SEP 25 · 2026 ''' for selected in ("light", "dark"): (ROOT / f"poster-study-{selected}.svg").write_text(poster(selected))