Skip to content

Commit

Permalink
Replaced all the css into tailwind css on RegistrationForm component (#…
Browse files Browse the repository at this point in the history
…1780)

Co-authored-by: Kyle Holmberg <[email protected]>
  • Loading branch information
subhajit20 and kylemh authored Dec 2, 2023
1 parent ce3892e commit 066694a
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 67 deletions.
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

2 comments on commit 066694a

@vercel
Copy link

@vercel vercel bot commented on 066694a Dec 2, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@vercel
Copy link

@vercel vercel bot commented on 066694a Dec 2, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.