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

Show online/offline status indicator in navbar 🔴🟢

Open
#323 2 comments 0 reactions 1 assignee View on GitHub

Maintainers usually reply within 2 days

@sudarshan-murade is already working on this.

Since Aug 18, 2026.

  • #335 by @sudarshan-murade — closed without merging

Assessment

This issue has not been assessed yet.

Description

good first issue

Show online/offline status indicator in navbar 🔴🟢

File: client/src/pages/Dashboard.jsx

If internet drops the app silently fails 💀
Users don't know if they're offline fr!!

Fix:
const [isOnline, setIsOnline] = useState(navigator.onLine)

useEffect(() => {
const handleOnline = () => setIsOnline(true)
const handleOffline = () => setIsOnline(false)
window.addEventListener('online', handleOnline)
window.addEventListener('offline', handleOffline)
return () => {
window.removeEventListener('online', handleOnline)
window.removeEventListener('offline', handleOffline)
}
}, [])

{!isOnline && (

🔴 offline

)}

~12 lines! No backend needed 🎯
Uses native browser events ✅

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.