The code returns the following error:
A tree hydrated but some attributes of the server rendered HTML didn't match the client properties. This won't be patched up. This can happen if a SSR-ed Client Component used:
- A server/client branch `if (typeof window !== 'undefined')`.
- Variable input such as `Date.now()` or `Math.random()` which changes each time it's called.
- Date formatting in a user's locale which doesn't match the server.
- External changing data without sending a snapshot of it along with the HTML.
- Invalid HTML tag nesting.
It can also happen if the client has a browser extension installed which messes with the HTML before React loaded.
https://react.dev/link/hydration-mismatch
...
<InnerScrollAndFocusHandler segmentPath={[...]} focusAndScrollRef={{apply:false, ...}}>
<ErrorBoundary errorComponent={undefined} errorStyles={undefined} errorScripts={undefined}>
<LoadingBoundary name="/" loading={null}>
<HTTPAccessFallbackBoundary notFound={<SegmentViewNode>} forbidden={undefined} unauthorized={undefined}>
<HTTPAccessFallbackErrorBoundary pathname="/" notFound={<SegmentViewNode>} forbidden={undefined} ...>
<RedirectBoundary>
<RedirectErrorBoundary router={{...}}>
<InnerLayoutRouter url="/" tree={[...]} params={{}} cacheNode={{rsc:<Fragment>, ...}} ...>
<SegmentViewNode type="page" pagePath="page.tsx">
<SegmentTrieNode>
<Home>
<main>
<Navigation>
<Hero>
<section id="hero" className="relative f...">
<div>
<div className="absolute i..." aria-hidden="true">
<div
className="absolute rounded-full bg-[#C8A951]/10"
style={{
+ width: "28.595053478458095px"
- width: "41.4115px"
+ height: "41.87447137866077px"
- height: "51.6437px"
+ left: "52.60046618680194%"
- left: "60.6711%"
+ bottom: "-10%"
- bottom: "-10%"
+ animation: "bubbleRise 6.742142954313479s ease-in infinite"
+ animationDelay: "1.516544518039642s"
- animation-duration: "6.29506s"
- animation-timing-function: "ease-in"
- animation-iteration-count: "infinite"
- animation-direction: "normal"
- animation-fill-mode: "none"
- animation-play-state: "running"
- animation-name: "bubbleRise"
- animation-timeline: "auto"
- animation-range-start: "normal"
- animation-range-end: "normal"
- animation-delay: "4.81622s"
}}
>
<div
className="absolute rounded-full bg-[#C8A951]/10"
style={{
+ width: "46.26027427892427px"
- width: "55.6412px"
+ height: "53.02022201857938px"
- height: "37.749px"
+ left: "50.28988620934175%"
- left: "79.5781%"
+ bottom: "-10%"
- bottom: "-10%"
+ animation: "bubbleRise 9.99040167... (truncated)
Revise the code to address the error.
I was previewing: /