Skip to content

Commit

Permalink
Merge branch 'develop' into 101-about-page-enhancement
Browse files Browse the repository at this point in the history
  • Loading branch information
riadhmouamnia authored Nov 23, 2023
2 parents 3689c78 + 9924d12 commit ac73381
Show file tree
Hide file tree
Showing 8 changed files with 28 additions and 28 deletions.
2 changes: 1 addition & 1 deletion public/locales/en/signUp.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
"phoneLabel": "Phone",
"phonePlaceholder": "Enter your phone number",
"phoneRequired": "Phone number is required",
"locationLabel": "Province",
"locationLabel": "Wilaya",
"locationRequired": "Location is required",
"signUpMethod": "Sign up using",
"divider": "OR"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@

exports[`renders correctly 1`] = `
<section
className="flex gap-2 flex-col w-full mx-auto"
className="flex flex-col gap-2 w-full mx-auto"
>
<h1
className="text-3xl font-bold mb-8"
/>
<form
className="flex flex-col gap-2"
className="flex flex-col gap-2 "
onSubmit={[Function]}
>
<div>
Expand Down Expand Up @@ -56,7 +56,7 @@ exports[`renders correctly 1`] = `
/>
</div>
<div
className="flex flex-col md:flex-row justify-between md:items-center flex-wrap"
className="flex my-2 flex-col md:flex-row justify-between md:items-center flex-wrap"
>
<div>
<div
Expand All @@ -82,7 +82,7 @@ exports[`renders correctly 1`] = `
/>
</div>
<button
className="btn btn-secondary text-black bg-opacity-40 w-full normal-case text-xl font-normal self-center rounded-xl"
className="btn btn-secondary my-4 text-black bg-opacity-40 w-full normal-case text-xl font-normal self-center rounded-xl"
disabled={false}
type="submit"
/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@

exports[`renders correctly 1`] = `
<section
className="flex gap-2 flex-col w-full mx-auto"
className="flex flex-col gap-2 w-full mx-auto"
>
<h1
className="text-3xl font-bold mb-8"
/>
<form
className="flex flex-col gap-2"
className="flex flex-col gap-2 "
onSubmit={[Function]}
>
<div>
Expand Down Expand Up @@ -56,7 +56,7 @@ exports[`renders correctly 1`] = `
/>
</div>
<div
className="flex flex-col md:flex-row justify-between md:items-center flex-wrap"
className="flex my-2 flex-col md:flex-row justify-between md:items-center flex-wrap"
>
<div>
<div
Expand All @@ -82,7 +82,7 @@ exports[`renders correctly 1`] = `
/>
</div>
<button
className="btn btn-secondary text-black bg-opacity-40 w-full normal-case text-xl font-normal self-center rounded-xl"
className="btn btn-secondary my-4 text-black bg-opacity-40 w-full normal-case text-xl font-normal self-center rounded-xl"
disabled={false}
type="submit"
/>
Expand Down
8 changes: 4 additions & 4 deletions src/components/SignInForm/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,10 @@ function SignInForm({ t }) {
});

