Give the landing the app's theme and language switches
The blueprint page was dark-only and English-only. It now carries the same two controls the workspace TopBar has, in the nav's top-right cluster: ◐ flips light/dark (a paper palette for the same funnel — surfaces and ink flip, the amber/red accents stay) and VI/EN flips the language, with the whole page of copy, the FAQ, the pricing tables and the VIP badge all following it. Amber text switches to a darker #a16207 on the light theme so it keeps ~4.9:1 on white. The register account is back as the old landing had it: a "ĐĂNG KÝ" button pointing at /app?auth=1, and that URL now actually opens the auth dialog on its sign-up tab (AuthModal takes an initialMode). The nav also collapses to the hamburger below 1160px now, and the logo/tools shrink below 680px, so the row still fits a 360px phone.
This commit is contained in:
@@ -22,6 +22,9 @@
|
||||
--lp-text: #f3f4f6;
|
||||
--lp-muted: #9ca3af;
|
||||
--lp-line: rgba(255, 255, 255, 0.08);
|
||||
/* Amber for text sitting on the page background — darker in light mode,
|
||||
where plain #fbbf24 would fail contrast on white. */
|
||||
--lp-ink-amber: var(--lp-amber);
|
||||
--lp-mono: 'Cousine', ui-monospace, SFMono-Regular, Menlo, monospace;
|
||||
--lp-display: 'Syne', ui-sans-serif, system-ui, sans-serif;
|
||||
|
||||
@@ -31,6 +34,31 @@
|
||||
font-size: 15px;
|
||||
line-height: 1.6;
|
||||
}
|
||||
/* The blueprint is a dark page, but the landing follows the app's theme switch
|
||||
like every other screen. Same funnel, paper palette — only the surfaces and
|
||||
the text flip; the amber/red accents carry over. */
|
||||
[data-theme="light"] .lp {
|
||||
--lp-bg: #f7f7f8;
|
||||
--lp-bg2: #ffffff;
|
||||
--lp-card: #ffffff;
|
||||
--lp-text: #14161c;
|
||||
--lp-muted: #5b6472;
|
||||
--lp-line: rgba(20, 22, 28, 0.12);
|
||||
--lp-ink-amber: #a16207;
|
||||
}
|
||||
[data-theme="light"] .lp-hero h1 { background: linear-gradient(100deg, #14161c 8%, var(--lp-amber) 62%, var(--lp-red) 98%); -webkit-background-clip: text; background-clip: text; }
|
||||
[data-theme="light"] .lp-glow { opacity: 0.5; }
|
||||
[data-theme="light"] .lp-btn,
|
||||
[data-theme="light"] .lp-tool,
|
||||
[data-theme="light"] .lp-tab { background: rgba(20, 22, 28, 0.04); }
|
||||
[data-theme="light"] .lp-stat { background: linear-gradient(180deg, rgba(20, 22, 28, 0.04), transparent); }
|
||||
[data-theme="light"] .lp-bar i { background: rgba(20, 22, 28, 0.12); }
|
||||
[data-theme="light"] .lp-frame { background: #ffffff; }
|
||||
[data-theme="light"] .lp-perf i { background: rgba(20, 22, 28, 0.55); box-shadow: none; }
|
||||
[data-theme="light"] .lp-recipe-card { background: linear-gradient(160deg, #ffffff, #eef0f4); box-shadow: 0 24px 60px rgba(20, 22, 28, 0.18); }
|
||||
[data-theme="light"] .lp-plan.vip { background: linear-gradient(180deg, rgba(245, 158, 11, 0.14), rgba(255, 255, 255, 0.92)); }
|
||||
[data-theme="light"] .lp-toast { background: rgba(255, 255, 255, 0.98); box-shadow: 0 20px 50px rgba(20, 22, 28, 0.22); }
|
||||
|
||||
html { scroll-behavior: smooth; scroll-padding-top: 78px; }
|
||||
.lp ::selection { background: var(--lp-amber); color: #10121a; }
|
||||
.lp-wrap { max-width: 1180px; margin: 0 auto; padding: 0 22px; }
|
||||
@@ -42,7 +70,7 @@ html { scroll-behavior: smooth; scroll-padding-top: 78px; }
|
||||
font-family: var(--lp-mono);
|
||||
font-size: 11px;
|
||||
letter-spacing: 0.22em;
|
||||
color: var(--lp-amber);
|
||||
color: var(--lp-ink-amber);
|
||||
text-transform: uppercase;
|
||||
}
|
||||
.lp-muted { color: var(--lp-muted); }
|
||||
@@ -89,14 +117,29 @@ html { scroll-behavior: smooth; scroll-padding-top: 78px; }
|
||||
}
|
||||
.lp-nav .lp-wrap { display: flex; align-items: center; gap: 18px; height: 62px; }
|
||||
.lp-logo { display: flex; align-items: center; gap: 9px; font-family: var(--lp-display); font-weight: 800; font-size: 18px; }
|
||||
.lp-logo em { font-style: normal; color: var(--lp-amber); }
|
||||
.lp-logo em { font-style: normal; color: var(--lp-ink-amber); }
|
||||
.lp-logo svg { color: var(--lp-amber); }
|
||||
.lp-nav-links { display: flex; gap: 22px; margin-left: 14px; font-size: 13.5px; color: var(--lp-muted); }
|
||||
.lp-nav-links { display: flex; gap: 16px; margin-left: 14px; font-size: 12.5px; color: var(--lp-muted); }
|
||||
.lp-nav-links a:hover { color: var(--lp-text); }
|
||||
.lp-nav .lp-spacer { flex: 1 1 auto; }
|
||||
.lp-tools { display: flex; gap: 6px; }
|
||||
.lp-tool {
|
||||
width: 34px;
|
||||
height: 34px;
|
||||
display: grid;
|
||||
place-items: center;
|
||||
border-radius: 999px;
|
||||
border: 1px solid var(--lp-line);
|
||||
background: rgba(255, 255, 255, 0.04);
|
||||
color: var(--lp-muted);
|
||||
font-family: var(--lp-mono);
|
||||
font-size: 12px;
|
||||
cursor: pointer;
|
||||
}
|
||||
.lp-tool:hover { color: var(--lp-text); border-color: rgba(251, 191, 36, 0.5); }
|
||||
.lp-burger { display: none; }
|
||||
|
||||
@media (max-width: 940px) {
|
||||
@media (max-width: 1160px) {
|
||||
.lp-nav-links, .lp-nav .lp-wrap > .lp-btn { display: none; }
|
||||
.lp-burger {
|
||||
display: inline-flex;
|
||||
@@ -119,7 +162,7 @@ html { scroll-behavior: smooth; scroll-padding-top: 78px; }
|
||||
.lp-sheet a:hover { color: var(--lp-text); }
|
||||
.lp-sheet .lp-btn { margin-top: 12px; }
|
||||
}
|
||||
@media (min-width: 941px) { .lp-sheet { display: none; } }
|
||||
@media (min-width: 1161px) { .lp-sheet { display: none; } }
|
||||
|
||||
/* --- 2. hero ------------------------------------------------------------ */
|
||||
.lp-hero { position: relative; padding: 140px 0 74px; overflow: hidden; }
|
||||
@@ -142,7 +185,7 @@ html { scroll-behavior: smooth; scroll-padding-top: 78px; }
|
||||
border-radius: 999px;
|
||||
border: 1px solid rgba(251, 191, 36, 0.35);
|
||||
background: rgba(251, 191, 36, 0.08);
|
||||
color: var(--lp-amber);
|
||||
color: var(--lp-ink-amber);
|
||||
font-family: var(--lp-mono);
|
||||
font-size: 11px;
|
||||
letter-spacing: 0.12em;
|
||||
@@ -226,7 +269,7 @@ html { scroll-behavior: smooth; scroll-padding-top: 78px; }
|
||||
font-family: var(--lp-mono);
|
||||
cursor: pointer;
|
||||
}
|
||||
.lp-tab[aria-pressed="true"] { border-color: var(--lp-amber); color: var(--lp-amber); background: rgba(251, 191, 36, 0.1); }
|
||||
.lp-tab[aria-pressed="true"] { border-color: var(--lp-amber); color: var(--lp-ink-amber); background: rgba(251, 191, 36, 0.1); }
|
||||
.lp-view { position: relative; border-radius: 16px; overflow: hidden; border: 1px solid var(--lp-line); background: #000; }
|
||||
.lp-view img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; transition: filter 380ms ease; }
|
||||
.lp-hud {
|
||||
@@ -254,7 +297,7 @@ html { scroll-behavior: smooth; scroll-padding-top: 78px; }
|
||||
.lp-lab { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 26px; align-items: start; }
|
||||
.lp-knobs { border: 1px solid var(--lp-line); background: var(--lp-bg2); border-radius: 16px; padding: 22px; display: flex; flex-direction: column; gap: 20px; }
|
||||
.lp-knob label { display: flex; justify-content: space-between; align-items: baseline; font-family: var(--lp-mono); font-size: 11px; letter-spacing: 0.1em; color: var(--lp-muted); }
|
||||
.lp-knob b { color: var(--lp-amber); font-size: 13px; }
|
||||
.lp-knob b { color: var(--lp-ink-amber); font-size: 13px; }
|
||||
.lp input[type=range] { width: 100%; margin-top: 10px; accent-color: var(--lp-amber); }
|
||||
.lp-code { border-top: 1px solid var(--lp-line); padding-top: 16px; font-family: var(--lp-mono); font-size: 11px; color: var(--lp-muted); line-height: 1.9; }
|
||||
.lp-code b { color: var(--lp-cyan); }
|
||||
@@ -262,7 +305,7 @@ html { scroll-behavior: smooth; scroll-padding-top: 78px; }
|
||||
/* --- 6. features -------------------------------------------------------- */
|
||||
.lp-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
|
||||
.lp-feat { border: 1px solid var(--lp-line); background: var(--lp-card); border-radius: 16px; padding: 22px; }
|
||||
.lp-feat svg { color: var(--lp-amber); }
|
||||
.lp-feat svg { color: var(--lp-ink-amber); }
|
||||
.lp-feat h3 { font-size: 17px; margin: 14px 0 8px; }
|
||||
.lp-feat p { color: var(--lp-muted); font-size: 13.5px; }
|
||||
|
||||
@@ -294,7 +337,7 @@ html { scroll-behavior: smooth; scroll-padding-top: 78px; }
|
||||
place-items: center;
|
||||
background: rgba(251, 191, 36, 0.12);
|
||||
border: 1px solid rgba(251, 191, 36, 0.4);
|
||||
color: var(--lp-amber);
|
||||
color: var(--lp-ink-amber);
|
||||
font-family: var(--lp-mono);
|
||||
font-size: 12px;
|
||||
}
|
||||
@@ -318,10 +361,12 @@ html { scroll-behavior: smooth; scroll-padding-top: 78px; }
|
||||
font-size: 9.5px;
|
||||
letter-spacing: 0.12em;
|
||||
}
|
||||
/* Pseudo-element copy cannot call t(), so it follows the page's data-lang. */
|
||||
[data-lang="vi"] .lp-plan.vip::after { content: 'PHỔ BIẾN NHẤT'; }
|
||||
.lp-plan .lp-amount { font-family: var(--lp-display); font-size: 38px; margin: 12px 0 4px; }
|
||||
.lp-plan .lp-amount small { font-family: var(--lp-mono); font-size: 11px; color: var(--lp-muted); }
|
||||
.lp-plan ul { list-style: none; padding: 0; margin: 18px 0 22px; display: flex; flex-direction: column; gap: 9px; font-size: 13.5px; color: var(--lp-muted); }
|
||||
.lp-plan li::before { content: '▸ '; color: var(--lp-amber); }
|
||||
.lp-plan li::before { content: '▸ '; color: var(--lp-ink-amber); }
|
||||
.lp-plan .lp-btn { margin-top: auto; }
|
||||
|
||||
/* --- 9. testimonials + faq --------------------------------------------- */
|
||||
@@ -333,7 +378,7 @@ html { scroll-behavior: smooth; scroll-padding-top: 78px; }
|
||||
.lp-faq { display: flex; flex-direction: column; gap: 10px; max-width: 820px; }
|
||||
.lp-faq details { border: 1px solid var(--lp-line); border-radius: 12px; background: var(--lp-bg2); padding: 14px 18px; }
|
||||
.lp-faq summary { cursor: pointer; font-weight: 600; }
|
||||
.lp-faq summary::marker { color: var(--lp-amber); }
|
||||
.lp-faq summary::marker { color: var(--lp-ink-amber); }
|
||||
.lp-faq p { color: var(--lp-muted); font-size: 13.5px; margin-top: 10px; }
|
||||
|
||||
/* --- 10. final CTA + footer -------------------------------------------- */
|
||||
@@ -364,7 +409,7 @@ html { scroll-behavior: smooth; scroll-padding-top: 78px; }
|
||||
box-shadow: 0 20px 50px rgba(0, 0, 0, 0.55);
|
||||
font-size: 13px;
|
||||
}
|
||||
.lp-toast b { color: var(--lp-amber); }
|
||||
.lp-toast b { color: var(--lp-ink-amber); }
|
||||
|
||||
/* --- responsive --------------------------------------------------------- */
|
||||
@media (max-width: 980px) {
|
||||
@@ -373,6 +418,12 @@ html { scroll-behavior: smooth; scroll-padding-top: 78px; }
|
||||
.lp-recipe-card { transform: none; }
|
||||
}
|
||||
@media (max-width: 680px) {
|
||||
/* logo + theme + language + burger have to fit a 360px phone */
|
||||
.lp-nav .lp-wrap { gap: 10px; }
|
||||
.lp-logo { font-size: 15px; }
|
||||
.lp-logo svg { width: 18px; height: 18px; }
|
||||
.lp-tool { width: 30px; height: 30px; font-size: 11px; }
|
||||
.lp-burger { padding: 6px; }
|
||||
.lp-sec { padding: 64px 0; }
|
||||
.lp-hero { padding: 112px 0 52px; }
|
||||
.lp-grid, .lp-quotes, .lp-price, .lp-stats { grid-template-columns: minmax(0, 1fr); }
|
||||
|
||||
Reference in New Issue
Block a user