yogiyadav13 / bookbrainz

GNU General Public License v2.0
0 stars 24 forks source link

FIxed Issue #17 - Dark Mode option #33

Open rushil-118 opened 1 week ago

rushil-118 commented 1 week ago

Problem

Add a button in the navbar to toggle the lighter mode to darker mode.

Solution

Added a state variable and on clicking the icon on navbar it changes the state variable changing the background color The state variable is created in layout.js file and sent as prop to index.js file in the src/client/components/pages

Areas of Impact

Before adding darkMode -> Screenshot from 2024-07-05 12-41-22

After Adding darkMode -> Screenshot from 2024-07-05 12-41-30