diff --git a/app/__init__.py b/app/__init__.py index 5b837ed..ca73c1c 100644 --- a/app/__init__.py +++ b/app/__init__.py @@ -1,5 +1,5 @@ """Python° - FastAPI, Postgres, tsvector""" # Current Version -__version__ = "3.1.1" +__version__ = "3.1.2" diff --git a/app/main.py b/app/main.py index 615dd53..fde0e02 100644 --- a/app/main.py +++ b/app/main.py @@ -20,15 +20,16 @@ CORSMiddleware, allow_origins=[ "http://localhost:1999", + "http://localhost:1980", "http://localhost:2027", "http://localhost:2020", "http://localhost:2000", "https://goldlabel.pro", "https://nx-admin.goldlabel.pro", "https://free.goldlabel.pro", - "https://listingslab.com/", - "https://ed-tech.co/", - "https://notheretofuckspiders.art/", + "https://listingslab.com", + "https://ed-tech.co", + "https://notheretofuckspiders.art", ], allow_credentials=True, allow_methods=["*"], diff --git a/app/utils/email_templates/goldlabel.py b/app/utils/email_templates/goldlabel.py index 972ce2e..e4f372f 100644 --- a/app/utils/email_templates/goldlabel.py +++ b/app/utils/email_templates/goldlabel.py @@ -1,16 +1,15 @@ """Goldlabel branded HTML email template.""" -_LOGO_URL = "https://goldlabel.pro/goldlabelpro/png/favicon.png" -_BASE_URL = "https://goldlabel.pro" - -# Palette (dark theme used for the email chrome; body text stays readable on white clients) -_DARK_BG = "#364450" -_DARK_PAPER = "#364450" -_DARK_PRIMARY = "#ffd849" -_DARK_TEXT = "#ffffff" +_LOGO_URL = "https://goldlabel.pro/shared/png/virus/virus.png" +_BASE_URL = "https://goldlabel.pro/virus" + +# Palette (light theme only - light backgrounds with dark text) +_LIGHT_BG = "#ffffff" _LIGHT_PAPER = "#ffffff" -_LIGHT_TEXT = "#000000" -_LIGHT_PRIMARY = "#364450" +_ACCENT_COLOR = "#ffd849" +_DARK_TEXT = "#000000" +_LIGHT_TEXT = "#666666" +_SECONDARY_BG = "#FFFFFF" def goldlabel_email( @@ -47,21 +46,19 @@ def goldlabel_email( /* ── Base ──────────────────────────────────────── */ body {{ margin: 0; padding: 0; - background-color: #ffffff; + background-color: {_LIGHT_BG}; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; - color: {_LIGHT_TEXT}; + color: {_DARK_TEXT}; }} - /* ── Dark-mode overrides ───────────────────────── */ - @media (prefers-color-scheme: dark) {{ - body, .email-wrapper {{ background-color: #ffffff !important; color: {_DARK_TEXT} !important; }} - .email-card {{ background-color: {_DARK_PAPER} !important; color: {_DARK_TEXT} !important; }} - .email-header-inner {{ background-color: {_DARK_BG} !important; }} - .email-footer {{ background-color: {_DARK_BG} !important; color: {_DARK_TEXT} !important; }} - .email-subject {{ color: {_DARK_PRIMARY} !important; }} - .email-cta {{ background-color: {_DARK_PRIMARY} !important; color: {_LIGHT_PRIMARY} !important; }} - a {{ color: {_DARK_PRIMARY} !important; }} - }} + /* ── Light theme only ──────────────────────── */ + .email-wrapper {{ background-color: {_LIGHT_BG}; }} + .email-card {{ background-color: {_LIGHT_PAPER}; color: {_DARK_TEXT}; }} + .email-header-inner {{ background-color: {_SECONDARY_BG}; }} + .email-footer {{ background-color: {_SECONDARY_BG}; color: {_LIGHT_TEXT}; }} + .email-subject {{ color: {_DARK_TEXT}; }} + .email-cta {{ background-color: {_DARK_TEXT}; color: #ffffff; }} + a {{ color: {_DARK_TEXT}; text-decoration: underline; }} @@ -79,23 +76,21 @@ def goldlabel_email( - + style="background-color:{_SECONDARY_BG}; border-radius:6px; max-width:300px; margin:0 auto;"> - - @@ -108,21 +103,21 @@ def goldlabel_email( - @@ -133,9 +128,10 @@ def goldlabel_email(