Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

Add "scroll to top" button when board scrolls down ⬆️

Open
#200 3 comments 0 reactions 1 assignee View on GitHub

Maintainers usually reply within 2 days

@lie75922-cpu is already working on this.

Since Aug 10, 2026.

Assessment

This issue has not been assessed yet.

Description

good first issue

Add "scroll to top" button when board scrolls down ⬆️

File: client/src/pages/Dashboard.jsx

When you have 20+ tasks and scroll down
there's no way to quickly get back to top 💀

Fix:
const [showTop, setShowTop] = useState(false)

useEffect(() => {
const handleScroll = () => setShowTop(window.scrollY > 300)
window.addEventListener('scroll', handleScroll)
return () => window.removeEventListener('scroll', handleScroll)
}, [])

{showTop && (
<button
onClick={() => window.scrollTo({ top: 0, behavior: 'smooth' })}
className="fixed bottom-6 right-6 bg-purple-600
hover:bg-purple-500 text-white rounded-full
w-10 h-10 text-lg shadow-lg transition z-50"

↑
)}
~10 lines! No backend needed 🎯

Dominant language
JavaScript
Stars
39
Forks
105
Avg merge
1d 12h
Merged PRs (30d)
27

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from anoopcodehack/DevBoard

All issues in anoopcodehack/DevBoard

Similar issues

More JavaScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.