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
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](https://github.com/yogiyadav13/bookbrainz/assets/144247815/93a81317-5121-4f37-aa64-aff4e94d15f6)
After Adding darkMode ->![Screenshot from 2024-07-05 12-41-30](https://github.com/yogiyadav13/bookbrainz/assets/144247815/3f90b06a-9cb2-44e2-ad54-26a8bee9afde)