-
{t('special_welcome_offer')}
-
{t('get_100_off')}
-
-
$9.99
-
$0.00
+ {/*
{t('special_welcome_offer')} */}
+

+
+ {t("au.friends.window")}
+
+
+ {t("au.get50.only")}
+
+
+ {Number(halfPrice) > 0 &&
+ <>
+ ${selectedPrice}{" "}
+ –${halfPrice}
+ >
+ }
+ {!Number(halfPrice) && {t('au.free_trial_web.7_14')}}
-
+
+ $ {halfPrice} – {t("au.try_for.button")}
+
+
{
+ console.log("click");
+ }}
+ >
+
+ {t("au.more_llc.button")}
+
- ): null}
+ ) : null}
>
- )
+ );
}
-export default SpecialWelcomeOffer
+export default SpecialWelcomeOffer;
diff --git a/src/components/SpecialWelcomeOffer/styles.module.css b/src/components/SpecialWelcomeOffer/styles.module.css
index 7f26c9c..c52c4e2 100644
--- a/src/components/SpecialWelcomeOffer/styles.module.css
+++ b/src/components/SpecialWelcomeOffer/styles.module.css
@@ -1,40 +1,73 @@
-
-
.content {
- padding: 0 24px 64px 24px;
- display: flex;
- flex-direction: column;
- align-items: center;
- gap: 12px;
- padding-top: 28px;
+ padding: 0 24px 64px 24px;
+ display: flex;
+ flex-direction: column;
+ align-items: center;
+ gap: 12px;
+ padding-top: 28px;
}
.welcome-offer {
- color: #717171;
- font-weight: 500;
+ color: #717171;
+ font-weight: 500;
}
.discount-container {
- display: flex;
- flex-direction: row;
- gap: 16px;
- font-size: 24px;
- font-weight: 600;
+ display: flex;
+ flex-direction: row;
+ gap: 16px;
+ font-size: 32px;
+ font-weight: 600;
+ margin-bottom: 32px;
}
.red-price {
- color: red;
- text-decoration: line-through;
+ color: red;
+ text-decoration: line-through;
}
-.button {
- background-color: #69e573;
- color: #fff;
+.button-green {
+ background-color: #18d136;
+ font-weight: 600;
+ font-size: 21px;
+ /* color: #fff;
border-radius: 26px;
width: 100%;
max-width: 300px;
padding: 12px 0;
border: none;
font-size: 14px;
- margin-top: 16px;
-}
\ No newline at end of file
+ margin-top: 16px; */
+}
+
+.button-black {
+ font-weight: 600;
+ font-size: 21px;
+ position: relative;
+}
+
+.your-friends {
+ width: 80%;
+ font-weight: 600;
+ margin-bottom: 8px;
+}
+
+.get-50-only {
+ margin-bottom: 0;
+ font-weight: 700;
+ color: #ff003d;
+}
+
+.button-icon {
+ position: absolute;
+ width: 48px;
+ top: 50%;
+ left: 13px;
+ transform: translateY(-50%);
+
+}
+
+.free-trial {
+ font-size: 22px;
+ font-weight: 600;
+}
diff --git a/src/store/index.ts b/src/store/index.ts
index 7ca2fcf..56f127e 100644
--- a/src/store/index.ts
+++ b/src/store/index.ts
@@ -4,7 +4,7 @@ import user, { actions as userActions, selectUser } from './user'
import form, { actions as formActions, selectors as formSelectors } from './form'
import aura, { actions as auraActions } from './aura'
import siteConfig, { selectHome, actions as siteConfigActions } from './siteConfig'
-import payment, { actions as paymentActions } from './payment'
+import payment, { actions as paymentActions, selectIsDiscount } from './payment'
import subscriptionPlans, { actions as subscriptionPlasActions, selectPlanById } from './subscriptionPlan'
import status, { actions as userStatusActions, selectStatus } from './status'
import compatibility, { actions as compatibilityActions } from './compatibility'
@@ -44,6 +44,7 @@ export const selectors = {
selectUserCallbacksDescription,
selectUserCallbacksPrevStat,
selectHome,
+ selectIsDiscount,
...formSelectors,
}
export type RootState = ReturnType
diff --git a/src/store/payment.ts b/src/store/payment.ts
index 8cf8135..c4d7de4 100644
--- a/src/store/payment.ts
+++ b/src/store/payment.ts
@@ -1,28 +1,34 @@
-import { createSlice, createSelector } from '@reduxjs/toolkit'
-import type { PayloadAction } from '@reduxjs/toolkit'
+import { createSlice, createSelector } from "@reduxjs/toolkit";
+import type { PayloadAction } from "@reduxjs/toolkit";
interface IPayment {
- selectedPrice: number | null
+ selectedPrice: number | null;
+ isDiscount: boolean;
}
const initialState: IPayment = {
- selectedPrice: null
-}
+ selectedPrice: null,
+ isDiscount: false,
+};
const paymentSlice = createSlice({
- name: 'payment',
+ name: "payment",
initialState,
reducers: {
update(state, action: PayloadAction>) {
- return { ...state, ...action.payload }
+ return { ...state, ...action.payload };
},
},
- extraReducers: (builder) => builder.addCase('reset', () => initialState),
-})
+ extraReducers: (builder) => builder.addCase("reset", () => initialState),
+});
-export const { actions } = paymentSlice
+export const { actions } = paymentSlice;
export const selectSelectedPrice = createSelector(
(state: { payment: IPayment }) => state.payment.selectedPrice,
(payment) => payment
-)
-export default paymentSlice.reducer
+);
+export const selectIsDiscount = createSelector(
+ (state: { payment: IPayment }) => state.payment.isDiscount,
+ (payment) => payment
+);
+export default paymentSlice.reducer;