Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
<!-- Thank you for sending a pull request ❤️ --> ## Issues Identification Closes: #296 ## Description Implemented a "Scroll to Top" button that allows users to quickly navigate back to the top of the page, enhancing user experience for long pages. ### Details Include any detailed information about the changes in this pull request. Design Considerations: - Ensure mobile responsiveness and accessibility. - Use a smooth scrolling animation. - Consider the size, visibility, and contrast of the button for better UX. Tasks performed: 1 Design the "Scroll to Top" button (icon, size, color). 2 Implement the button in HTML/CSS. 3 Add JavaScript for the smooth scroll functionality. 4 Set the button to appear only when the user scrolls down (e.g., 200px from the top). 5 Test the feature across different devices and browsers. 6 Ensure the feature does not interfere with other elements on the page. ## Types of Changes _Please check the boxes that apply_ - [ ] Bugfix (non-breaking change that fixes an issue) - [x] New feature (non-breaking change that adds functionality) - [ ] Breaking change (fix or feature that would cause existing functionality to not work as expected) - [ ] Documentation update (Documentation content changed) - [ ] Other (please describe): ## Checklist _Please check the boxes that apply_ - [x] My code follows the style guidelines of this project - [x] I have performed a self-review of my own code - [x] I have commented my code, particularly in hard-to-understand areas - [ ] I have made corresponding changes to the documentation - [x] My changes generate no new warnings - [x] My changes do not break the current system and pass all existing test cases - [ ] I have added tests that prove my fix is effective or that my feature works - [ ] New and existing unit tests pass locally with my changes - [ ] Any dependent changes have been merged and published in downstream modules ## Screenshots https://github.com/user-attachments/assets/44f1113c-3f90-472e-a561-30dc7d116190 If applicable, please attach screenshots of the changes made to the user interface. ## Additional Information Please provide any other information that is relevant to this pull request. <!-- We're looking forward to merging your contribution!! --> <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit - **New Features** - Introduced a "Scroll to Top" button for improved navigation. - The button appears based on user scrolling behavior and allows users to quickly return to the top of the page. - **Style** - Added styles for the new button, including visibility, positioning, and mobile responsiveness. <!-- end of auto-generated comment: release notes by coderabbit.ai -->
- Loading branch information