diff --git a/app/main.py b/app/main.py index 74a188a..21d4087 100644 --- a/app/main.py +++ b/app/main.py @@ -436,6 +436,11 @@ def yandex_verify(): Verification: b847b9b35f967fcc ''') + +@app.get("/privacy", response_class=HTMLResponse, include_in_schema=False) +def privacy_page(request: Request): + return templates.TemplateResponse("privacy.html", {"request": request}) + @app.get("/robots.txt", include_in_schema=False) def robots_txt(): from fastapi.responses import FileResponse diff --git a/app/static/style.css b/app/static/style.css index 4ca4963..3a4ed35 100644 --- a/app/static/style.css +++ b/app/static/style.css @@ -1560,6 +1560,39 @@ button { } /* Textarea in access modal */ + +/* Consent checkbox */ +.access-consent-field { + margin-top: 12px; +} +.access-consent-label { + display: flex; + align-items: flex-start; + gap: 10px; + cursor: pointer; + font-size: 0.82rem; + color: #7a9abd; + line-height: 1.45; +} +.access-consent-label input[type=checkbox] { + margin-top: 2px; + flex-shrink: 0; + width: 15px; + height: 15px; + accent-color: #2d8cf0; + cursor: pointer; +} +.access-consent-link { + color: #5b9bd5; + text-decoration: underline; +} +.access-consent-link:hover { color: #82baee; } +.am-invalid-consent .access-consent-label { + color: rgba(220, 70, 70, 0.85); +} +.am-invalid-consent .access-consent-link { + color: rgba(220, 100, 100, 0.9); +} .access-textarea { background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.12); diff --git a/app/templates/login.html b/app/templates/login.html index 7acb512..58056bb 100644 --- a/app/templates/login.html +++ b/app/templates/login.html @@ -142,6 +142,12 @@
Загрузка...
+ +