UI: Cookie consent banner is visually intrusive — competes with hero CTA #55
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
The cookie consent banner renders as a prominent block mid-page that interrupts the visual flow between the hero section and the content below. It sits at a key decision point, drawing disproportionate attention and competing with the primary CTA button.
Location
`src/components/cookie-consent.tsx`
Suggested Fix
Changes in
950386d1. 2-second delay: Wrapped the consent check in
setTimeout(() => { visible.value = !hasConsent; }, 2000)so the banner waits 2s before appearing.2. Slide-up transition: Replaced the
return nullearly-exit with CSS-driven visibility:translate-y-fulltranslate-y-0slides it uptransition-all duration-500smooths the animation3. Signal initial value changed to
false: Prevents server-rendered HTML from rendering the banner on-screen before the client-side task runs.Behavior