feat: unified landing page with auth-aware gate + /dashboard.php

Removes the logged-in vs logged-out page bifurcation. index.php now
always renders the public landing (tools overview, hero, trust section)
with auth-conditional nav/hero CTAs and a two-column member/register
gate shown only to unauthenticated visitors. Authenticated workbench
extracted to new dashboard.php. Adds 8 new i18n keys across all 4
languages and new CSS for auth-nav, hero CTA, two-column gate, and
register buttons.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-05-18 06:45:44 +02:00
parent 93b28b8783
commit f0b7d343a3
4 changed files with 444 additions and 80 deletions
+249
View File
@@ -5319,3 +5319,252 @@ body.lt-landing {
.lt-preview-hero__art { max-width: 100%; }
.lt-preview-output pre { font-size: 0.72rem; }
}
/* ═══════════════════════════════════════════════════════════════════════════
AUTH-AWARE LANDING PAGE
═══════════════════════════════════════════════════════════════════════════ */
/* ── Nav: logged-in state ───────────────────────────────────────────────── */
.lt-auth-nav {
display: flex;
align-items: center;
gap: 12px;
}
.lt-auth-nav__email {
font-family: 'IBM Plex Mono', monospace;
font-size: 0.72rem;
color: rgba(255,255,255,0.55);
max-width: 200px;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.lt-nav__cta--enter {
background: #00205b;
border: 1px solid rgba(255,255,255,0.20);
}
.lt-nav__cta--enter:hover {
background: #0a3080;
box-shadow: 0 6px 18px rgba(0,32,91,0.50);
}
/* ── Hero: logged-in CTA ─────────────────────────────────────────────────── */
.lt-hero__auth-cta {
display: flex;
flex-direction: column;
align-items: center;
gap: 10px;
margin-top: 0.5rem;
}
.lt-hero__auth-check {
display: inline-flex;
align-items: center;
justify-content: center;
width: 32px;
height: 32px;
border-radius: 50%;
background: rgba(0,212,128,0.18);
border: 1.5px solid rgba(0,212,128,0.45);
color: #00d480;
font-size: 1rem;
font-weight: 700;
flex-shrink: 0;
}
.lt-hero__auth-label {
font-family: 'IBM Plex Mono', monospace;
font-size: 0.75rem;
color: rgba(255,255,255,0.55);
letter-spacing: 0.04em;
}
.lt-hero__enter-btn {
display: inline-flex;
align-items: center;
height: 54px;
padding: 0 36px;
border-radius: 10px;
background: var(--lt-red);
color: #fff;
font-weight: 700;
font-size: 1.05rem;
letter-spacing: 0.02em;
text-decoration: none;
margin-top: 0.5rem;
transition: background 150ms, transform 150ms, box-shadow 150ms;
box-shadow: 0 6px 24px rgba(186,12,47,0.40);
}
.lt-hero__enter-btn:hover {
background: #9a0a26;
transform: translateY(-2px);
box-shadow: 0 12px 36px rgba(186,12,47,0.55);
}
/* ── Tools section: enter strip for logged-in users ─────────────────────── */
.lt-tools__enter-strip {
display: flex;
justify-content: center;
margin-top: 2.5rem;
}
.lt-tools__enter-strip .lt-access-btn {
max-width: 320px;
width: 100%;
}
/* ── Access gate: two-column layout ─────────────────────────────────────── */
.lt-gate.lt-access {
padding: 0;
overflow: visible;
}
.lt-gate.lt-access::before { display: none; }
.lt-gate__grid {
display: grid;
grid-template-columns: 1fr 1fr;
min-height: 420px;
}
.lt-gate__card {
position: relative;
padding: clamp(2.5rem, 5vw, 4rem) clamp(1.5rem, 4vw, 3.5rem);
display: flex;
flex-direction: column;
align-items: flex-start;
gap: 0;
}
.lt-gate__card--member {
background: var(--lt-navy);
}
.lt-gate__card--member::after {
content: '';
position: absolute;
top: 10%;
right: 0;
bottom: 10%;
width: 1px;
background: rgba(255,255,255,0.10);
}
.lt-gate__card--register {
background: linear-gradient(145deg, #00205b 0%, #001540 100%);
}
.lt-gate__card-eyebrow {
font-family: 'IBM Plex Mono', monospace;
font-size: 0.68rem;
font-weight: 700;
letter-spacing: 0.12em;
text-transform: uppercase;
color: var(--lt-gold);
margin: 0 0 0.9rem;
opacity: 0.80;
}
.lt-gate__card-title {
font-family: 'Crimson Pro', serif;
font-size: clamp(1.6rem, 2.8vw, 2.2rem);
font-weight: 700;
color: #fff;
margin: 0 0 0.65rem;
line-height: 1.1;
}
.lt-gate__card-note {
color: rgba(255,255,255,0.55);
font-size: 0.90rem;
line-height: 1.72;
margin: 0 0 1.8rem;
max-width: 38ch;
}
/* inherit fallback-login styles inside cards */
.lt-gate__card .fallback-login summary {
color: rgba(255,255,255,0.42);
cursor: pointer;
font-size: 0.84rem;
margin-top: 0.6rem;
list-style: none;
}
.lt-gate__card .passcode-form {
margin-top: 1rem;
text-align: left;
width: 100%;
}
.lt-gate__card .passcode-form label {
display: block;
color: rgba(255,255,255,0.60);
font-size: 0.84rem;
margin-bottom: 4px;
}
.lt-gate__card .passcode-form input {
width: 100%;
box-sizing: border-box;
padding: 10px 14px;
border: 1px solid rgba(255,255,255,0.16);
border-radius: 8px;
background: rgba(255,255,255,0.07);
color: #fff;
font-size: 0.95rem;
margin-bottom: 10px;
outline: none;
transition: border-color 150ms;
}
.lt-gate__card .passcode-form input:focus { border-color: rgba(244,197,66,0.50); }
.lt-gate__card .passcode-row { display: flex; gap: 8px; }
.lt-gate__card .passcode-row input { flex: 1; margin-bottom: 0; }
.lt-gate__card .passcode-row button {
padding: 0 18px;
background: var(--lt-gold);
color: var(--lt-navy);
border: none;
border-radius: 8px;
font-weight: 700;
font-size: 0.90rem;
cursor: pointer;
transition: background 140ms;
}
.lt-gate__card .passcode-row button:hover { background: #e2b230; }
.lt-gate__card .form-status { color: rgba(255,255,255,0.55); font-size: 0.82rem; margin-top: 8px; }
.lt-gate__card .lt-access-btn { width: 100%; box-sizing: border-box; }
/* ── Register buttons ────────────────────────────────────────────────────── */
.lt-register-btn {
display: flex;
align-items: center;
justify-content: center;
gap: 10px;
width: 100%;
box-sizing: border-box;
min-height: 50px;
padding: 0 22px;
border-radius: 10px;
font-weight: 600;
font-size: 0.96rem;
text-decoration: none;
transition: background 150ms, transform 140ms, box-shadow 140ms;
margin-bottom: 0.75rem;
}
.lt-register-btn--google {
background: #fff;
color: #3c3c3c;
border: none;
box-shadow: 0 4px 16px rgba(0,0,0,0.25);
}
.lt-register-btn--google:hover {
background: #f1f1f1;
transform: translateY(-1px);
box-shadow: 0 8px 22px rgba(0,0,0,0.32);
}
.lt-register-btn--email {
background: transparent;
color: rgba(255,255,255,0.68);
border: 1px solid rgba(255,255,255,0.20);
margin-bottom: 0;
}
.lt-register-btn--email:hover {
background: rgba(255,255,255,0.07);
color: #fff;
border-color: rgba(255,255,255,0.40);
}
/* ── Responsive ─────────────────────────────────────────────────────────── */
@media (max-width: 760px) {
.lt-gate__grid { grid-template-columns: 1fr; }
.lt-gate__card--member::after { display: none; }
.lt-gate__card--member {
border-bottom: 1px solid rgba(255,255,255,0.10);
}
.lt-auth-nav__email { display: none; }
.lt-hero__auth-cta { gap: 8px; }
}