diff --git a/src/Components/Home/HomePage.js b/src/Components/Home/HomePage.js index 9daff22..cb4a00b 100644 --- a/src/Components/Home/HomePage.js +++ b/src/Components/Home/HomePage.js @@ -10,6 +10,7 @@ import { marchEmailPrm } from "../../secrets"; import { createUserWithEmailAndPassword } from "firebase/auth"; import { stateDataValues } from "../../Constants/Fields/SignupFields"; import "../../styles/homepage.scss"; +import LoadingSpinner from "../../pageElements/LoadingSpinner"; const HomePage = () => { const navigate = useNavigate(); @@ -25,26 +26,31 @@ const HomePage = () => { async function saveUserData( authId, dataValues, + email, + password, customerId, subscriptionCreated, subscriptionPeriodStart, subscriptionPeriodEnd, subscriptionId, - isPromotionalMebership + isPromotionalMebership, + docsAllowedPeMonth ) { + if (!email || !password) { + return; + } + + console.log("email, password", email, password); const appUserId = uuidv4(); const firmId = uuidv4(); const fbAuthUid = authId; let plan = "promo plan"; let docsAllowedPerMonth; - if (isPromotionalMebership === true) { - docsAllowedPerMonth = 1; - subscriptionId = uuidv4(); - plan = plan; - } else { - //docsAllowedPerMonth = selectedPlan[0].docsAllowedPerMonth; - } + + docsAllowedPerMonth = 1; + subscriptionId = uuidv4(); + plan = plan; const docsGenerated = 0; @@ -59,7 +65,6 @@ const HomePage = () => { zipCode, barNumber, practiceArea, - email, } = dataValues; const userState = stateDataValues.filter((value) => { @@ -115,11 +120,11 @@ const HomePage = () => { async function handleProcessPromoSubscription(code) { console.log("code in handleProcessPromoSubscription", code); + setIsBusy(true); setShowPromoModal(false); if (!code) { return; } - setIsBusy(true); const userData = await getFocusData(code); if (!userData) { return; @@ -130,27 +135,32 @@ const HomePage = () => { const handlePromoSignup = async (dataValues) => { console.log("dataValues in handlePromoSignup", dataValues); - return; + if (dataValues) { try { const customerId = `${uuidv4()}-florida-spring-promo`; const today = new Date(); + const email = dataValues.email; + const password = dataValues.password; const subscriptionCreated = today; const subscriptionPeriodStart = today; - console.log(subscriptionPeriodStart); + console.log("subscriptionPeriodStart", subscriptionPeriodStart); const subscriptionPeriodEnd = today; const subscriptionId = uuidv4(); - + if (!email || !password) { + return; + } const userCredential = await createUserWithEmailAndPassword( auth, - dataValues.email, - dataValues.password + email, + password ); const user = userCredential.user; dataValues = { ...dataValues }; const isPromotionalMebership = true; + console.log("userCredential", userCredential); const res = await saveUserData( user.uid, dataValues, @@ -189,280 +199,276 @@ const HomePage = () => { navigate("/requestpage/supReq"); }; - return ( - <> -
-
+
+
+
+
+
+

Novodraft: Legal AI

+

Novodraft

+

AI-Assisted Legal Drafting

+

+ Draft documents faster and smarter +

+
+
+
+
Discovery requests
+
dramatically fast
+
+
Draft responses to
+
demands in minutes
+
+
+
+
+
+
+
+
+

+ Discovery requests done dramatically fast – discovery responses + ready in minutes. +

+

+ Reclaim hours every week. Spend time growing your practice, or + just get home by dinner. +

+
+
+
+
+
+
+ {/* Section 2 */} +
+
+
+
+

+ Made by Attorneys, for Attorneys +

+
+ +
+ image of a laptop computer +
+
+
+
+

Made by Attorneys, for Attorneys.

+
+

+ Legal tech developed by people that understand what you need. +

+
+ +

+ Novodraft understands the demands on your time. For example, + that discovery request on your desk. With a few clicks, and + Novodraft's AI assistant on the task, you can draft a + ready-to-serve response in minutes. It's as easy as uploading a + .pdf file. +

+

+ Novodraft cuts through a mire of rote tasks, but does much more + than automate. +

+

+ Intellidraft AI technology powers persuasive arguments and + boosts bland, boilerplate objections. Configurable for level of + authoritative citation and for infering factual context from + pleadings and briefs. Use it to augment your drafting as much or + as little as you prefer. +

+ +
+
+
+
+ {/* Section 3 */} +
+
+

+ AI-Powered Legal Drafting Technology{" "} +

+

+ Novo Drafting Technology +

+

+ Created by litigators to give you an edge. +

+
+
+ {/*********** CARD ONE *********** */} +
+
+ ai hand +
+
+
+
+

Discovery Requests

+
+
+
+ +
+

+ Generate interrogatories and requests for + production/admissions leveraging AI. +

+

+ Edit or add special language with tags. Concise yet + comprehensive demands, done in minutes. +

+
+
+
+ {/*********** CARD TWO *********** */} +
+
+ scales image +
+
+
+
+

Discovery Responses

+
+
+
+ +
+

+ Use Novodraft AI to quickly draft responses including + compelling arguments about what you withhold from disclosure. + Finish in minutes with a downloadable .docx file. +

+
+
+
+ {/*********** CARD THREE *********** */} +
+
+ +
+
+
+
+

Proactive Alerts

+
+
+
+
+

+ Your dashboard displays important deadlines, alerts, and can + be configured to auto-draft documents with reminders for tasks + such as service or hearings. +

+
+
+
+
+
+
+
-
-
-
-
-

Novodraft: Legal AI

-

Novodraft

-

- AI-Assisted Legal Drafting -

-

- Draft documents faster and smarter -

-
-
-
-
Discovery requests
-
dramatically fast
-
-
Draft responses to
-
demands in minutes
-
-
-
-
-
-
-
-
-

- Discovery requests done dramatically fast – discovery - responses ready in minutes. -

-

- Reclaim hours every week. Spend time growing your practice, or - just get home by dinner. -

-
-
+
+
+
+

+ Questions about our services?

+ We're here to answer! +

+

+ Questions about our products and services? +

+

We're here to answer!

+
+ Novodraft will revolutionize your practice. +
+
+ Request a demo - let us show you how. +
+
+ Revolutionize your practice. +
+
Let us show you how.
+
+
+ +
-
- {/* Section 2 */} -
-
-
-
-

- Made by Attorneys, for Attorneys -

-
- -
- image of a laptop computer -
-
-
-
-

Made by Attorneys, for Attorneys.

-
-

- Legal tech developed by people that understand what you - need. -

-
- -

- Novodraft understands the demands on your time. For example, - that discovery request on your desk. With a few clicks, and - Novodraft's AI assistant on the task, you can draft a - ready-to-serve response in minutes. It's as easy as uploading - a .pdf file. -

-

- Novodraft cuts through a mire of rote tasks, but does much - more than automate. -

-

- Intellidraft AI technology powers persuasive arguments and - boosts bland, boilerplate objections. Configurable for level - of authoritative citation and for infering factual context - from pleadings and briefs. Use it to augment your drafting as - much or as little as you prefer. -

- -
-
-
-
- {/* Section 3 */} -
-
-

- AI-Powered Legal Drafting Technology{" "} -

-

- Novo Drafting Technology -

-

- Created by litigators to give you an edge. -

-
-
- {/*********** CARD ONE *********** */} -
-
- ai hand -
-
-
-
-

Discovery Requests

-
-
-
- -
-

- Generate interrogatories and requests for - production/admissions leveraging AI. -

-

- Edit or add special language with tags. Concise yet - comprehensive demands, done in minutes. -

-
-
-
- {/*********** CARD TWO *********** */} -
-
- scales image -
-
-
-
-

Discovery Responses

-
-
-
- -
-

- Use Novodraft AI to quickly draft responses including - compelling arguments about what you withhold from - disclosure. Finish in minutes with a downloadable .docx - file. -

-
-
-
- {/*********** CARD THREE *********** */} -
-
- -
-
-
-
-

Proactive Alerts

-
-
-
-
-

- Your dashboard displays important deadlines, alerts, and can - be configured to auto-draft documents with reminders for - tasks such as service or hearings. -

-
-
-
-
-
-
-
-
-
-
-

- Questions about our services?

- We're here to answer! -

-

- Questions about our products and services? -

-

We're here to answer!

-
-
- Novodraft will revolutionize your practice. -
-
- Request a demo - let us show you how. -
-
- Revolutionize your practice. -
-
Let us show you how.
-
-
- - -
-
-
-
- {showPromoModal ? ( - - ) : ( - <> - )} -
- + + + {showPromoModal ? ( + + ) : ( + <> + )} + ); + + return isBusy ? : homeContent; }; export default HomePage;