public: landing + pricing + legal pages, apex-ready, lawyer-reviewed
Adds the unauthenticated surface that's needed to invite outsiders:
- Landing (/) — dual-purpose root: dashboard for logged-in users,
landing for everyone else. New maybe_current_user soft-auth helper
in app/auth.py supports it without disturbing the per-route
require_token deps on /news, /log, /upload, /settings.
- About, Pricing, Disclaimer, Terms, Privacy — own router
(app/routers/public.py), no auth dep, shared public_base layout
(brand link, thin nav, footer with legal links + ICO ref + date).
- Editorial positioning: news aggregator with a macro brain; tagline
"Understand markets. Don't gamble on them."; anti-trading-as-gambling
stance carried through About and Landing.
Legal pass following an independent lawyer-style review:
- Privacy: explicit UK-GDPR Art. 6 lawful-basis section; Art. 22
automated-decision line; explicit consent for sessionStorage sync
key (PECR); 30-day IP-log retention; Art. 21 objection right;
Children clause; Art. 33/34 breach-notification clause;
international-transfer mechanism (IDTA + UK Addendum). ICO
registration ZC098928 surfaced at the top.
- Pricing: paid-card AI-portfolio-analysis bullet rewritten to remove
advice-shaped wording ("what would invalidate the posture" gone);
added italic carve-out citing FSMA / FCA COBS.
- Disclaimer: separate EU/EEA carve-out + MAR 596/2014 Art. 3(1)(34)
commentator safe-harbour; "qualifies the Terms" line; hallucination
wording fixed.
- Terms: cl.4 explicit AI-training prohibition + harassment line;
cl.5 CCR 2013 14-day cancellation; cl.7 softened AI copyright
claim under CDPA s.9(3) ambiguity; cl.8 proportionate suspension +
pro-rata refund for paid users; cl.10 CRA 2015 Pt 1 statutory-rights
carve-out from the liability cap; cl.11 right to close account on
material change; cl.12 non-exclusive jurisdiction + UK consumer
local courts.
Code-side enforcement of the Privacy claim:
- openrouter.py: outbound OpenRouter calls now carry
X-OR-Allow-Training: false. DeepSeek doesn't expose a per-request
flag; the Privacy page discloses this caveat verbatim.
Apex domain prep:
- branding.APP_URL flipped to https://read.markets (was app.). DNS for
the apex already resolves; pending operator NPM step is a cert that
covers the bare apex + a 301 from app.read.markets. No hard-coded
subdomain references remain in code (verified with grep).
Nav + chrome:
- app dropdown gains Pricing / Terms / Privacy / Disclaimer links.
- login.html gains a small legal-links footer for the
highest-leverage moment to surface them.
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
parent
6f9a710726
commit
f1903e1e61
17 changed files with 1436 additions and 10 deletions
|
|
@ -1421,3 +1421,290 @@ details[open] .pf-analysis__head-left::before { content: "▾ "; }
|
|||
::-webkit-scrollbar-track { background: var(--bg); }
|
||||
::-webkit-scrollbar-thumb { background: var(--dim); border-radius: 0; }
|
||||
::-webkit-scrollbar-thumb:hover { background: var(--muted); }
|
||||
|
||||
/* ============================================================
|
||||
* Public pages — landing, pricing, about, terms, privacy, disclaimer.
|
||||
* Shared by all templates extending public_base.html. Visual language
|
||||
* matches the app shell (same palette, monospace brand, restrained
|
||||
* typography) but without dashboard chrome.
|
||||
* ============================================================ */
|
||||
|
||||
.public-page { background: var(--bg); }
|
||||
|
||||
.public-shell {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
min-height: 100vh;
|
||||
max-width: 1080px;
|
||||
margin: 0 auto;
|
||||
padding: 0 24px;
|
||||
}
|
||||
|
||||
.public-header {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
padding: 22px 0 16px;
|
||||
border-bottom: 1px solid var(--border);
|
||||
}
|
||||
.public-header__brand {
|
||||
color: var(--accent);
|
||||
font-weight: 700;
|
||||
text-decoration: none;
|
||||
font-family: var(--font-mono);
|
||||
font-size: 15px;
|
||||
letter-spacing: 0.01em;
|
||||
}
|
||||
.public-header__brand::before { content: "▰ "; opacity: 0.6; }
|
||||
.public-header__brand:hover { color: var(--text); }
|
||||
.public-header__nav { display: flex; align-items: center; gap: 22px; }
|
||||
.public-header__nav a {
|
||||
color: var(--muted);
|
||||
font-size: 13px;
|
||||
text-decoration: none;
|
||||
}
|
||||
.public-header__nav a:hover,
|
||||
.public-header__nav a.active { color: var(--text); }
|
||||
.public-header__cta {
|
||||
color: var(--accent) !important;
|
||||
border: 1px solid var(--accent);
|
||||
padding: 6px 14px;
|
||||
border-radius: 3px;
|
||||
}
|
||||
.public-header__cta:hover { background: var(--accent); color: var(--bg) !important; }
|
||||
|
||||
.public-main {
|
||||
flex: 1;
|
||||
padding: 48px 0 64px;
|
||||
}
|
||||
|
||||
.public-footer {
|
||||
border-top: 1px solid var(--border);
|
||||
padding: 28px 0 36px;
|
||||
margin-top: 24px;
|
||||
font-size: 12px;
|
||||
color: var(--muted);
|
||||
}
|
||||
.public-footer__inner {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 14px;
|
||||
}
|
||||
.public-footer__brand strong { color: var(--text); margin-right: 10px; }
|
||||
.public-footer__tagline { color: var(--muted); }
|
||||
.public-footer__links { display: flex; flex-wrap: wrap; gap: 16px; }
|
||||
.public-footer__links a { color: var(--muted); text-decoration: none; }
|
||||
.public-footer__links a:hover { color: var(--accent); }
|
||||
.public-footer__meta { color: var(--dim); font-size: 11px; }
|
||||
|
||||
/* --- Hero (landing) -------------------------------------------------- */
|
||||
|
||||
.hero {
|
||||
padding: 32px 0 48px;
|
||||
border-bottom: 1px solid var(--border);
|
||||
margin-bottom: 48px;
|
||||
}
|
||||
.hero__brand {
|
||||
color: var(--muted);
|
||||
font-family: var(--font-mono);
|
||||
font-size: 12px;
|
||||
letter-spacing: 0.08em;
|
||||
text-transform: uppercase;
|
||||
}
|
||||
.hero__headline {
|
||||
font-size: clamp(28px, 5vw, 44px);
|
||||
font-weight: 700;
|
||||
line-height: 1.15;
|
||||
color: var(--text);
|
||||
margin: 12px 0 14px;
|
||||
letter-spacing: -0.01em;
|
||||
}
|
||||
.hero__subhead {
|
||||
font-size: 16px;
|
||||
color: var(--muted);
|
||||
max-width: 640px;
|
||||
line-height: 1.55;
|
||||
margin: 0 0 24px;
|
||||
}
|
||||
.hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; }
|
||||
.hero__ctas .btn-primary,
|
||||
.hero__ctas .btn-secondary {
|
||||
display: inline-block;
|
||||
padding: 10px 22px;
|
||||
border-radius: 3px;
|
||||
font-size: 13.5px;
|
||||
font-weight: 500;
|
||||
text-decoration: none;
|
||||
}
|
||||
/* Qualify with `a` so we beat `a { color: var(--accent) }` and any
|
||||
:link/:visited UA defaults. Without `a.btn-primary` the cascade can
|
||||
resolve in favour of the visited-link color on some browsers and the
|
||||
label disappears against the accent background. */
|
||||
a.btn-primary,
|
||||
a.btn-primary:link,
|
||||
a.btn-primary:visited {
|
||||
background: var(--accent);
|
||||
color: var(--bg);
|
||||
border: 1px solid var(--accent);
|
||||
}
|
||||
a.btn-primary:hover { background: transparent; color: var(--accent); }
|
||||
a.btn-secondary,
|
||||
a.btn-secondary:link,
|
||||
a.btn-secondary:visited {
|
||||
background: transparent;
|
||||
color: var(--text);
|
||||
border: 1px solid var(--border);
|
||||
}
|
||||
a.btn-secondary:hover { color: var(--accent); border-color: var(--accent); }
|
||||
|
||||
/* --- Feature blocks (landing) --------------------------------------- */
|
||||
|
||||
.feature-grid {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
|
||||
gap: 24px;
|
||||
margin: 8px 0 56px;
|
||||
}
|
||||
.feature-card {
|
||||
border: 1px solid var(--border);
|
||||
border-radius: 4px;
|
||||
padding: 22px 22px 24px;
|
||||
background: var(--surface);
|
||||
}
|
||||
.feature-card__tag {
|
||||
font-family: var(--font-mono);
|
||||
font-size: 10.5px;
|
||||
color: var(--accent);
|
||||
letter-spacing: 0.08em;
|
||||
text-transform: uppercase;
|
||||
margin-bottom: 10px;
|
||||
}
|
||||
.feature-card__title {
|
||||
font-size: 17px;
|
||||
font-weight: 600;
|
||||
color: var(--text);
|
||||
margin: 0 0 10px;
|
||||
}
|
||||
.feature-card__body {
|
||||
font-size: 13.5px;
|
||||
line-height: 1.6;
|
||||
color: var(--muted);
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
/* --- Section primitives reused across pricing/about/legal ---------- */
|
||||
|
||||
.public-section {
|
||||
margin: 0 0 56px;
|
||||
}
|
||||
.public-section__head {
|
||||
font-size: 20px;
|
||||
font-weight: 600;
|
||||
color: var(--text);
|
||||
margin: 0 0 16px;
|
||||
padding-bottom: 8px;
|
||||
border-bottom: 1px solid var(--border);
|
||||
}
|
||||
.public-section h3 {
|
||||
font-size: 15px;
|
||||
font-weight: 600;
|
||||
color: var(--text);
|
||||
margin: 24px 0 8px;
|
||||
}
|
||||
.public-section p,
|
||||
.public-section li {
|
||||
font-size: 14px;
|
||||
line-height: 1.65;
|
||||
color: var(--text);
|
||||
}
|
||||
.public-section p { margin: 0 0 14px; }
|
||||
.public-section ul {
|
||||
margin: 0 0 16px;
|
||||
padding-left: 22px;
|
||||
}
|
||||
.public-section li { margin-bottom: 6px; }
|
||||
.public-section a { color: var(--accent); }
|
||||
|
||||
.public-section--callout {
|
||||
border-left: 3px solid var(--accent);
|
||||
padding: 16px 22px;
|
||||
background: var(--surface);
|
||||
border-radius: 0 4px 4px 0;
|
||||
margin: 0 0 32px;
|
||||
}
|
||||
.public-section--warning {
|
||||
border-left-color: var(--negative);
|
||||
background: color-mix(in srgb, var(--negative) 6%, var(--bg));
|
||||
}
|
||||
.public-section--warning a { color: var(--text); }
|
||||
|
||||
/* --- "What this is not" strip on landing --------------------------- */
|
||||
|
||||
.not-strip {
|
||||
border: 1px dashed var(--border);
|
||||
padding: 18px 22px;
|
||||
border-radius: 4px;
|
||||
margin: 0 0 56px;
|
||||
background: var(--surface);
|
||||
}
|
||||
.not-strip strong { color: var(--text); }
|
||||
.not-strip ul { display: flex; flex-wrap: wrap; gap: 18px 28px; margin: 8px 0 0; padding: 0; list-style: none; }
|
||||
.not-strip li { color: var(--muted); font-size: 13px; }
|
||||
.not-strip li::before { content: "✕ "; color: var(--negative); font-weight: 700; margin-right: 4px; }
|
||||
|
||||
/* --- Pricing comparison -------------------------------------------- */
|
||||
|
||||
.tier-grid {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
|
||||
gap: 18px;
|
||||
margin: 8px 0 24px;
|
||||
}
|
||||
.tier-card {
|
||||
border: 1px solid var(--border);
|
||||
border-radius: 4px;
|
||||
padding: 22px 22px 26px;
|
||||
background: var(--surface);
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
}
|
||||
.tier-card--featured {
|
||||
border-color: var(--accent);
|
||||
box-shadow: 0 0 0 1px var(--accent) inset;
|
||||
}
|
||||
.tier-card__name {
|
||||
font-family: var(--font-mono);
|
||||
font-size: 11px;
|
||||
color: var(--muted);
|
||||
letter-spacing: 0.08em;
|
||||
text-transform: uppercase;
|
||||
margin-bottom: 8px;
|
||||
}
|
||||
.tier-card__price {
|
||||
font-size: 22px;
|
||||
font-weight: 700;
|
||||
color: var(--text);
|
||||
margin-bottom: 4px;
|
||||
}
|
||||
.tier-card__price-hint {
|
||||
font-size: 12px;
|
||||
color: var(--muted);
|
||||
margin-bottom: 18px;
|
||||
}
|
||||
.tier-card ul {
|
||||
list-style: none;
|
||||
padding: 0;
|
||||
margin: 0 0 22px;
|
||||
flex: 1;
|
||||
}
|
||||
.tier-card li {
|
||||
font-size: 13.5px;
|
||||
color: var(--text);
|
||||
padding: 6px 0;
|
||||
border-bottom: 1px solid var(--border);
|
||||
}
|
||||
.tier-card li:last-child { border-bottom: 0; }
|
||||
.tier-card li::before { content: "✓ "; color: var(--positive); font-weight: 700; margin-right: 4px; }
|
||||
.tier-card li.tier-card__excluded { color: var(--muted); }
|
||||
.tier-card li.tier-card__excluded::before { content: "✕ "; color: var(--dim); }
|
||||
.tier-card__cta { margin-top: auto; }
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue