Skip to content

fix(home): apply review feedback on the redesigned home - #327

Merged
wab merged 5 commits into
mainfrom
fix/home-method-white-bg
Nov 16, 2026
Merged

wab merged 5 commits into
mainfrom
fix/home-method-white-bg

Conversation

@wab

@wab wab commented Nov 16, 2026 •

Copy link
Copy Markdown
Contributor

Fixes from Benjamin's review of the redesigned home (#324), plus one on the challenge pages.

Changes

Method section background

  • app/components/home/interventions-section.tsx: the method section (#methode) goes from grey to white. It followed the grey mission section, and the two read as one grey block. The section order now alternates as in the mockup.

Mission illustration animation

  • app/components/home/dashboard-illustration.tsx: the illustration plays its entry animation once a quarter of it is in view. The shapes pop, the windows rise, then the lines, bars and pie grow and the wave draws itself. On hover the windows drift apart and the shapes swell, unless the visitor prefers reduced motion.
  • preset/keyframes.ts: new il-* keyframes for these steps.

AI section animations

  • app/hooks/use-scroll-steps.ts (new, with tests): reveals steps one by one as an element scrolls in, and hides them again on the way back up, as in the mockup.
  • app/components/home/ai-section.tsx: the three layers and the caption use it, in place of Reveal.
  • app/components/home/ai-agent-windows.tsx: each agent window staggers its rows in once visible. The score bars grow, and the insight window shows typing dots before its message.
  • preset/tokens/index.ts, preset/keyframes.ts: typing-dot animation token and typing-hide keyframe. The unused hero-reveal keyframe and token are removed.
  • The moves use transform. The preset translate utility only sets shadow variables and moves nothing.

Server render, no JavaScript and reduced motion all keep every element visible.

Architect CTA always opens the contact page

  • app/components/ui/contact-cta.tsx (new, with tests): the "Échanger avec un architecte" button. It opens the contact page in the current language (/fr/contact or /en/contact).
  • Home: the hero, challenges and why-Ocobo CTAs scrolled to the diagnostic block at the bottom of the page. They now use the component.
  • Challenge pages: the hero CTA scrolled to the diagnostic block too. It now uses the component, and also shows when a page has no diagnostic block. The diagnostic block CTA uses it as well.
  • preset/recipes/button.ts: ContactCta joins the recipe jsx list, so Panda extracts its variant and size props.
  • app/components/ui/button-link.tsx: the arrow is hidden from screen readers. This applies to every ButtonLink: home, challenge pages, and any other page using it. Nothing changes visually.

To check on the Vercel preview

  • The large step numbers of the method cards use gray.light, so they get paler on white. Compare them with the mockup.
  • The e2e homepage test now expects the hero CTA to link to the contact page; CI runs it.
  • Scroll the home slowly through the mission and AI sections to see the animations.
  • This PR edits preset/ (keyframes, tokens, button recipe): run the J1 checklist for preset changes.

Follow-up decisions

@vercel

vercel Bot commented Nov 16, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
website Ready Ready Preview Nov 16, 2026 3:03pm UTC

Request Review

@wab wab changed the title fix(home): white background for the method section fix(home): fix homepage deploy Nov 16, 2026
wab added 2 commits November 16, 2026 15:39
…n the mockup

- The mission illustration plays its entry animation once scrolled into view.
- The AI layers reveal one by one as the section scrolls in, and hide again on the way back up.
- The agent windows stagger their rows in and show typing dots before the insight message.
- Reduced motion and server render keep every element visible.
The hero CTA scrolled to the diagnostic block at the bottom of the page. It now links to the localised contact page, and shows even when the page has no diagnostic block.
@wab wab changed the title fix(home): fix homepage deploy fix(home): apply review feedback on the redesigned home Nov 16, 2026
…rrent language

- New ContactCta component: a button that opens the localised contact page.
- The home hero, challenges and why-Ocobo CTAs used to scroll to the diagnostic block. They now open the contact page.
- The challenge hero and diagnostic CTAs use the component. The challenge hero no longer shows two arrows.
- ButtonLink hides its arrow from screen readers.
- Use transform instead of the preset translate utility, which only sets
  shadow variables: the illustration hover drift, the AI layer rise and
  the agent window rows now move.
- Respect reduced motion on the illustration hover.
- Add ContactCta to the button recipe jsx list so its props are extracted.
- Drop the unused hero-reveal keyframe and token.
- Update the outdated diagnostic anchor comments.
- Test ContactCta on the unprefixed home.
@wab
wab merged commit 12b3814 into main Nov 16, 2026
6 checks passed
@wab
wab deleted the fix/home-method-white-bg branch November 16, 2026 19:35

This branch was successfully deployed

1 active deployment
Preview — f9a2f179 Deployed Nov 16, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant