From f7a9fb5e2a1fa1db0afa2eee58b983a4dc0468f7 Mon Sep 17 00:00:00 2001 From: Mahyar Khanbolooki Date: Wed, 2 Jul 2025 21:33:35 +0330 Subject: [PATCH] chore: sync auth page create password step styles --- src/app/auth/page.tsx | 13 +-- src/app/globals.css | 6 +- .../auth/components/StepNewPassword.tsx | 85 +++++++++++-------- 3 files changed, 59 insertions(+), 45 deletions(-) diff --git a/src/app/auth/page.tsx b/src/app/auth/page.tsx index 4856d8a..3956ab4 100644 --- a/src/app/auth/page.tsx +++ b/src/app/auth/page.tsx @@ -9,12 +9,12 @@ import StepEnterOtp from '@/features/auth/components/StepEnterOtp'; import { AUTH_PAGE_ELEMENT, AUTH_STEP } from '@/enums'; import { useCountdown } from '@/hooks/useCountdown'; import StepNewPassword from '@/features/auth/components/StepNewPassword'; -import { useLogin } from '@/hooks/auth/useLogin'; -import { useSignup } from '@/hooks/auth/useSignup'; -import { useCheckUserExistsLazy } from '@/hooks/auth/useCheckUserExists'; -import { useOtpRequest } from '@/hooks/auth/useOtpRequest'; -import { useOtpValidation } from '@/hooks/auth/useOtpValidation'; -import { useResetPassword } from '@/hooks/auth/useResetPassword'; +// import { useLogin } from '@/hooks/auth/useLogin'; +// import { useSignup } from '@/hooks/auth/useSignup'; +// import { useCheckUserExistsLazy } from '@/hooks/auth/useCheckUserExists'; +// import { useOtpRequest } from '@/hooks/auth/useOtpRequest'; +// import { useOtpValidation } from '@/hooks/auth/useOtpValidation'; +// import { useResetPassword } from '@/hooks/auth/useResetPassword'; type Props = object @@ -66,6 +66,7 @@ function AuthIndex({ }: Props) { setNumber(() => e.target.value) } else if (e.target.name == AUTH_PAGE_ELEMENT.INPUT_PASSWORD) { + console.log(e.target.value, 's'); setPassword(() => e.target.value) } else if (e.target.name == AUTH_PAGE_ELEMENT.INPUT_PASSWORD_REPEAT) { diff --git a/src/app/globals.css b/src/app/globals.css index 68cdee5..daa5a66 100644 --- a/src/app/globals.css +++ b/src/app/globals.css @@ -43,13 +43,13 @@ input[type="number"] { } input[type="password"] { - font-family: "fontello"; + font-family: "irancell"; font-style: normal; font-weight: normal; speak: none; - color: var(--color-disabled); + color: #b6b6b6da; margin: 5px 0px 10px 0px; - font-size: 34px; + font-size: 24px; /* Controls dot size (width & height) */ line-height: 8px; /* Ensures vertical alignment */ diff --git a/src/features/auth/components/StepNewPassword.tsx b/src/features/auth/components/StepNewPassword.tsx index a604762..e0a0e7b 100644 --- a/src/features/auth/components/StepNewPassword.tsx +++ b/src/features/auth/components/StepNewPassword.tsx @@ -2,6 +2,7 @@ import Button from '@/components/button/PrimaryButton'; import { EyeToggleIcon } from '@/components/icons/EyeToggleIcon'; import InputField from '@/components/input/InputField'; import { AUTH_PAGE_ELEMENT } from '@/enums'; +import Image from 'next/image'; import React from 'react' type Props = { @@ -17,44 +18,56 @@ type Props = { function StepNewPassword({ reset = false, onSubmit, onChange, onClick, value, repeatValue, passwordVisible, repeatPasswordVisible }: Props) { return ( -
-
- -
-
- { reset ? "تغییر کلمه عبور" : "انتخاب کلمه عبور" } -
-

کلمه عبور جدید باید ترکیبی از حروف بزرگ و کوچک و نشانه ها باشد مثل A126bdz@

+ +
+ login banner +
+
+
+
+ {reset ? "تغییر کلمه عبور" : "انتخاب کلمه عبور"} +
+

کلمه عبور جدید باید ترکیبی از حروف بزرگ و کوچک و نشانه ها باشد مثل A126bdz@

+
+ + + + + + +
+
- - - - - - +
- ) }