From de92137ec4d72fcab52e7c64f93f670542a292e1 Mon Sep 17 00:00:00 2001 From: AmirReza Jamali Date: Sun, 17 May 2026 09:42:59 +0330 Subject: [PATCH] feat(auth): enhance sign-in page layout and theme toggle functionality - Updated the SignIn component to improve layout and styling, ensuring better visual alignment. - Added responsive visibility for the ThemeToggleSwitch in the SigninWithPassword component. - Refactored the Signin component to include the ThemeToggleSwitch for better user experience. - Improved code organization by separating theme toggle logic and ensuring consistent styling across components. --- src/app/auth/sign-in/page.tsx | 2 +- src/components/Auth/Signin/index.tsx | 28 +++++++++++-------- src/components/Auth/SigninWithPassword.tsx | 2 +- .../Layouts/header/theme-toggle/index.tsx | 11 ++++++-- 4 files changed, 28 insertions(+), 15 deletions(-) diff --git a/src/app/auth/sign-in/page.tsx b/src/app/auth/sign-in/page.tsx index 21f9006..a07ddb8 100644 --- a/src/app/auth/sign-in/page.tsx +++ b/src/app/auth/sign-in/page.tsx @@ -10,7 +10,7 @@ export default function SignIn() {
-
+
diff --git a/src/components/Auth/Signin/index.tsx b/src/components/Auth/Signin/index.tsx index 53280cc..a0f251e 100644 --- a/src/components/Auth/Signin/index.tsx +++ b/src/components/Auth/Signin/index.tsx @@ -1,24 +1,30 @@ "use client"; import { Logo } from "@/components/logo"; +import { ThemeToggleSwitch } from "@/components/Layouts/header/theme-toggle"; import SigninWithPassword from "../SigninWithPassword"; export default function Signin() { return ( -
-
+
+
+
+
+ +
-
-

- Welcome back -

-

- Sign in to continue to your dashboard -

-
- +
+

+ Welcome back +

+

+ Sign in to continue to your dashboard +

+
+ +
); } diff --git a/src/components/Auth/SigninWithPassword.tsx b/src/components/Auth/SigninWithPassword.tsx index ae35b2c..5369c1a 100644 --- a/src/components/Auth/SigninWithPassword.tsx +++ b/src/components/Auth/SigninWithPassword.tsx @@ -35,7 +35,7 @@ export default function SigninWithPassword() { }; return (
-
+