From b9cae34c15bdca584a804c4b7dbf2c4cff7fd2eb Mon Sep 17 00:00:00 2001 From: hamid zarghami Date: Tue, 24 Dec 2024 09:22:29 +0330 Subject: [PATCH] log in --- src/components/Input.tsx | 2 +- src/index.css | 2 +- src/langs/fa.json | 5 ++++- src/pages/auth/Login.tsx | 37 ++++++++++++++++++++++++------------- 4 files changed, 30 insertions(+), 16 deletions(-) diff --git a/src/components/Input.tsx b/src/components/Input.tsx index 15b6188..1ba013d 100644 --- a/src/components/Input.tsx +++ b/src/components/Input.tsx @@ -17,7 +17,7 @@ type Props = { const Input: FC = (props: Props) => { const inputClass = clx( - 'w-full h-12 text-black block px-4 text-sm rounded-xl mt-1 border border-border', + 'w-full h-10 text-black block px-4 text-xs rounded-xl mt-1 border border-border', props.readOnly && 'bg-gray-100', props.className ); diff --git a/src/index.css b/src/index.css index 4baf4e8..f2ad9f9 100644 --- a/src/index.css +++ b/src/index.css @@ -36,7 +36,7 @@ textarea::placeholder { } } .rmdp-input { - min-height: 48px; + min-height: 40px; border-radius: 12px !important; border: 1px solid #d0d0d0 !important; font-size: 14px !important; diff --git a/src/langs/fa.json b/src/langs/fa.json index e3c7ba9..17f07f5 100644 --- a/src/langs/fa.json +++ b/src/langs/fa.json @@ -10,12 +10,15 @@ "select_date": "انتخاب تاریخ", "dateofbirth": "تاریخ تولد", "national_code": "کد ملی", + "national_code_enter": "کد ملی خود را وارد کنید", "email": "ایمیل", "enter_email": "ایمیل خود را وارد کنید", "phonen_number": "شماره تماس", "enter_phone_number": "شماره تماس خود را وارد کنید", "password": "رمز عبور", "enter_password": "رمز عبور انتخابی خود را وارد کنید", - "next": "ادامه" + "next": "ادامه", + "before_registered": "آیا قبلا ثبت نام کردید؟", + "login": "ورود" } } diff --git a/src/pages/auth/Login.tsx b/src/pages/auth/Login.tsx index df01a2f..fae35b0 100644 --- a/src/pages/auth/Login.tsx +++ b/src/pages/auth/Login.tsx @@ -11,43 +11,47 @@ const Login: FC = () => { const { t } = useTranslation('global') return ( -
-
+
+
-

+

{t('auth.welcome')}

-

+

{t('auth.enter_information')}

-
+ {/*
{t('auth.user_info')} -
+
*/} -
+
+ +
-
+
console.log(date)} placeholder={t('auth.select_date')} /> + +
-
+
{ />
-
+
{