return (
<section className='flex gap-2 flex-col w-full mx-auto'>
<section className='flex flex-col gap-2 w-full mx-auto'>
<h1 className='text-3xl font-bold mb-8'>{t("signIn:signIn")}</h1>
{/* Form Section */}
<form className='flex flex-col gap-2' onSubmit={formik.handleSubmit}>
<form className='flex flex-col gap-2 ' onSubmit={formik.handleSubmit}>
<Input
name='email'
type='email'
Expand All @@ -61,7 +61,7 @@ function SignInForm({ t }) {
touched={formik.touched.password}
/>
{/* Checkbox & Password Forgotten Section */}
<div className='flex flex-col md:flex-row justify-between md:items-center flex-wrap'>
<div className='flex my-2 flex-col md:flex-row justify-between md:items-center flex-wrap'>
<Checkbox
name='save'
label={t("signIn:savedlogin")}
Expand All @@ -80,7 +80,7 @@ function SignInForm({ t }) {
</div>
{/* Login Button */}
<button
className='btn btn-secondary text-black bg-opacity-40 w-full normal-case text-xl font-normal self-center rounded-xl'
className='btn btn-secondary my-4 text-black bg-opacity-40 w-full normal-case text-xl font-normal self-center rounded-xl'
type='submit'
disabled={formik.isSubmitting}
>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ exports[`renders correctly 1`] = `
className="text-3xl font-bold"
/>
<form
className="flex flex-col gap-2"
className="flex gap-2 flex-col"
onSubmit={[Function]}
>
<div>
Expand Down Expand Up @@ -145,7 +145,7 @@ exports[`renders correctly 1`] = `
</select>
</div>
<button
className="btn mt-2 btn-secondary text-black bg-opacity-40 w-full normal-case text-xl font-normal self-center rounded-xl"
className="btn my-6 btn-secondary text-black bg-opacity-40 w-full normal-case text-xl font-normal self-center rounded-xl"
type="submit"
/>
</form>
Expand All @@ -156,7 +156,7 @@ exports[`renders correctly 1`] = `
className="divider"
/>
<p
className="text-center"
className="text-center my-4"
/>
<div
className="flex gap-2 justify-center items-center text-3xl"
Expand Down
6 changes: 3 additions & 3 deletions src/components/SignUpForm/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ function SignUpForm({ states, t }) {
return (
<section className='flex gap-2 flex-col w-full mx-auto'>
<h1 className='text-3xl font-bold'>{t("signUp:signUp")}</h1>
<form onSubmit={formik.handleSubmit} className='flex flex-col gap-2'>
<form onSubmit={formik.handleSubmit} className='flex gap-2 flex-col'>
<Input
name='name'
type='text'
Expand Down Expand Up @@ -117,14 +117,14 @@ function SignUpForm({ states, t }) {
/>
<button
type='submit'
className='btn mt-2 btn-secondary text-black bg-opacity-40 w-full normal-case text-xl font-normal self-center rounded-xl'
className='btn my-6 btn-secondary text-black bg-opacity-40 w-full normal-case text-xl font-normal self-center rounded-xl'
>
{t("signUp:signUpButton")}
</button>
</form>
<div className='lg:hidden'>
<span className='divider'>{t("signUp:divider")}</span>
<p className='text-center'>{t("signUp:signUpMethod")}</p>
<p className='text-center my-4'>{t("signUp:signUpMethod")}</p>
<SignupMethods />
</div>
</section>
Expand Down
8 changes: 4 additions & 4 deletions src/pages/auth/sign-in/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,21 +11,21 @@ function SignInPage({ t, _nextI18Next }) {
return (
<AuthPagesLayout>
<main
className='flex justify-between items-center min-h-screen'
className='flex justify-between min-h-screen'
dir={initialLocale === "ar" ? "rtl" : "ltr"}
>
<div className='flex shadow-2xl flex-col min-h-screen mx-auto justify-center w-full p-4 md:px-20 lg:px-8'>
<div className='flex shadow-2xl flex-col min-h-screen mx-auto w-full p-4 md:px-20 lg:px-8'>
<div className='navbar'></div>
<SignInForm t={t} />
</div>
<figure className='hidden h-screen lg:block md:w-[60%] relative flex-shrink-0 saturate-0'>
<figure className='hidden max-h-full lg:block md:w-[60%] relative flex-shrink-0 saturate-0'>
<Image
src='/images/signin.jpg'
priority
alt='test'
width={2000}
height={2000}
className='object-cover w-full h-full overflow-hidden'
className='object-cover w-full min-h-screen max-h-[820px]'
/>
</figure>
</main>
Expand Down
10 changes: 5 additions & 5 deletions src/pages/auth/sign-up/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -27,31 +27,31 @@ function SignUpPage({ _nextI18Next, t }) {
return (
<AuthPagesLayout>
<main
className='flex justify-between items-center min-h-screen lg:h-screen lg:overflow-hidden'
className='flex justify-between min-h-screen'
dir={initialLocale === "ar" ? "rtl" : "ltr"}
>
<figure className='relative hidden lg:block md:w-[60%] min-h-screen flex-shrink-0'>
<figure className='relative hidden lg:block md:w-[60%] max-h-full flex-shrink-0'>
<Image
src='/images/signin.jpg'
priority
alt='test'
width={2000}
height={2000}
className='object-cover saturate-0 w-full h-full'
className='object-cover saturate-0 w-full min-h-screen max-h-[820px]'
/>
<motion.div
variants={signUpMethodsAnim}
initial='hidden'
animate='visible'
className='absolute flex-col gap-4 shadow-xl backdrop-blur-sm bg-opacity-25 hover:bg-opacity-50 transition-all duration-500 ease-in-out border-2 border-white border-opacity-20 top-[45%] left-[30%] bg-base-100 rounded-xl w-[40%] h-[14%] flex items-center justify-center'
className='absolute flex-col gap-4 shadow-xl backdrop-blur-sm bg-opacity-25 hover:bg-opacity-50 transition-all duration-500 ease-in-out border-2 border-white border-opacity-20 top-[45%] left-[30%] bg-base-100 rounded-xl w-[40%] h-[22%] flex items-center justify-center'
>
<h3 className='text-center font-bold text-2xl'>
{t("signUp:signUpMethod")}
</h3>
<SignupMethods />
</motion.div>
</figure>
<div className='flex shadow-2xl flex-col min-h-screen mx-auto justify-center w-full p-4 md:px-20 lg:px-8'>
<div className='flex shadow-2xl py-4 flex-col min-h-screen mx-auto w-full p-4 md:px-20 lg:px-8'>
<div className='navbar'></div>
<SignUpForm states={states} t={t} />
</div>
Expand Down

0 comments on commit ac73381

Please sign in to comment.