Skip to content

Replaced all the css into tailwind css on RegistrationForm component #1780

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 10 commits into from
Dec 2, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 9 additions & 15 deletions components/Forms/RegistrationForm/RegistrationForm.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ import Input from 'components/Form/Input/Input';
import Alert from 'components/Alert/Alert';
import Link from 'next/link';
import OutboundLink from 'components/OutboundLink/OutboundLink';
import styles from './RegistrationForm.module.css';

export const PASSWORD_FOR_EVERYBODY = 'nOnEeDfOrP@ssw0rd!';

Expand Down Expand Up @@ -115,7 +114,7 @@ function RegistrationForm({ initialValues, onSubmit, onSuccess }) {
validationSchema={registrationSchema}
>
{({ isSubmitting }) => (
<Form className={styles.RegistrationForm}>
<Form className="w-full flex items-center flex-col [&>p]:my-5 [&>p]:mx-auto">
<p>
We work closely with military veterans, service members, and spouses who are passionate
about transitioning into the tech industry. We work with over 7,000 members who are all
Expand All @@ -126,7 +125,7 @@ function RegistrationForm({ initialValues, onSubmit, onSuccess }) {
</Link>
</p>

<div className={styles.formContainer}>
<div className="flex flex-col justify-between max-w-lg w-full">
<Field
type="email"
name="email"
Expand All @@ -146,7 +145,7 @@ function RegistrationForm({ initialValues, onSubmit, onSuccess }) {
/>

<Field
className={styles.invisible}
className="hidden"
type="password"
name="password"
label="Password*"
Expand All @@ -156,7 +155,7 @@ function RegistrationForm({ initialValues, onSubmit, onSuccess }) {
/>

<Field
className={styles.invisible}
className="hidden"
type="password"
name="confirm-password"
label="Confirm Password*"
Expand Down Expand Up @@ -215,24 +214,19 @@ function RegistrationForm({ initialValues, onSubmit, onSuccess }) {

{errorMessage && <Alert type="error">{errorMessage}</Alert>}

<hr className={styles.seperator} />
<hr className="my-8 mx-0 w-1/4" />

<p className={styles.aside}>
<p className="bg-white border-1 border-solid border-secondary rounded-md text-sm py-2 px-3">
The demographic information you provide, helps us understand our community needs, ensure
diversity, and provide specific resources to reach our mission. Thank you in advance for
providing honest answers.
<br />
<span className={styles.bold}>We do not sell your information to anyone.</span>
<span className="font-bold">We do not sell your information to anyone.</span>
</p>

<hr className={styles.seperator} />
<hr className="my-8 mx-0 w-1/4" />

<Button
className={styles.topMargin}
type="submit"
theme="secondary"
disabled={isSubmitting}
>
<Button className="mt-4" type="submit" theme="secondary" disabled={isSubmitting}>
Submit
</Button>
</Form>
Expand Down
43 changes: 0 additions & 43 deletions components/Forms/RegistrationForm/RegistrationForm.module.css

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

exports[`RegistrationForm should render with required props 1`] = `
<form
className="RegistrationForm"
className="w-full flex items-center flex-col [&>p]:my-5 [&>p]:mx-auto"
noValidate={true}
onReset={[Function]}
onSubmit={[Function]}
Expand All @@ -19,7 +19,7 @@ exports[`RegistrationForm should render with required props 1`] = `
</a>
</p>
<div
className="formContainer"
className="flex flex-col justify-between max-w-lg w-full"
>
<div
className="field"
Expand Down Expand Up @@ -78,7 +78,7 @@ exports[`RegistrationForm should render with required props 1`] = `
</div>
</div>
<div
className="invisible field"
className="hidden field"
data-testid="INPUT"
>
<label
Expand Down Expand Up @@ -106,7 +106,7 @@ exports[`RegistrationForm should render with required props 1`] = `
</div>
</div>
<div
className="invisible field"
className="hidden field"
data-testid="INPUT"
>
<label
Expand Down Expand Up @@ -259,24 +259,24 @@ exports[`RegistrationForm should render with required props 1`] = `
</div>
</div>
<hr
className="seperator"
className="my-8 mx-0 w-1/4"
/>
<p
className="aside"
className="bg-white border-1 border-solid border-secondary rounded-md text-sm py-2 px-3"
>
The demographic information you provide, helps us understand our community needs, ensure diversity, and provide specific resources to reach our mission. Thank you in advance for providing honest answers.
<br />
<span
className="bold"
className="font-bold"
>
We do not sell your information to anyone.
</span>
</p>
<hr
className="seperator"
className="my-8 mx-0 w-1/4"
/>
<button
className="Button topMargin secondary"
className="Button mt-4 secondary"
data-testid="BUTTON"
disabled={false}
onClick={[Function]}
Expand Down