From 225a5e11a536c055bea187288b6c93dfa80f3a4f Mon Sep 17 00:00:00 2001 From: preston176 Date: Thu, 11 Jul 2024 12:06:02 +0300 Subject: [PATCH] refactor: Improve UI consistency in Header and About components --- src/Components/Header/Header.jsx | 49 ++++++++++++++++---------------- src/Pages/About.jsx | 2 +- src/Pages/AiServices.jsx | 9 ++++-- 3 files changed, 32 insertions(+), 28 deletions(-) diff --git a/src/Components/Header/Header.jsx b/src/Components/Header/Header.jsx index 5a8d521..5dd2cd2 100644 --- a/src/Components/Header/Header.jsx +++ b/src/Components/Header/Header.jsx @@ -17,44 +17,46 @@ const Header = () => { }; return ( -
-
- {/* img */} +
+
+ {/* Dark/Light mode toggle */}
- - {/* Conditionally render a dark or light mode icon based on the value of `isDarkMode`. */} - {isDarkMode ? ( toggleTheme()} xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor" className="w-6 h-6"> - - ) - : ( toggleTheme()} xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" strokeWidth={1.5} stroke="currentColor" className="w-6 h-6"> + {isDarkMode ? ( + + + + ) : ( + - ) - } - + )}
-
- AI Gen + + {/* Logo */} +
+ + AI Gen +
- {/* md: mobile icons */} + {/* Mobile Menu Icon */}
- {open ? : } + {open ? : }
- {/* navbar */} + {/* Navbar */}