Hacktoberfest 2026:維護者為十月標記出來的 issue,仍然開放、適合新手。 瀏覽 Hacktoberfest issue

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

未關閉
#200 3 則留言 0 個 reaction 已指派 1 人 在 GitHub 檢視

維護者通常 1 天內回覆

@lie75922-cpu 已經在處理了。

開始於 2026年8月10日。

評估

這個 Issue 還沒有評估資料。

描述

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 🎯

主要語言
JavaScript
星號
39
分支
105
平均合併
1 天 20 小時
30 天內合併 PR
28

環境準備

  • 沒有 Dockerfile 或 Docker Compose 檔案
  • 沒有 Pull Request 範本
  • 閱讀貢獻指南

從這裡開始

  1. 先讀完整個 Issue,再讀專案的貢獻指南。
  2. 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
  3. Fork 儲存庫,在一個分支上完成修改。
  4. 送出 Pull Request,並在描述裡引用這個 Issue 編號。

anoopcodehack/DevBoard 的其他 Issue

查看 anoopcodehack/DevBoard 的全部 Issue

相似的 Issue

更多 JavaScript Issue

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。