Hacktoberfest 2026: die Issues, die Maintainer für den Oktober markiert haben – offen und einsteigerfreundlich. Hacktoberfest-Issues durchsuchen

Auto switch to dark mode at sunset time 🌙

Offen
#563 1 Kommentar 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen

Maintainer antworten meist innerhalb von 2 Tagen

Dieses Issue hat noch niemand übernommen.

Bewertung

Schwierigkeit
2/5
Geschätzter Aufwand
1-3 Stunden
Anfängerfreundlichkeit
57/100
Issue-Typ
Feature
Klarheit
Größtenteils klar
Aktivitätsstatus
Aktiv
Tech-Stack
javascript, react
Bereich
frontend

Rechercherichtung

Start with client/src/pages/Dashboard.jsx, the file named in the issue, and check how its current dark-mode setting is connected to the theme context. The issue suggests checking the time every minute and showing a day/night indicator; confirm how the existing theme is applied before changing it. Done means the mode follows the time of day and the indicator matches the active theme.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Beschreibung

good first issue

Auto switch to dark mode at sunset time 🌙

File: client/src/pages/Dashboard.jsx

Dark mode is always on 💀
Should auto switch based on time of day fr!!

Fix:
const isNightTime = () => {
const hour = new Date().getHours()
return hour >= 18 || hour < 6
}

const [isNight, setIsNight] = useState(isNightTime())

useEffect(() => {
const interval = setInterval(() => {
setIsNight(isNightTime())
}, 60000) // check every minute
return () => clearInterval(interval)
}, [])

// show indicator in navbar:
{isNight ? (
🌙 Night mode
) : (
☀️ Day mode
)}

~12 lines! No backend needed 🎯
Connect to theme context for full effect!!

Vorherrschende Sprache
JavaScript
Sterne
39
Forks
105
Ø Merge
1 T. 12 Std.
Gemergte PRs (30 T.)
27

Entwicklungsumgebung

Erste Schritte

  1. Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
  3. Forken Sie das Repository und arbeiten Sie in einem Branch.
  4. Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.

Mehr aus anoopcodehack/DevBoard

Alle Issues in anoopcodehack/DevBoard

Ähnliche Issues

Weitere Issues zu JavaScript

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.