diff --git a/environments/.env.develop b/environments/.env.develop index 1aaa843..2e275bb 100644 --- a/environments/.env.develop +++ b/environments/.env.develop @@ -1,5 +1,6 @@ AURA_API_HOST=https://api-web.aura.wit.life AURA_DAPI_HOST=https://dev.api.aura.witapps.us +AURA_DAPI_PREFIX=v2 AURA_SITE_HOST=https://aura.wit.life AURA_PREFIX=api/v1 AURA_OPEN_AI_HOST=https://api.openai.com diff --git a/environments/.env.production b/environments/.env.production index 05cd7ea..178f647 100644 --- a/environments/.env.production +++ b/environments/.env.production @@ -1,5 +1,6 @@ AURA_API_HOST=https://api-web.aura.wit.life AURA_DAPI_HOST=https://api.aura.witapps.us +AURA_DAPI_PREFIX=v2 AURA_SITE_HOST=https://aura.wit.life AURA_PREFIX=api/v1 AURA_OPEN_AI_HOST=https://api.openai.com diff --git a/index.html b/index.html index bd8bd4c..05b8e9c 100755 --- a/index.html +++ b/index.html @@ -6,7 +6,7 @@ name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" /> - + @@ -69,7 +69,7 @@
- diff --git a/public/leo.webp b/public/leo.webp new file mode 100644 index 0000000..0cf37e8 Binary files /dev/null and b/public/leo.webp differ diff --git a/public/questionnaire-redesign/zodiacs/female/pdf.sex.AQUARIUS.FEMALE.webp b/public/questionnaire-redesign/zodiacs/female/pdf.sex.AQUARIUS.FEMALE.webp new file mode 100644 index 0000000..574cc7c Binary files /dev/null and b/public/questionnaire-redesign/zodiacs/female/pdf.sex.AQUARIUS.FEMALE.webp differ diff --git a/public/questionnaire-redesign/zodiacs/female/pdf.sex.ARIES.FEMALE.webp b/public/questionnaire-redesign/zodiacs/female/pdf.sex.ARIES.FEMALE.webp new file mode 100644 index 0000000..fe1ab38 Binary files /dev/null and b/public/questionnaire-redesign/zodiacs/female/pdf.sex.ARIES.FEMALE.webp differ diff --git a/public/questionnaire-redesign/zodiacs/female/pdf.sex.CANCER.FEMALE.webp b/public/questionnaire-redesign/zodiacs/female/pdf.sex.CANCER.FEMALE.webp new file mode 100644 index 0000000..c7415c6 Binary files /dev/null and b/public/questionnaire-redesign/zodiacs/female/pdf.sex.CANCER.FEMALE.webp differ diff --git a/public/questionnaire-redesign/zodiacs/female/pdf.sex.CAPRICORN.FEMALE.webp b/public/questionnaire-redesign/zodiacs/female/pdf.sex.CAPRICORN.FEMALE.webp new file mode 100644 index 0000000..53bef7f Binary files /dev/null and b/public/questionnaire-redesign/zodiacs/female/pdf.sex.CAPRICORN.FEMALE.webp differ diff --git a/public/questionnaire-redesign/zodiacs/female/pdf.sex.GEMINI.FEMALE.webp b/public/questionnaire-redesign/zodiacs/female/pdf.sex.GEMINI.FEMALE.webp new file mode 100644 index 0000000..372800f Binary files /dev/null and b/public/questionnaire-redesign/zodiacs/female/pdf.sex.GEMINI.FEMALE.webp differ diff --git a/public/questionnaire-redesign/zodiacs/female/pdf.sex.LEO.FEMALE.webp b/public/questionnaire-redesign/zodiacs/female/pdf.sex.LEO.FEMALE.webp new file mode 100644 index 0000000..8ba00d8 Binary files /dev/null and b/public/questionnaire-redesign/zodiacs/female/pdf.sex.LEO.FEMALE.webp differ diff --git a/public/questionnaire-redesign/zodiacs/female/pdf.sex.LIBRA.FEMALE.webp b/public/questionnaire-redesign/zodiacs/female/pdf.sex.LIBRA.FEMALE.webp new file mode 100644 index 0000000..7d40824 Binary files /dev/null and b/public/questionnaire-redesign/zodiacs/female/pdf.sex.LIBRA.FEMALE.webp differ diff --git a/public/questionnaire-redesign/zodiacs/female/pdf.sex.PISCES.FEMALE.webp b/public/questionnaire-redesign/zodiacs/female/pdf.sex.PISCES.FEMALE.webp new file mode 100644 index 0000000..2bf3a5e Binary files /dev/null and b/public/questionnaire-redesign/zodiacs/female/pdf.sex.PISCES.FEMALE.webp differ diff --git a/public/questionnaire-redesign/zodiacs/female/pdf.sex.SAGITTARIUS.FEMALE.webp b/public/questionnaire-redesign/zodiacs/female/pdf.sex.SAGITTARIUS.FEMALE.webp new file mode 100644 index 0000000..9cea2cc Binary files /dev/null and b/public/questionnaire-redesign/zodiacs/female/pdf.sex.SAGITTARIUS.FEMALE.webp differ diff --git a/public/questionnaire-redesign/zodiacs/female/pdf.sex.SCORPIO.FEMALE.webp b/public/questionnaire-redesign/zodiacs/female/pdf.sex.SCORPIO.FEMALE.webp new file mode 100644 index 0000000..ca866f4 Binary files /dev/null and b/public/questionnaire-redesign/zodiacs/female/pdf.sex.SCORPIO.FEMALE.webp differ diff --git a/public/questionnaire-redesign/zodiacs/female/pdf.sex.TAURUS.FEMALE.webp b/public/questionnaire-redesign/zodiacs/female/pdf.sex.TAURUS.FEMALE.webp new file mode 100644 index 0000000..7e258ea Binary files /dev/null and b/public/questionnaire-redesign/zodiacs/female/pdf.sex.TAURUS.FEMALE.webp differ diff --git a/public/questionnaire-redesign/zodiacs/female/pdf.sex.VIRGO.FEMALE.webp b/public/questionnaire-redesign/zodiacs/female/pdf.sex.VIRGO.FEMALE.webp new file mode 100644 index 0000000..0978736 Binary files /dev/null and b/public/questionnaire-redesign/zodiacs/female/pdf.sex.VIRGO.FEMALE.webp differ diff --git a/public/questionnaire-redesign/zodiacs/male/pdf.sex.AQUARIUS.MALE.webp b/public/questionnaire-redesign/zodiacs/male/pdf.sex.AQUARIUS.MALE.webp new file mode 100644 index 0000000..df118bc Binary files /dev/null and b/public/questionnaire-redesign/zodiacs/male/pdf.sex.AQUARIUS.MALE.webp differ diff --git a/public/questionnaire-redesign/zodiacs/male/pdf.sex.ARIES.MALE.webp b/public/questionnaire-redesign/zodiacs/male/pdf.sex.ARIES.MALE.webp new file mode 100644 index 0000000..5754005 Binary files /dev/null and b/public/questionnaire-redesign/zodiacs/male/pdf.sex.ARIES.MALE.webp differ diff --git a/public/questionnaire-redesign/zodiacs/male/pdf.sex.CANCER.MALE.webp b/public/questionnaire-redesign/zodiacs/male/pdf.sex.CANCER.MALE.webp new file mode 100644 index 0000000..48f11c7 Binary files /dev/null and b/public/questionnaire-redesign/zodiacs/male/pdf.sex.CANCER.MALE.webp differ diff --git a/public/questionnaire-redesign/zodiacs/male/pdf.sex.CAPRICORN.MALE.webp b/public/questionnaire-redesign/zodiacs/male/pdf.sex.CAPRICORN.MALE.webp new file mode 100644 index 0000000..497412f Binary files /dev/null and b/public/questionnaire-redesign/zodiacs/male/pdf.sex.CAPRICORN.MALE.webp differ diff --git a/public/questionnaire-redesign/zodiacs/male/pdf.sex.GEMINI.MALE.webp b/public/questionnaire-redesign/zodiacs/male/pdf.sex.GEMINI.MALE.webp new file mode 100644 index 0000000..4962aaa Binary files /dev/null and b/public/questionnaire-redesign/zodiacs/male/pdf.sex.GEMINI.MALE.webp differ diff --git a/public/questionnaire-redesign/zodiacs/male/pdf.sex.LEO.MALE.webp b/public/questionnaire-redesign/zodiacs/male/pdf.sex.LEO.MALE.webp new file mode 100644 index 0000000..22aab53 Binary files /dev/null and b/public/questionnaire-redesign/zodiacs/male/pdf.sex.LEO.MALE.webp differ diff --git a/public/questionnaire-redesign/zodiacs/male/pdf.sex.LIBRA.MALE.webp b/public/questionnaire-redesign/zodiacs/male/pdf.sex.LIBRA.MALE.webp new file mode 100644 index 0000000..7c6b842 Binary files /dev/null and b/public/questionnaire-redesign/zodiacs/male/pdf.sex.LIBRA.MALE.webp differ diff --git a/public/questionnaire-redesign/zodiacs/male/pdf.sex.PISCES.MALE.webp b/public/questionnaire-redesign/zodiacs/male/pdf.sex.PISCES.MALE.webp new file mode 100644 index 0000000..590709a Binary files /dev/null and b/public/questionnaire-redesign/zodiacs/male/pdf.sex.PISCES.MALE.webp differ diff --git a/public/questionnaire-redesign/zodiacs/male/pdf.sex.SAGITTARIUS.MALE.webp b/public/questionnaire-redesign/zodiacs/male/pdf.sex.SAGITTARIUS.MALE.webp new file mode 100644 index 0000000..422b5c8 Binary files /dev/null and b/public/questionnaire-redesign/zodiacs/male/pdf.sex.SAGITTARIUS.MALE.webp differ diff --git a/public/questionnaire-redesign/zodiacs/male/pdf.sex.SCORPIO.MALE.webp b/public/questionnaire-redesign/zodiacs/male/pdf.sex.SCORPIO.MALE.webp new file mode 100644 index 0000000..32d8d5d Binary files /dev/null and b/public/questionnaire-redesign/zodiacs/male/pdf.sex.SCORPIO.MALE.webp differ diff --git a/public/questionnaire-redesign/zodiacs/male/pdf.sex.TAURUS.MALE.webp b/public/questionnaire-redesign/zodiacs/male/pdf.sex.TAURUS.MALE.webp new file mode 100644 index 0000000..d3a76f8 Binary files /dev/null and b/public/questionnaire-redesign/zodiacs/male/pdf.sex.TAURUS.MALE.webp differ diff --git a/public/questionnaire-redesign/zodiacs/male/pdf.sex.VIRGO.MALE.webp b/public/questionnaire-redesign/zodiacs/male/pdf.sex.VIRGO.MALE.webp new file mode 100644 index 0000000..f0d293b Binary files /dev/null and b/public/questionnaire-redesign/zodiacs/male/pdf.sex.VIRGO.MALE.webp differ diff --git a/src/api/api.ts b/src/api/api.ts index 963151a..4acb49b 100644 --- a/src/api/api.ts +++ b/src/api/api.ts @@ -11,7 +11,6 @@ import { DailyForecasts, SubscriptionItems, SubscriptionCheckout, - SubscriptionReceipts, SubscriptionStatus, AICompatCategories, AICompats, @@ -28,6 +27,8 @@ import { SinglePayment, Products, Palmistry, + Paywall, + Payment, } from './resources' const api = { @@ -48,8 +49,8 @@ const api = { getSubscriptionPlans: createMethod{email}
- > - )} - {stripePromise && clientSecret && subscriptionReceiptId && ( -{t("aura.web.price_selection")}
{email}
- > - )} - {stripePromise && clientSecret && subscriptionReceiptId && ( -- {t("auweb.pay.information").replaceAll("%@", getPrice(subPlan))}. + {t("auweb.pay.information").replaceAll("%@", getPrice(product))}.
+
{onboardingTitles[activeIndexTitle] && (
- We've helped{" "} - - millions - {" "} - of people to have happier lives and better relationships, and we want to - help you too. -
-- Money shouldn’t stand in the way of finding astrology guidance that - finally works. So, choose an amount that you think is reasonable to try - us out for one week. -
-- It costs us $13.67 to offer a 3-day trial, but please choose the amount - you are comfortable with. -
-- This option will help us support those who need to select the lowest - trial prices! -
-{email}
-- *Cost of trial as of February 2024 -
+ {!isLoading && ( + <> ++ {getText("text.0", { + replacementSelector: "b", + color: "#1C38EA", + })} +
++ {getText("text.1", { + color: "#1C38EA", + })} +
++ {getText("text.2", { + color: "#1C38EA", + })} +
++ {getText("text.3", { + color: "#1C38EA", + })} +
+{email}
++ {getText("text.4", { + color: "#1C38EA", + })} +
+ > + )} + {isLoading &&You will be charged only{" "} - - ${getPriceFromTrial(activeSubPlan?.trial)} for your 3-day - trial. - + ${getPrice(_activeProduct)} for your 3-day trial.
We`ll email you a reminder before your trial period ends. @@ -160,16 +140,17 @@ function PaymentModal({ {selectedPaymentMethod === EPaymentMethod.PAYMENT_BUTTONS && (
Total today:
- ${getPriceFromTrial(subPlan?.trial)} + ${getPrice(product)}Your cost per 2 weeks after trial
You are enrolling in 2 weeks subscription. By continuing you agree that if you don't cancel prior to the end of the 3-day trial for the $ - {getPriceFromTrial(subPlan?.trial)} you will automatically be charged - $19 every 2 weeks until you cancel in settings. Learn more about - cancellation and refund policy in{" "} + {getPrice(product)} you will automatically be charged $19 every 2 weeks + until you cancel in settings. Learn more about cancellation and refund + policy in{" "} Subscription policy
> diff --git a/src/components/pages/ABDesign/v1/pages/TrialPayment/components/PersonalInformation/index.tsx b/src/components/pages/ABDesign/v1/pages/TrialPayment/components/PersonalInformation/index.tsx index 247479c..5b84af4 100644 --- a/src/components/pages/ABDesign/v1/pages/TrialPayment/components/PersonalInformation/index.tsx +++ b/src/components/pages/ABDesign/v1/pages/TrialPayment/components/PersonalInformation/index.tsx @@ -22,7 +22,7 @@ function PersonalInformation({ >
You
Partner
diff --git a/src/components/pages/ABDesign/v1/pages/TrialPayment/components/WithPartnerInformation/styles.module.css b/src/components/pages/ABDesign/v1/pages/TrialPayment/components/WithPartnerInformation/styles.module.css index 634a673..259ade7 100644 --- a/src/components/pages/ABDesign/v1/pages/TrialPayment/components/WithPartnerInformation/styles.module.css +++ b/src/components/pages/ABDesign/v1/pages/TrialPayment/components/WithPartnerInformation/styles.module.css @@ -17,8 +17,10 @@ min-height: 100px; border-top-left-radius: 15px; border-top-right-radius: 15px; - display: flex; - justify-content: space-around; + display: grid; + grid-template-columns: calc(50% - 28px) min-content calc(50% - 28px); + align-items: center; + gap: 4px; padding-top: 10px; padding-bottom: 6px; } @@ -33,6 +35,8 @@ .image-container > img { height: 196px; + width: 100%; + object-fit: contain; } .image-container > p { diff --git a/src/components/pages/ABDesign/v1/pages/TrialPayment/components/YourReading/index.tsx b/src/components/pages/ABDesign/v1/pages/TrialPayment/components/YourReading/index.tsx index 3ddb4d8..6dbb855 100644 --- a/src/components/pages/ABDesign/v1/pages/TrialPayment/components/YourReading/index.tsx +++ b/src/components/pages/ABDesign/v1/pages/TrialPayment/components/YourReading/index.tsx @@ -40,7 +40,7 @@ function YourReading({
No pressure. Cancel anytime.
+
Secret discount applied!
Your cost per 14 days after trial:
You save $30
Total today:
- {activeSub && ${getPriceFromTrial(activeSub.trial)}} + {activeProduct && ${getPrice(activeProduct)}}By continuing you agree that if you don't cancel prior to the end of the - 3-days trial, you will automatically be charged $9 for the introductory - period of 14 days thereafter the standard rate of $9 every 14 days until - you cancel in settings. Learn more about cancellation and refund policy - in Subscription terms. + 3-days trial, you will automatically be charged $ + {(productFromStore?.price || 0) / 100} for the introductory period of 14 + days thereafter the standard rate of $ + {(productFromStore?.price || 0) / 100} every 14 days until you cancel in + settings. Learn more about cancellation and refund policy in + Subscription terms.
up to $13.67
+{oldPrice}
$0
+${newPrice}
Everything for free. Trial include!
No pressure. Cancel anytime
Total today:
-$0
+${(products[0]?.trialPrice / 100).toFixed(2) || 0}
Save $10 every period
- You will be charged only $0 for your 7-day trial.{" "} + You will be charged only ${(products[0]?.trialPrice / 100).toFixed(2) || 0} for your 7-day trial.{" "} Subscription renews automatically until cancelled. You{" "} can cancel at any time before the end of the trial.
diff --git a/src/components/pages/Gender/index.tsx b/src/components/pages/Gender/index.tsx index 725871f..199a643 100644 --- a/src/components/pages/Gender/index.tsx +++ b/src/components/pages/Gender/index.tsx @@ -20,6 +20,11 @@ function GenderPage({ productKey }: IGenderPageProps): JSX.Element { useEffect(() => { const isShowTryApp = targetId === "i"; dispatch(actions.userConfig.addIsShowTryApp(isShowTryApp)); + if (targetId && typeof window.ym === "function" && targetId !== "i") { + window.ym(95799066, "userParams", { + genderFrom: targetId, + }); + } }, [dispatch, targetId]); const selectGender = (gender: Gender) => { diff --git a/src/components/pages/GetInformationPartner/index.tsx b/src/components/pages/GetInformationPartner/index.tsx index 53e8454..effc206 100644 --- a/src/components/pages/GetInformationPartner/index.tsx +++ b/src/components/pages/GetInformationPartner/index.tsx @@ -17,7 +17,13 @@ function GetInformationPartnerPage() { return (