@nuskin/react-loyalty-elements 1.1.0-loyalty-mvp.2 → 1.1.0-loyalty-exclude.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -10,15 +10,12 @@ export const ModalBody = styled.div`
|
|
|
10
10
|
overflow-x: hidden !important;
|
|
11
11
|
`;
|
|
12
12
|
export const SubscriptionRewardImg = styled.div`
|
|
13
|
-
display:
|
|
13
|
+
display: flex !important;
|
|
14
14
|
align-items: center;
|
|
15
15
|
align-content: center;
|
|
16
16
|
padding: 0px !important;
|
|
17
17
|
img {
|
|
18
|
-
max-height: 200px !important;
|
|
19
|
-
margin: -24px;
|
|
20
18
|
padding: 0px;
|
|
21
|
-
width: -webkit-fill-available;
|
|
22
19
|
}
|
|
23
20
|
`;
|
|
24
21
|
export const VoucherDiv = styled.div`
|
|
@@ -52,4 +49,30 @@ export const VoucherDercription = styled.div`
|
|
|
52
49
|
export const Footer = styled.div`
|
|
53
50
|
margin: -10px;
|
|
54
51
|
font-size: 15px;
|
|
52
|
+
text-decoration: underline;
|
|
53
|
+
`;
|
|
54
|
+
export const HeaderDiscription = styled.div`
|
|
55
|
+
margin-top: -100px;
|
|
56
|
+
padding: 10px;
|
|
57
|
+
span {
|
|
58
|
+
font-family: Inter;
|
|
59
|
+
font-weight: 600;
|
|
60
|
+
font-size: 14px;
|
|
61
|
+
line-height: 20px;
|
|
62
|
+
letter-spacing: 11%;
|
|
63
|
+
text-align: center;
|
|
64
|
+
color: #ffffff;
|
|
65
|
+
display: flex;
|
|
66
|
+
justify-content: center;
|
|
67
|
+
}
|
|
68
|
+
img {
|
|
69
|
+
width: 100%;
|
|
70
|
+
height: 100%;
|
|
71
|
+
padding: 0px 100px;
|
|
72
|
+
}
|
|
73
|
+
`;
|
|
74
|
+
export const HeaderSection = styled.div`
|
|
75
|
+
overflow: hidden;
|
|
76
|
+
margin: -24px;
|
|
77
|
+
}
|
|
55
78
|
`;
|
|
@@ -8,12 +8,16 @@ import {
|
|
|
8
8
|
VoucherIcon,
|
|
9
9
|
VoucherDercription,
|
|
10
10
|
Footer,
|
|
11
|
+
HeaderSection,
|
|
12
|
+
HeaderDiscription,
|
|
11
13
|
} from './SubscriptionRewardModal.style';
|
|
12
14
|
import { RewardModalProps } from './types';
|
|
13
|
-
import
|
|
15
|
+
import PromoLayoutIcon from '../Icons/PromoLayoutIcon';
|
|
16
|
+
import bannerImage from '../images/Rewards-Hero.jpg';
|
|
17
|
+
import RewardsLogo from '../images/rewards-logo-white.png';
|
|
14
18
|
|
|
15
19
|
export default function SubscriptionRewardModal(props: RewardModalProps) {
|
|
16
|
-
const {
|
|
20
|
+
const { show = false, close = () => {} } = props;
|
|
17
21
|
return (
|
|
18
22
|
<SubscriptionRewardPopup
|
|
19
23
|
variant="default"
|
|
@@ -24,13 +28,15 @@ export default function SubscriptionRewardModal(props: RewardModalProps) {
|
|
|
24
28
|
isCloseIcon: true,
|
|
25
29
|
show: show,
|
|
26
30
|
children: (
|
|
27
|
-
<
|
|
28
|
-
<
|
|
29
|
-
height={'
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
31
|
+
<HeaderSection>
|
|
32
|
+
<SubscriptionRewardImg>
|
|
33
|
+
<img height={'299px'} width={'690px'} src={bannerImage} />
|
|
34
|
+
</SubscriptionRewardImg>
|
|
35
|
+
<HeaderDiscription>
|
|
36
|
+
<span>TREAT YOURSELF TO THE PERKS OF</span>
|
|
37
|
+
<img height={'38.88px'} width={'360px'} src={RewardsLogo} />
|
|
38
|
+
</HeaderDiscription>
|
|
39
|
+
</HeaderSection>
|
|
34
40
|
),
|
|
35
41
|
}}
|
|
36
42
|
body={{
|
|
@@ -62,7 +68,12 @@ export default function SubscriptionRewardModal(props: RewardModalProps) {
|
|
|
62
68
|
footer={{
|
|
63
69
|
children: (
|
|
64
70
|
<Footer>
|
|
65
|
-
<
|
|
71
|
+
<a
|
|
72
|
+
href={'https://www.nuskin.com/content/nuskin/en_US/nu-skin-rewards-info.html'}
|
|
73
|
+
target="_blank"
|
|
74
|
+
>
|
|
75
|
+
{'Learn More'}
|
|
76
|
+
</a>
|
|
66
77
|
</Footer>
|
|
67
78
|
),
|
|
68
79
|
show: show,
|