From e13a75aabc419e2f9f5062f32af22bb78346525d Mon Sep 17 00:00:00 2001 From: "Namgit config --global user.email" Date: Mon, 15 Sep 2025 16:42:24 +0530 Subject: [PATCH 1/2] feat: Implement responsive design for header and footer, and adjust main content layout --- client/src/App.jsx | 2 +- client/src/components/Footer.jsx | 9 ++-- client/src/components/Header.jsx | 90 ++++++++++++++------------------ 3 files changed, 43 insertions(+), 58 deletions(-) diff --git a/client/src/App.jsx b/client/src/App.jsx index 627c372..a9ca8de 100644 --- a/client/src/App.jsx +++ b/client/src/App.jsx @@ -44,7 +44,7 @@ function App() { -
+
diff --git a/client/src/components/Footer.jsx b/client/src/components/Footer.jsx index c8197e1..a44e857 100644 --- a/client/src/components/Footer.jsx +++ b/client/src/components/Footer.jsx @@ -101,11 +101,9 @@ const Footer = () => { ); const renderMainContent = () => ( -
+
{/* Quick Links */}
-

Quick Links

-
{quickLinks.map((link, index) => ( { ))}
-
{/* Contact Info */}
@@ -138,7 +135,7 @@ const Footer = () => { return (
@@ -261,7 +258,7 @@ const Footer = () => {
{/* Main Footer Content */} -
+
{renderTopSection()} {renderMainContent()} {renderSocialSection()} diff --git a/client/src/components/Header.jsx b/client/src/components/Header.jsx index f11f176..a5f0382 100644 --- a/client/src/components/Header.jsx +++ b/client/src/components/Header.jsx @@ -82,14 +82,27 @@ export default function Header() { return ( <> - {/* HEADER */} -
-
-
+ {/* MOBILE HEADER */} +
+ + Logo +
+

InfantCare

+

Compass

+
+ + +
+ + {/* DESKTOP SIDEBAR */} +
+
{/* Logo */} {/* Desktop Nav */} -
+
{navItems.map(({ to, label, icon }) => ( - `flex items-center gap-1.5 px-2.5 py-1.5 text-sm font-medium rounded-full transition-all duration-300 ${ + `w-full flex items-center gap-3 p-3 rounded-lg transition-all duration-300 ${ isActive ? "bg-gradient-to-r from-purple-600 to-pink-500 text-white shadow" : "text-gray-700 dark:text-gray-200 hover:bg-purple-100 dark:hover:bg-gray-800 hover:text-purple-600 dark:hover:text-purple-400" @@ -128,12 +141,12 @@ export default function Header() {
{/* Theme Toggle */} -
+
{/* Auth Buttons */} -
+
{isAuthenticated && user ? ( <>
@@ -144,7 +157,7 @@ export default function Header() {
- - {/* Hamburger */} -
- -
-
- {/* Mobile Menu - OUTSIDE header container */} - {isMobileMenuOpen && ( -
setIsMobileMenuOpen(false)} - /> - )} - + {/* Mobile Menu - DRAWER */} {isMobileMenuOpen && ( -
-
-
- Menu - -
+
+
+ Menu +
-
+
{navItems.map(({ to, label, icon }) => ( Date: Mon, 15 Sep 2025 17:28:34 +0530 Subject: [PATCH 2/2] navbar styling was updated --- run_dev.bat | 2 ++ run_frontend.bat | 2 ++ 2 files changed, 4 insertions(+) create mode 100644 run_dev.bat create mode 100644 run_frontend.bat diff --git a/run_dev.bat b/run_dev.bat new file mode 100644 index 0000000..9f9d0ff --- /dev/null +++ b/run_dev.bat @@ -0,0 +1,2 @@ +cd client +npm run dev \ No newline at end of file diff --git a/run_frontend.bat b/run_frontend.bat new file mode 100644 index 0000000..69964a0 --- /dev/null +++ b/run_frontend.bat @@ -0,0 +1,2 @@ +cd client +npm install \ No newline at end of file