From 7eba4579c019cfaeb3a24dcdaccad4b9f16e5438 Mon Sep 17 00:00:00 2001 From: Aryan Ramesh Jain <138214350+jainaryan04@users.noreply.github.com> Date: Thu, 17 Oct 2024 17:38:14 +0530 Subject: [PATCH 01/24] feat: Enable dark mode for landing page and navbar (#322) --- frontend/src/App.jsx | 4 ++++ frontend/src/components/Shared/Navbar.jsx | 19 +++++++++++-------- frontend/src/components/ThemeToggle.jsx | 16 ++++++++++++++++ frontend/src/components/ui/Landing.jsx | 5 +++-- frontend/src/hooks/useDarkMode.js | 17 +++++++++++++++++ frontend/src/index.css | 16 ++++++++++++++++ frontend/tailwind.config.js | 17 ++++++++++++++++- 7 files changed, 83 insertions(+), 11 deletions(-) create mode 100644 frontend/src/components/ThemeToggle.jsx create mode 100644 frontend/src/hooks/useDarkMode.js diff --git a/frontend/src/App.jsx b/frontend/src/App.jsx index c5a927fb..1febeee6 100644 --- a/frontend/src/App.jsx +++ b/frontend/src/App.jsx @@ -5,6 +5,8 @@ import Footer from '../src/components/Shared/Footer'; import { Outlet } from 'react-router-dom'; import BackToTopButton from './components/Shared/BackToTopButton'; import Preloader from './components/Preloader'; +import ThemeToggle from './components/ThemeToggle'; + function App() { return ( @@ -14,6 +16,8 @@ function App() {