Hero: keep the plain HTML region after hydration, add the slider around it

Replacing the region at hydration made new nodes (a late LCP candidate). The first photo, the title and the buttons now stay; the other slides, arrows and controls are added on top.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-11-16 17:39:06 +01:00
co-authored by Claude Sonnet 5.5
parent 1a59fc3125
commit 3d7bb2d4a6
4 changed files with 146 additions and 185 deletions
+1 -1
View File
@@ -18,7 +18,7 @@ const answer = (title: string) => ({
});
function Title({ load }: { load: LoadJson }) {
return <p data-testid="title">{useHero(heroContent, load).title}</p>;
return <p data-testid="title">{useHero(heroContent, load).hero.title}</p>;
}
const block = (data: unknown) => {