Skip to content

fix(landing): implement smooth scroll-to-top logic for brand logo#91

Open
ShubhamSingh-online wants to merge 1 commit into
rdodiya:gssoc_developfrom
ShubhamSingh-online:gssoc_develop
Open

fix(landing): implement smooth scroll-to-top logic for brand logo#91
ShubhamSingh-online wants to merge 1 commit into
rdodiya:gssoc_developfrom
ShubhamSingh-online:gssoc_develop

Conversation

@ShubhamSingh-online
Copy link
Copy Markdown

@ShubhamSingh-online ShubhamSingh-online commented May 13, 2026

Implemented smooth scroll-to-top functionality for the brand logo in the Landing Page navbar. This ensures a better user experience by allowing users to quickly return to the top of the page after scrolling through various sections.

Changes
Modified src/pages/public/Landing.jsx to wrap the logo in a Link component.

Added an onClick handler with window.scrollTo({ top: 0, behavior: 'smooth' }).

Restored src/components/customer/Navigation.jsx to a clean state by removing temporary debug code.

Testing
Verified the fix locally on localhost:3000.

Confirmed that clicking the "Restroly" logo from any section smoothly scrolls the viewport to the top

@rdodiya
Copy link
Copy Markdown
Owner

rdodiya commented May 16, 2026

Hi @ShubhamSingh-online ,
Please resolve conflicts and revert changes of package-lock.json as it is not required to commit

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.

2 participants