From d963bfab767458e1b6980287fec517488a9eb507 Mon Sep 17 00:00:00 2001 From: Kenneth Jannette Date: Mon, 5 Feb 2024 15:29:55 -0600 Subject: [PATCH 1/4] more --- src/Components/SignupPage/SignupPage.js | 4 ++++ src/Constants/Fields/RadioFields.js | 21 +++++++++++++++++++-- src/pageElements/Radio.js | 13 ++++++++++--- src/styles/signup.scss | 5 ++--- 4 files changed, 35 insertions(+), 8 deletions(-) diff --git a/src/Components/SignupPage/SignupPage.js b/src/Components/SignupPage/SignupPage.js index d8d4b81..383a29d 100644 --- a/src/Components/SignupPage/SignupPage.js +++ b/src/Components/SignupPage/SignupPage.js @@ -43,9 +43,12 @@ const SignupPage = () => { getFormDataDefaults(paymentfields) ); const [showPaymentModal, setShowPaymentModal] = useState(false); + /* const [showSelectPlan, setShowSelectPlan] = useState( isUpgrade ? true : false ); + */ + const [showSelectPlan, setShowSelectPlan] = useState(true); const [activeRadioOption, setActiveRadioOption] = useState("partner"); const [selectedPlan, setSelectedPlan] = useState([signupRadioFields[1]]); const [isAnnual, setIsAnnual] = useState(1); @@ -538,6 +541,7 @@ const SignupPage = () => { isUpgrade={index < disableIndex ? true : false} disabled={index < disableIndex ? true : false} currentPlan={currentPlan} + parentIndex={index} /> ))} diff --git a/src/Constants/Fields/RadioFields.js b/src/Constants/Fields/RadioFields.js index 72e99a2..361e01e 100644 --- a/src/Constants/Fields/RadioFields.js +++ b/src/Constants/Fields/RadioFields.js @@ -5,7 +5,7 @@ export const signupRadioFields = [ value: "associate", description: [ "1 document per month", - "Carryover 1 document to next period", + "Carryover 1 unused document each subscription period", "Documents conforming with state rules", "24/7 support", "First month free!", @@ -24,7 +24,7 @@ export const signupRadioFields = [ value: "partner", description: [ "3 documents per month", - "Carryover 2 documents to next period", + "Carryover 1 unused document per month", "Documents conforming with state rules", "Up to 2 additional accounts: $49/each", "24/7 support", @@ -55,5 +55,22 @@ export const signupRadioFields = [ { type: "additionalAccount", amount: 39 }, ], }, + { + name: "Of Counsel", + label: "Of Counsel", + value: "ofCounsel", + description: [ + "One document - pay as you go", + "24/7 support", + "Document conforming with state rules", + ], + details: "", + docsAllowedPerMonth: 1, + pricing: [ + { type: "oneTime", amount: 59 }, + { type: "oneTime", amount: 59 }, + { type: "oneTime", amount: 59 }, + ], + }, ]; // diff --git a/src/pageElements/Radio.js b/src/pageElements/Radio.js index 6898216..bf2fb95 100644 --- a/src/pageElements/Radio.js +++ b/src/pageElements/Radio.js @@ -15,6 +15,7 @@ const Radio = (props) => { isAnnual, isUpgrade, currentPlan, + parentIndex, } = props; const classCheckbox = "checkbox"; @@ -43,9 +44,15 @@ const Radio = (props) => { )}
{`${name}`}
-
- {`$${price[index]["amount"]}/mo`} -
+ {parentIndex > 2 ? ( +
+ {`$${price[index]["amount"]}/doc`} +
+ ) : ( +
+ {`$${price[index]["amount"]}/mo`} +
+ )}
diff --git a/src/styles/signup.scss b/src/styles/signup.scss index 3c715cb..de35067 100644 --- a/src/styles/signup.scss +++ b/src/styles/signup.scss @@ -124,11 +124,9 @@ align-items: center; margin-top: 45px; width: 100%; - padding: 12px; border-radius: 10px; background-color: rgb(240, 247, 250); border: 1px solid #e9e9e9; - padding: 6px; } .select-sub-right { @@ -168,6 +166,7 @@ .radio-group-box { display: flex; flex-direction: row; + flex-wrap: wrap; padding: 6px; width: 100%; height: 340px; @@ -197,7 +196,7 @@ } .signup-radio-container { - width: 350px; + width: 300px; height: 100%; } From 61508fb3c6802ff9fb243928d06f011de2e77ee7 Mon Sep 17 00:00:00 2001 From: Kenneth Jannette Date: Mon, 5 Feb 2024 15:38:47 -0600 Subject: [PATCH 2/4] more --- src/styles/signup.scss | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/styles/signup.scss b/src/styles/signup.scss index de35067..1b252b1 100644 --- a/src/styles/signup.scss +++ b/src/styles/signup.scss @@ -11,7 +11,7 @@ flex-direction: column; align-items: center; margin-top: 45px; - width: 960px; + width: 920px; padding: 12px; border-radius: 10px; background-color: rgb(240, 247, 250); @@ -86,6 +86,7 @@ flex-direction: row; margin-top: 24px; width: 920px; + min-height: 810px; } .select-plan-header { From 8ff3dd86890a3ae9a7d2c057041c87fad66fc036 Mon Sep 17 00:00:00 2001 From: Kenneth Jannette Date: Mon, 5 Feb 2024 15:55:45 -0600 Subject: [PATCH 3/4] more --- src/Components/SignupPage/SignupPage.js | 56 ++++++------------------- src/styles/signup.scss | 22 +++++----- 2 files changed, 24 insertions(+), 54 deletions(-) diff --git a/src/Components/SignupPage/SignupPage.js b/src/Components/SignupPage/SignupPage.js index 383a29d..8bfa0ab 100644 --- a/src/Components/SignupPage/SignupPage.js +++ b/src/Components/SignupPage/SignupPage.js @@ -511,21 +511,21 @@ const SignupPage = () => { {!isUpgrade && !isBusy ? signupForm : <>} {showSelectPlan && !isBusy ? (
-
-
-
-
- Select a subscription plan -
-
-
-
-

Billed annually

- -

Billed montly

-
+
+
+
+ Select a subscription plan +
+
+
+
+

Billed annually

+ +

Billed montly

+
+
{signupRadioFields?.map((option, index) => (
@@ -604,36 +604,6 @@ const SignupPage = () => { ) : ( <> )} -
- {!showAddAccount && !isBusy ? ( - <> - {showAddAccountBtn ? ( -
) : ( diff --git a/src/styles/signup.scss b/src/styles/signup.scss index 1b252b1..59174ab 100644 --- a/src/styles/signup.scss +++ b/src/styles/signup.scss @@ -81,14 +81,6 @@ width: 160px; } -.select-plan-container { - display: flex; - flex-direction: row; - margin-top: 24px; - width: 920px; - min-height: 810px; -} - .select-plan-header { display: flex; flex-direction: row; @@ -119,15 +111,23 @@ width: 50%; } +.select-plan-container { + display: flex; + flex-direction: column; + margin-top: 24px; + width: 920px; + min-height: 810px; + border-radius: 10px; + background-color: rgb(240, 247, 250); + border: 1px solid #e9e9e9; +} + .select-sub-left { display: flex; flex-direction: column; align-items: center; margin-top: 45px; width: 100%; - border-radius: 10px; - background-color: rgb(240, 247, 250); - border: 1px solid #e9e9e9; } .select-sub-right { From 60f2a30fa51abb8863808a24c03e25c85e3e978f Mon Sep 17 00:00:00 2001 From: Kenneth Jannette Date: Mon, 5 Feb 2024 16:40:28 -0600 Subject: [PATCH 4/4] more --- src/Components/SignupPage/SignupPage.js | 160 ++++++++++++++---------- src/styles/signup.scss | 2 - 2 files changed, 94 insertions(+), 68 deletions(-) diff --git a/src/Components/SignupPage/SignupPage.js b/src/Components/SignupPage/SignupPage.js index 8bfa0ab..7ebdfcc 100644 --- a/src/Components/SignupPage/SignupPage.js +++ b/src/Components/SignupPage/SignupPage.js @@ -525,82 +525,110 @@ const SignupPage = () => {
-
-
- {signupRadioFields?.map((option, index) => ( -
- +
+ {signupRadioFields?.map((option, index) => ( +
+ +
+ ))} +
+ {showAddAccount && !isBusy ? ( +
+
+
+
+ Add additional accounts +
+

+ User profiles will be setup later +

- ))} -
- {showAddAccount && !isBusy ? ( -
-
-
-
- Add additional accounts -
-

- User profiles will be setup later -

-
-
-
- + handleChangeAccountSelect(e, "addAccountsSelect") + } + > + + {selectAdditionalAccountValues.map((item, i) => ( - {selectAdditionalAccountValues.map((item, i) => ( - - ))} - -
+ key={`item${i}`} + > + {item} + + ))} +
-
+
+
+
+
+ ) : ( + <> + )} +
+ {!showAddAccount && !isBusy ? ( + <> + {showAddAccountBtn ? ( +