-
Notifications
You must be signed in to change notification settings - Fork 120
Feat/scroll to top button #551
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
addedfavicons and changed Randomfavicon.js
- Create reusable ScrollToTop component with smooth animations - Add ChevronUp icon from lucide-react (no asset needed) - Button appears after scrolling 300px - Smooth fade-in/fade-out animations with Framer Motion - Hover effects with scale and lift animations - Responsive design with mobile-friendly sizing - Dark mode compatible - Accessible with proper ARIA labels - Remove duplicate scroll-to-top button from NewsDetailPage - Add component to App.tsx to appear on all pages
❌ Checks Failed
Please fix the following issues before merging: 📝 Code Linting FailedIssue: Code formatting or style violations detected. Specific problems: • Code formatting issues detected How to fix:
Need help with linting? Check out the Linting Guide for Windows Users for detailed instructions. 🛠️ Next Steps
|
🎉 All Checks Passed!
✅ Completed Workflows
🚀 This PR is ready for review and can be safely merged to Great work! Your code meets all quality standards. 👏 |
|
Hii @7se7en72025 |
🎉 All Checks Passed!
✅ Completed Workflows
🚀 This PR is ready for review and can be safely merged to Great work! Your code meets all quality standards. 👏 |
🎉 All Checks Passed!
✅ Completed Workflows
🚀 This PR is ready for review and can be safely merged to Great work! Your code meets all quality standards. 👏 |
📝 Description
This PR adds a reusable scroll-to-top button component that appears on all pages of the website. The button provides users with a convenient way to quickly return to the top of the page after scrolling down, improving navigation and user experience.
Key Features:
🔗 Related Issue
Fixes #546
🔄 Type of Change
📷 Visual Changes
Button Appearance:
Behavior:
🧪 Testing Performed
📱 Browser Compatibility
🖥️ Responsive Design
✅ Test Cases
♿ Accessibility
aria-label="Scroll to top"andaria-hidden="true"on icon)📋 PR Checklist
💭 Additional Notes
Implementation Details:
src/components/shared/ScrollToTop.tsxsrc/App.tsxto appear globally on all pagessrc/pages/News/NewsDetailPage.tsxTechnical Notes:
Files Changed:
src/components/shared/ScrollToTop.tsx(new file)src/App.tsx(added ScrollToTop component)src/pages/News/NewsDetailPage.tsx(removed duplicate button)📚 Reviewer Resources
Thank you for contributing to the Sugar Labs website! 🎉