Added reusable Back to Top button#352
Merged
komalharshita merged 4 commits intoJun 2, 2026
Merged
Conversation
|
@Suhas334 is attempting to deploy a commit to the komalsony234-1530's projects Team on Vercel. A member of the Team first needs to authorize it. |
komalharshita
requested changes
Jun 1, 2026
Owner
komalharshita
left a comment
There was a problem hiding this comment.
Thanks for the contribution. The Back to Top feature is a useful UX improvement, but I cannot approve this PR in its current state.
Main concerns:
- DevPath already contains an existing scroll-to-top button/logic (#scroll-top-btn). This PR introduces a second implementation (#backToTopBtn) instead of extending or improving the existing component.
- Button visibility is controlled through direct inline style changes (style.display = "block"/"none"). Please follow the existing project pattern of toggling CSS classes for UI state management.
- The new JavaScript does not check whether backToTopBtn exists before attaching event listeners, which may lead to runtime errors in future template variations.
- The PR currently has merge conflicts that must be resolved before further review.
Please refactor this feature to reuse the existing scroll-to-top system, resolve merge conflicts, and update the implementation accordingly. Once those changes are made, I’ll be happy to review again.
Contributor
Author
|
hi @komalharshita I make the changes as you expected.You can Review Now and tell if there are any issues. |
Owner
|
@Suhas334 kindly resolve the merge conflicts |
Contributor
Author
|
hi @komalharshita Merge conflicts is solved |
komalharshita
approved these changes
Jun 2, 2026
Owner
|
Approved for merge |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary [required]
This PR adds a reusable "Back to Top" button to improve navigation and user experience across long pages of the website. The button appears after scrolling down and smoothly scrolls the user back to the top when clicked. The implementation is responsive, lightweight, and aligned with the existing UI design.
Related Issue [required]
Closes #267
Type of Change [required]
data/projects.jsonWhat Was Changed [required]
templates/index.htmlstatic/style.cssstatic/script.jsBefore | After


How to Test This PR [required]
Clone this branch:
git checkout feat/back-to-top-buttonInstall dependencies:
pip install -r requirements.txtRun the app:
python app.pyOpen:
http://127.0.0.1:5000Scroll down the page
Verify that:
Test Results [required]