diff --git a/app/app.py b/app/app.py index 6a68107..a1f8533 100644 --- a/app/app.py +++ b/app/app.py @@ -1,4 +1,4 @@ -import json, os, shutil, datetime, urllib.request +import json, os, shutil, datetime, urllib.request, urllib.parse from pathlib import Path from fastapi import FastAPI, Form from fastapi.responses import HTMLResponse, RedirectResponse @@ -16,6 +16,9 @@ LEADS = DATA / "leads.jsonl" EVENTS_LIVE = DATA / "events.json" EVENTS_SEED = Path(__file__).parent / "events.json" NTFY_URL = os.environ.get("NTFY_URL", "") +# Same lead pipeline as the flyer form (scouting73.thewichersfamily.com): +# forward /join posts to that container's /submit (Google Sheet + ntfy push). +FORM_UPSTREAM = os.environ.get("FORM_UPSTREAM", "http://scouting73-form:8000/submit") app = FastAPI(title="Pack & Troop 73") app.mount("/static", StaticFiles(directory="/app/static"), name="static") @@ -90,7 +93,7 @@ nav.links{display:flex;align-items:center;gap:26px;flex-wrap:wrap} nav.links a{text-decoration:none;font-weight:600;font-size:15px;color:#333D52;padding:6px 0} nav.links a:hover{color:#1E2F52} nav.links a.on{font-weight:700;color:#1E2F52;border-bottom:2px solid #F0AD2D} -a.joinbtn{font-family:'Archivo';font-weight:700;font-size:15px;background:#F0AD2D;color:#1E2F52 !important;padding:11px 22px;border-radius:999px;border-bottom:none !important} +a.joinbtn{display:inline-block;line-height:1.2;font-family:'Archivo';font-weight:700;font-size:15px;background:#F0AD2D;color:#1E2F52 !important;padding:11px 22px;border-radius:999px;border-bottom:none !important} a.joinbtn:hover{background:#DB9714} .hero{position:relative;display:flex;align-items:flex-end;min-height:520px} .hero .wrap{padding-top:110px;padding-bottom:58px;width:100%} @@ -499,14 +502,26 @@ def join_body(sent=False):