From 3be82c2ba6f5f150d1cee4f9ce0ea983cc5da9c8 Mon Sep 17 00:00:00 2001 From: Elliot Hopkins <160373706+elliothco@users.noreply.github.com> Date: Sun, 12 Apr 2026 13:07:47 -0700 Subject: [PATCH] Polish landing sections: focus states, FAQ copy, layout CSS --- src/components/sections/EditorialValue.astro | 6 +- src/components/sections/FAQCompact.astro | 54 +++-- src/components/sections/InstallJourney.astro | 52 ++-- src/components/sections/PrivacyBand.astro | 2 +- src/components/sections/UsageMicro.astro | 2 +- src/layouts/BaseLayout.astro | 21 ++ src/styles/global.css | 241 ++++++++++++++++++- 7 files changed, 322 insertions(+), 56 deletions(-) diff --git a/src/components/sections/EditorialValue.astro b/src/components/sections/EditorialValue.astro index 5e760b1..b20c713 100644 --- a/src/components/sections/EditorialValue.astro +++ b/src/components/sections/EditorialValue.astro @@ -1,8 +1,4 @@ ---- -// Product story: editorial blocks, not a card grid. ---- - -
+

Product

Built for the tab in front of you

diff --git a/src/components/sections/FAQCompact.astro b/src/components/sections/FAQCompact.astro index 89b396b..369a425 100644 --- a/src/components/sections/FAQCompact.astro +++ b/src/components/sections/FAQCompact.astro @@ -6,38 +6,50 @@ interface Props { const { tangled } = Astro.props; --- -
+

FAQ

Quick answers

-
+
Why isn't Lede in the store yet? -
-

- We're still in beta and iterating quickly. Installing from the project page keeps early testers close to - the latest fixes while we work toward a store listing. -

+
+
+
+

+ We're still in beta and iterating quickly. Installing from the project page keeps early testers close to + the latest fixes while we work toward a store listing. +

+
+
-
+
Does Lede watch everything I read? -
-

- No. Lede only looks at the active tab when you open it and run a summary or a question. There isn't a - background feed of your browsing. -

+
+
+
+

+ No. Lede only looks at the active tab when you open it and run a summary or a question. There isn't a + background feed of your browsing. +

+
+
-
- Setup or connection errors -
-

- If something won't connect or the README mentions a setting you don't recognize, the - project page has the latest step-by-step - notes—we keep them with the extension itself. -

+
+ What if something won't connect? +
+
+
+

+ If something won't connect or the README mentions a setting you don't recognize, the + project page has the latest step-by-step + notes—we keep them with the extension itself. +

+
+
diff --git a/src/components/sections/InstallJourney.astro b/src/components/sections/InstallJourney.astro index ea4d24f..ec87a64 100644 --- a/src/components/sections/InstallJourney.astro +++ b/src/components/sections/InstallJourney.astro @@ -39,31 +39,35 @@ const { tangled } = Astro.props;
-
+
Step-by-step for Chrome or Firefox -
-
-
-

Chrome

-
    -
  1. Open chrome://extensions/
  2. -
  3. Enable Developer mode
  4. -
  5. Click Load unpacked
  6. -
  7. Select the extension folder that contains manifest.json
  8. -
  9. Optional: shortcuts at chrome://extensions/shortcuts
  10. -
-
-
-

Firefox

-
    -
  1. Open about:debugging#/runtime/this-firefox
  2. -
  3. Click Load Temporary Add-on
  4. -
  5. Select manifest.json inside the extension folder
  6. -
  7. Add-ons → gear → Manage Extension Shortcuts for the hotkey
  8. -
-

- Temporary add-ons clear when you fully quit Firefox—reload during active dev sessions. -

+
+
+
+
+
+

Chrome

+
    +
  1. Open chrome://extensions/
  2. +
  3. Enable Developer mode
  4. +
  5. Click Load unpacked
  6. +
  7. Select the extension folder that contains manifest.json
  8. +
  9. Optional: shortcuts at chrome://extensions/shortcuts
  10. +
+
+
+

Firefox

+
    +
  1. Open about:debugging#/runtime/this-firefox
  2. +
  3. Click Load Temporary Add-on
  4. +
  5. Select manifest.json inside the extension folder
  6. +
  7. Add-ons → gear → Manage Extension Shortcuts for the hotkey
  8. +
+

+ Temporary add-ons clear when you fully quit Firefox—reload during active dev sessions. +

+
+
diff --git a/src/components/sections/PrivacyBand.astro b/src/components/sections/PrivacyBand.astro index 8243e0c..db648cc 100644 --- a/src/components/sections/PrivacyBand.astro +++ b/src/components/sections/PrivacyBand.astro @@ -1,4 +1,4 @@ -
+

Privacy

diff --git a/src/components/sections/UsageMicro.astro b/src/components/sections/UsageMicro.astro index 89cd8c3..38a70bc 100644 --- a/src/components/sections/UsageMicro.astro +++ b/src/components/sections/UsageMicro.astro @@ -1,4 +1,4 @@ -
+

In the popup

Three beats

diff --git a/src/layouts/BaseLayout.astro b/src/layouts/BaseLayout.astro index d8a35b5..d763074 100644 --- a/src/layouts/BaseLayout.astro +++ b/src/layouts/BaseLayout.astro @@ -48,5 +48,26 @@ const resolvedOgImage = ogImage ?? `${String(ogUrl).replace(/\/$/, "")}/images/h + diff --git a/src/styles/global.css b/src/styles/global.css index 6bc43e2..4bb20c9 100644 --- a/src/styles/global.css +++ b/src/styles/global.css @@ -76,7 +76,12 @@ --radius-pill: 14px; --ease-out: cubic-bezier(0.22, 1, 0.36, 1); + --ease-out-disclosure: cubic-bezier(0.22, 1, 0.36, 1); --duration-enter: 0.52s; + --duration-disclosure: 0.42s; + /* Fixed caps for
collapse — animating 0fr→1fr is skipped inconsistently in browsers */ + --disclosure-collapse-max: min(92vh, 52rem); + --faq-collapse-max: min(60vh, 22rem); --content-max: 70ch; --page-gutter: clamp(1rem, 4vw, 2.5rem); @@ -375,10 +380,12 @@ a:focus-visible { font-weight: 700; font-size: 1.125rem; letter-spacing: var(--tracking-display); + transition: transform 0.22s var(--ease-out), color 0.18s var(--ease-out); } .brand-lockup:hover { color: var(--color-ink); + transform: translateY(-1px); } .brand-lockup:focus-visible { @@ -411,10 +418,14 @@ a:focus-visible { font-size: 0.8125rem; text-decoration: none; color: var(--color-ink-secondary); + transition: + color 0.18s var(--ease-out), + transform 0.22s var(--ease-out); } .nav a:hover { color: var(--color-brand); + transform: translateY(-1px); } .firefox-note { @@ -444,6 +455,21 @@ a:focus-visible { align-items: center; justify-content: space-between; gap: var(--space-sm); + transition: background-color 0.22s var(--ease-out), color 0.18s var(--ease-out); +} + +.disclosure summary:hover { + background: color-mix(in oklch, var(--color-subtle) 55%, var(--color-canvas)); +} + +.disclosure summary:focus-visible { + outline: var(--focus-ring); + outline-offset: var(--focus-offset); + border-radius: var(--radius-sm); +} + +.disclosure summary:active { + background: color-mix(in oklch, var(--color-subtle) 72%, var(--color-canvas)); } .disclosure summary::-webkit-details-marker { @@ -457,10 +483,27 @@ a:focus-visible { color: var(--color-brand); font-size: 1.1rem; line-height: 1; + transition: transform var(--duration-disclosure) var(--ease-out-disclosure); + transform: rotate(0deg); } .disclosure[open] summary::after { - content: "–"; + transform: rotate(45deg); +} + +.disclosure.disclosure--animate > .disclosure__collapse { + display: block; + max-height: 0; + overflow: hidden; + transition: max-height var(--duration-disclosure) var(--ease-out-disclosure); +} + +.disclosure.disclosure--animate[open] > .disclosure__collapse { + max-height: var(--disclosure-collapse-max); +} + +.disclosure.disclosure--animate .disclosure__collapse-sheet { + overflow: visible; } .disclosure__body { @@ -720,6 +763,44 @@ a:focus-visible { opacity: 1 !important; transform: none !important; } + + .reveal-scroll { + opacity: 1 !important; + transform: none !important; + animation: none !important; + } + + .disclosure.disclosure--animate > .disclosure__collapse, + .faq-disclosure.faq-disclosure--animate > .faq-disclosure__collapse { + transition-duration: 0.01ms; + } + + .disclosure summary::after, + .faq-disclosure summary::after { + transition-duration: 0.01ms; + } + + .journey-strip__cell, + .journey-band--callout, + .editorial-block, + .nav a, + .footer-links a, + .brand-lockup, + .journey-strip__cell a { + transition: none; + } + + .journey-strip__cell:hover, + .journey-strip__cell:active, + .journey-band--callout:hover, + .editorial-block:hover, + .nav a:hover, + .footer-links a:hover, + .brand-lockup:hover, + .journey-strip__cell:hover .journey-strip__num, + .journey-strip__cell a:hover { + transform: none; + } } /* ========= Redesign: masthead hero + proof, install journey, editorial ========= */ @@ -763,7 +844,9 @@ a:focus-visible { .hero-mast { position: relative; isolation: isolate; - padding-block: calc(var(--space-2xl) + var(--space-sm)) var(--section-y-hero-tail); + /* Breathing room under the header without pushing the headline down the tall demo column */ + padding-top: clamp(var(--space-md), 2.25vw + 0.65rem, var(--space-xl)); + padding-bottom: var(--section-y-hero-tail); border-bottom: 1px solid var(--color-border); background: radial-gradient(ellipse 85% 65% at 0% 0%, var(--color-brand-soft), transparent 58%), @@ -814,7 +897,8 @@ a:focus-visible { .hero-mast__grid { grid-template-columns: minmax(0, 1.02fr) minmax(320px, 1.12fr); gap: clamp(var(--space-2xl), 4vw, var(--space-3xl)); - align-items: center; + /* Top-align copy with the demo — centering pushed the splash block halfway down the tall iframe */ + align-items: start; } } @@ -894,6 +978,16 @@ a:focus-visible { color: var(--color-ink); } +.demo-reset:focus-visible { + outline: var(--focus-ring); + outline-offset: var(--focus-offset); + border-radius: var(--radius-sm); +} + +.demo-reset:active { + color: var(--color-brand); +} + @media (prefers-reduced-motion: no-preference) { .hero-proof__frame:not(.hero-proof__frame--demo) { animation: hero-frame-in 0.85s var(--ease-out) both; @@ -955,6 +1049,16 @@ a:focus-visible { color-mix(in oklch, var(--color-subtle) 72%, var(--color-canvas)) 100% ); border-color: color-mix(in oklch, var(--color-brand) 22%, var(--color-border)); + transition: + border-color 0.24s var(--ease-out), + box-shadow 0.24s var(--ease-out), + transform 0.24s var(--ease-out); +} + +.journey-band--callout:hover { + border-color: color-mix(in oklch, var(--color-brand) 35%, var(--color-border)); + box-shadow: 0 10px 28px color-mix(in oklch, var(--color-brand) 8%, transparent); + transform: translateY(-2px); } .journey-band__text { @@ -990,6 +1094,24 @@ a:focus-visible { display: flex; flex-direction: column; gap: var(--space-xs); + transition: + transform 0.26s var(--ease-out), + border-color 0.22s var(--ease-out), + box-shadow 0.26s var(--ease-out), + background-color 0.22s var(--ease-out); +} + +.journey-strip__cell:hover { + transform: translateY(-4px); + border-color: color-mix(in oklch, var(--color-brand) 28%, var(--color-border)); + box-shadow: + 0 1px 0 color-mix(in oklch, var(--color-brand) 12%, var(--color-border)), + 0 14px 36px color-mix(in oklch, var(--color-ink) 6%, transparent); + background: color-mix(in oklch, var(--color-surface) 92%, var(--color-brand-soft)); +} + +.journey-strip__cell:active { + transform: translateY(-2px); } .journey-strip__num { @@ -999,6 +1121,12 @@ a:focus-visible { color: var(--color-brand); line-height: 0.95; letter-spacing: -0.03em; + transition: transform 0.28s var(--ease-out), color 0.22s var(--ease-out); +} + +.journey-strip__cell:hover .journey-strip__num { + transform: translateY(-2px); + color: color-mix(in oklch, var(--color-brand) 92%, var(--color-ink)); } .journey-strip__title { @@ -1022,6 +1150,12 @@ a:focus-visible { font-weight: 600; font-size: 0.8125rem; margin-top: var(--space-xs); + align-self: flex-start; + transition: color 0.18s var(--ease-out), transform 0.2s var(--ease-out); +} + +.journey-strip__cell a:hover { + transform: translateX(2px); } .section--editorial { @@ -1048,6 +1182,12 @@ a:focus-visible { .editorial-block { padding-top: var(--space-lg); border-top: 3px solid color-mix(in oklch, var(--color-brand) 52%, var(--color-border)); + transition: border-color 0.24s var(--ease-out), transform 0.26s var(--ease-out); +} + +.editorial-block:hover { + border-top-color: color-mix(in oklch, var(--color-brand) 72%, var(--color-border)); + transform: translateY(-2px); } .editorial-block p { @@ -1079,6 +1219,12 @@ a:focus-visible { padding-block: clamp(var(--space-md), 2.5vw, var(--space-xl)); padding-inline: 0; border-top: 1px solid var(--color-border); + border-radius: var(--radius-md); + transition: background-color 0.22s var(--ease-out); +} + +.usage-flow li:hover { + background: color-mix(in oklch, var(--color-subtle) 45%, var(--color-canvas)); } .usage-flow li:last-child { @@ -1151,6 +1297,21 @@ a:focus-visible { align-items: center; justify-content: space-between; gap: var(--space-sm); + transition: background-color 0.22s var(--ease-out), color 0.18s var(--ease-out); +} + +.faq-disclosure summary:hover { + background: color-mix(in oklch, var(--color-subtle) 70%, var(--color-surface)); +} + +.faq-disclosure summary:focus-visible { + outline: var(--focus-ring); + outline-offset: var(--focus-offset); + border-radius: var(--radius-sm); +} + +.faq-disclosure summary:active { + background: color-mix(in oklch, var(--color-subtle) 88%, var(--color-surface)); } .faq-disclosure summary::-webkit-details-marker { @@ -1162,10 +1323,27 @@ a:focus-visible { font-weight: 700; color: var(--color-brand); flex-shrink: 0; + transition: transform var(--duration-disclosure) var(--ease-out-disclosure); + transform: rotate(0deg); } .faq-disclosure[open] summary::after { - content: "–"; + transform: rotate(45deg); +} + +.faq-disclosure.faq-disclosure--animate > .faq-disclosure__collapse { + display: block; + max-height: 0; + overflow: hidden; + transition: max-height var(--duration-disclosure) var(--ease-out-disclosure); +} + +.faq-disclosure.faq-disclosure--animate[open] > .faq-disclosure__collapse { + max-height: var(--faq-collapse-max); +} + +.faq-disclosure.faq-disclosure--animate .faq-disclosure__collapse-sheet { + overflow: visible; } .faq-disclosure__body { @@ -1185,3 +1363,58 @@ a:focus-visible { flex-wrap: wrap; gap: var(--space-sm) var(--space-lg); } + +.footer-links a { + transition: + color 0.18s var(--ease-out), + transform 0.22s var(--ease-out); +} + +.footer-links a:hover { + transform: translateY(-1px); +} + +/* ——— Scroll-driven section entrances (transform + opacity only) ——— */ +.reveal-scroll { + opacity: 1; + transform: none; +} + +@keyframes reveal-scroll-enter { + from { + opacity: 0; + transform: translateY(18px); + } + + to { + opacity: 1; + transform: translateY(0); + } +} + +@media (prefers-reduced-motion: no-preference) { + @supports (animation-timeline: view(block)) { + .reveal-scroll { + opacity: 0; + transform: translateY(18px); + animation: reveal-scroll-enter linear forwards; + animation-timeline: view(block); + animation-range: entry 8% cover 32%; + } + } + + @supports not (animation-timeline: view(block)) { + .reveal-scroll:not(.reveal-scroll--visible) { + opacity: 0; + transform: translateY(18px); + } + + .reveal-scroll.reveal-scroll--visible { + opacity: 1; + transform: none; + transition: + opacity 0.55s var(--ease-out), + transform 0.55s var(--ease-out); + } + } +} -- 2.51.2