diff --git a/src/components/pages/AdditionalDiscount/index.tsx b/src/components/pages/AdditionalDiscount/index.tsx
index e3b5c3b..9b12961 100644
--- a/src/components/pages/AdditionalDiscount/index.tsx
+++ b/src/components/pages/AdditionalDiscount/index.tsx
@@ -16,7 +16,7 @@ function AdditionalDiscount() {
diff --git a/src/components/pages/AdditionalDiscount/styles.module.css b/src/components/pages/AdditionalDiscount/styles.module.css
index 3d8e28a..89ee900 100644
--- a/src/components/pages/AdditionalDiscount/styles.module.css
+++ b/src/components/pages/AdditionalDiscount/styles.module.css
@@ -36,6 +36,7 @@
.discount-point > img {
width: 48px;
+ height: 48px;
}
.discount-point-description {
diff --git a/src/components/pages/AllRight/index.tsx b/src/components/pages/AllRight/index.tsx
index f33e4f3..53d8c01 100644
--- a/src/components/pages/AllRight/index.tsx
+++ b/src/components/pages/AllRight/index.tsx
@@ -22,7 +22,7 @@ function AllRightPage() {
return (
-
+
All right! You keep your emotions in check{" "}
diff --git a/src/components/pages/AllRight/styles.module.css b/src/components/pages/AllRight/styles.module.css
index 73b6b97..f5e6b28 100644
--- a/src/components/pages/AllRight/styles.module.css
+++ b/src/components/pages/AllRight/styles.module.css
@@ -13,6 +13,7 @@
background-size: cover;
color: #fff;
padding-top: 64px;
+ background-color: #171717;
}
.title {
diff --git a/src/components/pages/AlmostThere/index.tsx b/src/components/pages/AlmostThere/index.tsx
index 4c6649f..41c1169 100644
--- a/src/components/pages/AlmostThere/index.tsx
+++ b/src/components/pages/AlmostThere/index.tsx
@@ -17,7 +17,7 @@ function AlmostTherePage() {
return (
-
+
Almost there! Now let's tailor your plan by understanding the{" "}
diff --git a/src/components/pages/Both/index.tsx b/src/components/pages/Both/index.tsx
index e3cce15..2f87f8a 100755
--- a/src/components/pages/Both/index.tsx
+++ b/src/components/pages/Both/index.tsx
@@ -22,7 +22,7 @@ function BothPage() {
return (
-
+
Wonderful!
diff --git a/src/components/pages/EmailConfirm/styles.module.css b/src/components/pages/EmailConfirm/styles.module.css
index 48634da..2b22b22 100755
--- a/src/components/pages/EmailConfirm/styles.module.css
+++ b/src/components/pages/EmailConfirm/styles.module.css
@@ -34,6 +34,7 @@
.eye-image {
width: 100%;
max-width: 180px;
+ min-height: 180px;
}
.top-section {
diff --git a/src/components/pages/EmailLetters/MarketingLanding/index.tsx b/src/components/pages/EmailLetters/MarketingLanding/index.tsx
index a1a6d1b..902cb27 100644
--- a/src/components/pages/EmailLetters/MarketingLanding/index.tsx
+++ b/src/components/pages/EmailLetters/MarketingLanding/index.tsx
@@ -37,22 +37,34 @@ function MarketingLanding() {
Highlights of your plan:
-
+
+
-
-
+
Continue
diff --git a/src/components/pages/EmailLetters/MarketingTrialPayment/styles.module.css b/src/components/pages/EmailLetters/MarketingTrialPayment/styles.module.css
index d718370..04ab262 100644
--- a/src/components/pages/EmailLetters/MarketingTrialPayment/styles.module.css
+++ b/src/components/pages/EmailLetters/MarketingTrialPayment/styles.module.css
@@ -1,7 +1,6 @@
.page {
background-color: #fff0f0;
padding: 60px 45px;
- min-width: 100vw;
height: fit-content;
min-height: 100dvh;
}
diff --git a/src/components/pages/GoalSetup/index.tsx b/src/components/pages/GoalSetup/index.tsx
index 1db563d..767c846 100644
--- a/src/components/pages/GoalSetup/index.tsx
+++ b/src/components/pages/GoalSetup/index.tsx
@@ -17,7 +17,11 @@ function GoalSetupPage() {
return (
-
+
Great! You just set your first goal!
diff --git a/src/components/pages/HyperPersonalizedAstrologyPage/styles.module.css b/src/components/pages/HyperPersonalizedAstrologyPage/styles.module.css
index 0826b8f..1e08057 100644
--- a/src/components/pages/HyperPersonalizedAstrologyPage/styles.module.css
+++ b/src/components/pages/HyperPersonalizedAstrologyPage/styles.module.css
@@ -6,14 +6,16 @@
justify-content: start;
align-items: center;
flex-direction: column;
- gap: 20px;
+ gap: 16px;
background: url("/moon_phases.webp");
background-position-y: bottom;
background-position-x: center;
background-size: cover;
background-repeat: no-repeat;
color: #fff;
- padding-top: 64px;
+ padding-top: 48px;
+ padding-bottom: 96px;
+ background-color: #171717;
}
.title {
@@ -56,5 +58,5 @@
min-height: fit-content;
border-radius: 12px;
font-weight: 400;
- margin-top: 30px;
+ margin-top: 20px;
}
diff --git a/src/components/pages/NoBirthtime/index.tsx b/src/components/pages/NoBirthtime/index.tsx
index a6ebdfa..cbb5a99 100644
--- a/src/components/pages/NoBirthtime/index.tsx
+++ b/src/components/pages/NoBirthtime/index.tsx
@@ -26,7 +26,11 @@ function NoBirthtimePage() {
return (
-
+
No problem! You can still find plenty of great insights without
diff --git a/src/components/pages/NotAlone/index.tsx b/src/components/pages/NotAlone/index.tsx
index b73401a..1df386b 100644
--- a/src/components/pages/NotAlone/index.tsx
+++ b/src/components/pages/NotAlone/index.tsx
@@ -22,7 +22,11 @@ function NotAlonePage() {
return (
-
+
You’re not alone. A lot of{" "}
diff --git a/src/components/pages/PartnerRightPlace/index.tsx b/src/components/pages/PartnerRightPlace/index.tsx
index a95a54c..da29b36 100755
--- a/src/components/pages/PartnerRightPlace/index.tsx
+++ b/src/components/pages/PartnerRightPlace/index.tsx
@@ -22,7 +22,7 @@ function PartnerRightPlacePage() {
return (
-
+
You’ve come to the right place,
diff --git a/src/components/pages/PartnerThing/index.tsx b/src/components/pages/PartnerThing/index.tsx
index a0e9deb..cf5acb4 100755
--- a/src/components/pages/PartnerThing/index.tsx
+++ b/src/components/pages/PartnerThing/index.tsx
@@ -22,7 +22,11 @@ function PartnerThingPage() {
return (
-
+
{zodiacSign} , here’s the
diff --git a/src/components/pages/PartnerTotallyNormal/index.tsx b/src/components/pages/PartnerTotallyNormal/index.tsx
index 85498d7..53f4514 100755
--- a/src/components/pages/PartnerTotallyNormal/index.tsx
+++ b/src/components/pages/PartnerTotallyNormal/index.tsx
@@ -22,7 +22,7 @@ function PartnerTotallyNormalPage() {
return (
-
+
It’s totally normal to feel nervous,{" "}
diff --git a/src/components/pages/QuestionnaireIntermediate/index.tsx b/src/components/pages/QuestionnaireIntermediate/index.tsx
index 9728c0d..d9302d9 100644
--- a/src/components/pages/QuestionnaireIntermediate/index.tsx
+++ b/src/components/pages/QuestionnaireIntermediate/index.tsx
@@ -10,9 +10,9 @@ import { textVariables } from "@/data";
function QuestionnaireIntermediatePage() {
const navigate = useNavigate();
const { problems } = useSelector(selectors.selectQuestionnaire);
- const path = window.location.href.split("/").pop();
+ const path = window.location.href.split("/").filter(Boolean).pop();
const backgroundImages =
- textVariables[path as keyof typeof textVariables].backgroundImages;
+ textVariables[path as keyof typeof textVariables]?.backgroundImages;
const backgroundImage =
backgroundImages && backgroundImages[problems]
? backgroundImages[problems]
@@ -24,7 +24,9 @@ function QuestionnaireIntermediatePage() {
const handleNext = () => {
if (path === "works-traits") {
- return navigate(`${routes.client.questionnaire()}/personalityTraits/relateToStatement`);
+ return navigate(
+ `${routes.client.questionnaire()}/personalityTraits/relateToStatement`
+ );
}
navigate(`${routes.client.questionnaire()}/partnerProfile/partnerGender`);
};
@@ -36,7 +38,11 @@ function QuestionnaireIntermediatePage() {
backgroundImage: `url(${backgroundImage})`,
}}
>
-
+
{path && (
diff --git a/src/components/pages/RelationshipAlmostThere/index.tsx b/src/components/pages/RelationshipAlmostThere/index.tsx
index b07bfa7..4519018 100644
--- a/src/components/pages/RelationshipAlmostThere/index.tsx
+++ b/src/components/pages/RelationshipAlmostThere/index.tsx
@@ -17,7 +17,11 @@ function RelationshipAlmostTherePage() {
return (
-
+
Almost there! Now let's begin tailoring your plan by understanding
diff --git a/src/components/pages/RelationshipZodiacInfo/index.tsx b/src/components/pages/RelationshipZodiacInfo/index.tsx
index e6842b6..3842d66 100755
--- a/src/components/pages/RelationshipZodiacInfo/index.tsx
+++ b/src/components/pages/RelationshipZodiacInfo/index.tsx
@@ -56,12 +56,12 @@ function RelationshipZodiacInfoPage() {
diff --git a/src/components/pages/TrialPaymentWithDiscount/PaymentDiscountTable/styles.module.css b/src/components/pages/TrialPaymentWithDiscount/PaymentDiscountTable/styles.module.css
index b41ff23..b57bf75 100644
--- a/src/components/pages/TrialPaymentWithDiscount/PaymentDiscountTable/styles.module.css
+++ b/src/components/pages/TrialPaymentWithDiscount/PaymentDiscountTable/styles.module.css
@@ -53,6 +53,7 @@
flex-direction: row;
align-items: center;
justify-content: center;
+ gap: 4px;
}
.discount {
diff --git a/src/components/pages/WithHead/index.tsx b/src/components/pages/WithHead/index.tsx
index 44dcf56..7315b8e 100755
--- a/src/components/pages/WithHead/index.tsx
+++ b/src/components/pages/WithHead/index.tsx
@@ -22,7 +22,11 @@ function WithHeadPage() {
return (
-
+
Based on our data, 39% of{" "}
diff --git a/src/components/pages/WithHeart/index.tsx b/src/components/pages/WithHeart/index.tsx
index 946d9df..3e69e26 100755
--- a/src/components/pages/WithHeart/index.tsx
+++ b/src/components/pages/WithHeart/index.tsx
@@ -22,7 +22,11 @@ function WithHeartPage() {
return (
-
+
Based on our data, 49% of{" "}
diff --git a/src/hooks/scrollToTop.tsx b/src/hooks/scrollToTop.tsx
new file mode 100644
index 0000000..4a54c49
--- /dev/null
+++ b/src/hooks/scrollToTop.tsx
@@ -0,0 +1,16 @@
+import { useEffect } from "react";
+import { useLocation } from "react-router-dom";
+
+export const ScrollToTop = () => {
+ const { pathname } = useLocation();
+
+ useEffect(() => {
+ window.scrollTo({
+ top: 0,
+ left: 0,
+ behavior: "smooth",
+ });
+ }, [pathname]);
+
+ return null;
+};
diff --git a/src/index.css b/src/index.css
index 963cec1..4c9d270 100644
--- a/src/index.css
+++ b/src/index.css
@@ -184,6 +184,7 @@ div[class^="divider"] {
#root {
height: 100%;
+ min-width: 100vw;
}
a,