From c0ff0386a07451d75d38325236f6d11e46659a73 Mon Sep 17 00:00:00 2001 From: iamkiddy Date: Thu, 13 Nov 2025 11:10:00 +0000 Subject: [PATCH] Enhance UI components across the application by integrating theme support for dark mode. Update styles in Login, Book Now, User Dashboard, and Settings pages to improve visual consistency. Refactor various components to utilize the ThemeProvider for dynamic styling based on the selected theme. --- app/(auth)/login/page.tsx | 71 +++++++------ app/(pages)/book-now/page.tsx | 135 ++++++++++++------------ app/(user)/user/dashboard/page.tsx | 89 ++++++++-------- app/(user)/user/settings/page.tsx | 75 ++++++------- components/About.tsx | 31 ++---- components/ClientFocus.tsx | 21 +--- components/ContactSection.tsx | 31 +++--- components/Finances.tsx | 21 +--- components/Footer.tsx | 26 ++--- components/Hero.tsx | 26 ++--- components/Location.tsx | 21 +--- components/LoginDialog.tsx | 89 +++++++++------- components/Navbar.tsx | 162 +++++++++++++++++++++++------ components/Services.tsx | 29 ++---- components/Specialties.tsx | 21 +--- components/ThemeToggle.tsx | 24 +---- 16 files changed, 437 insertions(+), 435 deletions(-) diff --git a/app/(auth)/login/page.tsx b/app/(auth)/login/page.tsx index 7358797..f7164f5 100644 --- a/app/(auth)/login/page.tsx +++ b/app/(auth)/login/page.tsx @@ -7,8 +7,11 @@ import { Heart, Eye, EyeOff, X } from "lucide-react"; import Link from "next/link"; import Image from "next/image"; import { useRouter } from "next/navigation"; +import { useAppTheme } from "@/components/ThemeProvider"; export default function Login() { + const { theme } = useAppTheme(); + const isDark = theme === "dark"; const [showPassword, setShowPassword] = useState(false); const [rememberMe, setRememberMe] = useState(false); const router = useRouter(); @@ -38,29 +41,33 @@ export default function Login() { {/* Centered White Card - Login Form */} -
- {/* Close Button */} - - - {/* Heading */} -

- Welcome back -

- - {/* Sign Up Prompt */} -

- New to Attune Heart Therapy?{" "} - - Sign up - -

+
+ {/* Header with Close Button */} +
+
+ {/* Heading */} +

+ Welcome back +

+ {/* Sign Up Prompt */} +

+ New to Attune Heart Therapy?{" "} + + Sign up + +

+
+ {/* Close Button */} + +
{/* Login Form */}
{ @@ -69,21 +76,21 @@ export default function Login() { }}> {/* Email Field */}
-
{/* Password Field */}
-