@katajere/recap 1.0.3 → 1.0.9
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/dist/App.css +156 -156
- package/dist/FloatingFrames.css +55 -55
- package/dist/LoginScreen.css +146 -146
- package/dist/OtpScreen.css +133 -133
- package/dist/RecapStory.css +105 -105
- package/dist/StoryProgress.css +47 -47
- package/dist/assets/huxxle-blue-logo.svg +14 -14
- package/dist/assets/login-logo.svg +14 -14
- package/dist/assets/slide-logo.svg +14 -14
- package/dist/components/Header.css +46 -46
- package/dist/slides/Slide10Final.css +101 -101
- package/dist/slides/Slide1Intro.css +235 -235
- package/dist/slides/Slide2Days.css +209 -209
- package/dist/slides/Slide3Revenue.css +89 -89
- package/dist/slides/Slide4Orders.css +135 -135
- package/dist/slides/Slide5Buyers.css +140 -140
- package/dist/slides/Slide6Customer.css +92 -92
- package/dist/slides/Slide7Products.css +144 -144
- package/dist/slides/Slide8Months.css +148 -148
- package/dist/slides/Slide9Year.css +93 -93
- package/package.json +1 -1
- package/src/App.css +156 -156
- package/src/FloatingFrames.css +55 -55
- package/src/FloatingFrames.tsx +27 -27
- package/src/LoginScreen.css +146 -146
- package/src/LoginScreen.tsx +70 -70
- package/src/OtpScreen.css +133 -133
- package/src/OtpScreen.tsx +109 -109
- package/src/RecapApp.tsx +34 -34
- package/src/RecapStory.css +105 -105
- package/src/RecapStory.tsx +269 -269
- package/src/StoryProgress.css +47 -47
- package/src/StoryProgress.tsx +60 -60
- package/src/assets.d.ts +41 -41
- package/src/components/Header.css +46 -46
- package/src/components/Header.tsx +41 -41
- package/src/data/mock.ts +62 -62
- package/src/data/recapCopy.ts +33 -33
- package/src/hooks/useBackgroundMusic.ts +79 -79
- package/src/index.ts +70 -70
- package/src/react-app-env.d.ts +26 -26
- package/src/slides/Slide10Final.css +101 -101
- package/src/slides/Slide10Final.tsx +105 -105
- package/src/slides/Slide1Intro.css +235 -235
- package/src/slides/Slide1Intro.tsx +141 -141
- package/src/slides/Slide2Days.css +209 -209
- package/src/slides/Slide2Days.tsx +92 -92
- package/src/slides/Slide3Revenue.css +89 -89
- package/src/slides/Slide3Revenue.tsx +76 -76
- package/src/slides/Slide4Orders.css +135 -135
- package/src/slides/Slide4Orders.tsx +63 -63
- package/src/slides/Slide5Buyers.css +140 -140
- package/src/slides/Slide5Buyers.tsx +74 -74
- package/src/slides/Slide6Customer.css +92 -92
- package/src/slides/Slide6Customer.tsx +27 -27
- package/src/slides/Slide7Products.css +144 -144
- package/src/slides/Slide7Products.tsx +81 -81
- package/src/slides/Slide8Months.css +148 -148
- package/src/slides/Slide8Months.tsx +63 -63
- package/src/slides/Slide9Year.css +93 -93
- package/src/slides/Slide9Year.tsx +35 -35
- package/src/types.ts +39 -39
- package/src/utils/format.ts +18 -18
- package/src/utils/index.ts +3 -3
- package/src/utils/motion.ts +89 -89
|
@@ -1,63 +1,63 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { motion } from 'framer-motion';
|
|
3
|
-
import './Slide4Orders.css';
|
|
4
|
-
|
|
5
|
-
interface Slide4OrdersProps {
|
|
6
|
-
orders: number;
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
/**
|
|
10
|
-
* Slide4Orders - Emphasizes the order volume with rotated card outlines in the background
|
|
11
|
-
*/
|
|
12
|
-
function Slide4Orders({ orders }: Slide4OrdersProps) {
|
|
13
|
-
const rectGroups = [
|
|
14
|
-
{ id: 'group-1', rects: ['r5', 'r6', 'r7', 'r8'], groupClass: 'group-1' },
|
|
15
|
-
{ id: 'group-2', rects: ['r1', 'r2', 'r3', 'r4'], groupClass: 'group-2' },
|
|
16
|
-
{ id: 'group-3', rects: ['r10', 'r11', 'r12'], groupClass: 'group-3' }
|
|
17
|
-
];
|
|
18
|
-
|
|
19
|
-
return (
|
|
20
|
-
<div className="slide4-orders">
|
|
21
|
-
<div className="slide4-orders__grid" aria-hidden="true">
|
|
22
|
-
{rectGroups.map(group => (
|
|
23
|
-
<React.Fragment key={group.id}>
|
|
24
|
-
{group.rects.map(rect => (
|
|
25
|
-
<span key={rect} className={`slide4-orders__rect ${rect} ${group.groupClass}`} />
|
|
26
|
-
))}
|
|
27
|
-
</React.Fragment>
|
|
28
|
-
))}
|
|
29
|
-
</div>
|
|
30
|
-
|
|
31
|
-
<div className="slide4-orders__content">
|
|
32
|
-
<motion.p
|
|
33
|
-
className="slide4-orders__label"
|
|
34
|
-
initial={{ opacity: 0, y: 20 }}
|
|
35
|
-
animate={{ opacity: 1, y: 0 }}
|
|
36
|
-
transition={{ duration: 0.5 }}
|
|
37
|
-
>
|
|
38
|
-
orders choke
|
|
39
|
-
</motion.p>
|
|
40
|
-
|
|
41
|
-
<motion.div
|
|
42
|
-
className="slide4-orders__number"
|
|
43
|
-
initial={{ opacity: 0, scale: 0.95 }}
|
|
44
|
-
animate={{ opacity: 1, scale: 1 }}
|
|
45
|
-
transition={{ duration: 0.8, delay: 0.3 }}
|
|
46
|
-
>
|
|
47
|
-
{orders.toLocaleString()}
|
|
48
|
-
</motion.div>
|
|
49
|
-
|
|
50
|
-
<motion.p
|
|
51
|
-
className="slide4-orders__caption"
|
|
52
|
-
initial={{ opacity: 0, y: 20 }}
|
|
53
|
-
animate={{ opacity: 1, y: 0 }}
|
|
54
|
-
transition={{ duration: 0.5, delay: 0.6 }}
|
|
55
|
-
>
|
|
56
|
-
Na serious hustle be this <span aria-hidden="true">💪</span>
|
|
57
|
-
</motion.p>
|
|
58
|
-
</div>
|
|
59
|
-
</div>
|
|
60
|
-
);
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
export default Slide4Orders;
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { motion } from 'framer-motion';
|
|
3
|
+
import './Slide4Orders.css';
|
|
4
|
+
|
|
5
|
+
interface Slide4OrdersProps {
|
|
6
|
+
orders: number;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
/**
|
|
10
|
+
* Slide4Orders - Emphasizes the order volume with rotated card outlines in the background
|
|
11
|
+
*/
|
|
12
|
+
function Slide4Orders({ orders }: Slide4OrdersProps) {
|
|
13
|
+
const rectGroups = [
|
|
14
|
+
{ id: 'group-1', rects: ['r5', 'r6', 'r7', 'r8'], groupClass: 'group-1' },
|
|
15
|
+
{ id: 'group-2', rects: ['r1', 'r2', 'r3', 'r4'], groupClass: 'group-2' },
|
|
16
|
+
{ id: 'group-3', rects: ['r10', 'r11', 'r12'], groupClass: 'group-3' }
|
|
17
|
+
];
|
|
18
|
+
|
|
19
|
+
return (
|
|
20
|
+
<div className="slide4-orders">
|
|
21
|
+
<div className="slide4-orders__grid" aria-hidden="true">
|
|
22
|
+
{rectGroups.map(group => (
|
|
23
|
+
<React.Fragment key={group.id}>
|
|
24
|
+
{group.rects.map(rect => (
|
|
25
|
+
<span key={rect} className={`slide4-orders__rect ${rect} ${group.groupClass}`} />
|
|
26
|
+
))}
|
|
27
|
+
</React.Fragment>
|
|
28
|
+
))}
|
|
29
|
+
</div>
|
|
30
|
+
|
|
31
|
+
<div className="slide4-orders__content">
|
|
32
|
+
<motion.p
|
|
33
|
+
className="slide4-orders__label"
|
|
34
|
+
initial={{ opacity: 0, y: 20 }}
|
|
35
|
+
animate={{ opacity: 1, y: 0 }}
|
|
36
|
+
transition={{ duration: 0.5 }}
|
|
37
|
+
>
|
|
38
|
+
orders choke
|
|
39
|
+
</motion.p>
|
|
40
|
+
|
|
41
|
+
<motion.div
|
|
42
|
+
className="slide4-orders__number"
|
|
43
|
+
initial={{ opacity: 0, scale: 0.95 }}
|
|
44
|
+
animate={{ opacity: 1, scale: 1 }}
|
|
45
|
+
transition={{ duration: 0.8, delay: 0.3 }}
|
|
46
|
+
>
|
|
47
|
+
{orders.toLocaleString()}
|
|
48
|
+
</motion.div>
|
|
49
|
+
|
|
50
|
+
<motion.p
|
|
51
|
+
className="slide4-orders__caption"
|
|
52
|
+
initial={{ opacity: 0, y: 20 }}
|
|
53
|
+
animate={{ opacity: 1, y: 0 }}
|
|
54
|
+
transition={{ duration: 0.5, delay: 0.6 }}
|
|
55
|
+
>
|
|
56
|
+
Na serious hustle be this <span aria-hidden="true">💪</span>
|
|
57
|
+
</motion.p>
|
|
58
|
+
</div>
|
|
59
|
+
</div>
|
|
60
|
+
);
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
export default Slide4Orders;
|
|
@@ -1,140 +1,140 @@
|
|
|
1
|
-
.slide5-buyers {
|
|
2
|
-
position: relative;
|
|
3
|
-
width: 100%;
|
|
4
|
-
min-height: 100%;
|
|
5
|
-
display: flex;
|
|
6
|
-
align-items: center;
|
|
7
|
-
justify-content: center;
|
|
8
|
-
padding: 9.48% 6.15% 7.11%;
|
|
9
|
-
overflow: hidden;
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
@media (max-height: 720px), (orientation: landscape) {
|
|
13
|
-
.slide5-buyers {
|
|
14
|
-
padding: clamp(24px, 5vh, 40px) 6.15% clamp(24px, 4vh, 32px);
|
|
15
|
-
}
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
.slide5-buyers__grid {
|
|
19
|
-
position: absolute;
|
|
20
|
-
inset: 0;
|
|
21
|
-
/* width: 650px; */
|
|
22
|
-
height: 100%;
|
|
23
|
-
margin: 0 auto;
|
|
24
|
-
pointer-events: none;
|
|
25
|
-
z-index: 0;
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
.column {
|
|
29
|
-
position: absolute;
|
|
30
|
-
width: 179px;
|
|
31
|
-
height: 100%;
|
|
32
|
-
display: flex;
|
|
33
|
-
justify-content: center;
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
.column-left {
|
|
37
|
-
left: -33.33%;
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
.column-right {
|
|
41
|
-
right: -33.33%;
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
.column-inner {
|
|
45
|
-
position: absolute;
|
|
46
|
-
top: 0;
|
|
47
|
-
left: 0;
|
|
48
|
-
width: 179px;
|
|
49
|
-
height: 1300px;
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
.column-left .column-inner {
|
|
53
|
-
animation: moveUp 6s linear infinite;
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
.column-right .column-inner {
|
|
57
|
-
animation: moveDown 6s linear infinite;
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
.rect {
|
|
61
|
-
position: absolute;
|
|
62
|
-
width: 179px;
|
|
63
|
-
height: 239px;
|
|
64
|
-
box-sizing: border-box;
|
|
65
|
-
border: 1px solid #FFFFFF;
|
|
66
|
-
}
|
|
67
|
-
|
|
68
|
-
.rect.l1 { top: -251.5px; }
|
|
69
|
-
.rect.l2 { top: 0.5px; }
|
|
70
|
-
.rect.l3 { top: 252.5px; }
|
|
71
|
-
.rect.l4 { top: 504.5px; }
|
|
72
|
-
.rect.l5 { top: 756.5px; }
|
|
73
|
-
.rect.l6 { top: 1008.5px; }
|
|
74
|
-
|
|
75
|
-
.rect.r1 { top: -247.022px; }
|
|
76
|
-
.rect.r2 { top: 4.978px; }
|
|
77
|
-
.rect.r3 { top: 256.978px; }
|
|
78
|
-
.rect.r4 { top: 508.978px; }
|
|
79
|
-
.rect.r5 { top: 760.978px; }
|
|
80
|
-
.rect.r6 { top: 1012.978px; }
|
|
81
|
-
|
|
82
|
-
@keyframes moveUp {
|
|
83
|
-
from { transform: translateY(0); }
|
|
84
|
-
to { transform: translateY(-29.86%); }
|
|
85
|
-
}
|
|
86
|
-
|
|
87
|
-
@keyframes moveDown {
|
|
88
|
-
from { transform: translateY(0); }
|
|
89
|
-
to { transform: translateY(29.86%); }
|
|
90
|
-
}
|
|
91
|
-
|
|
92
|
-
.slide5-buyers__content {
|
|
93
|
-
position: relative;
|
|
94
|
-
z-index: 1;
|
|
95
|
-
max-width: 360px;
|
|
96
|
-
text-align: center;
|
|
97
|
-
display: flex;
|
|
98
|
-
flex-direction: column;
|
|
99
|
-
align-items: center;
|
|
100
|
-
justify-content: center;
|
|
101
|
-
gap: 6.58vh;
|
|
102
|
-
}
|
|
103
|
-
|
|
104
|
-
.slide5-buyers__number {
|
|
105
|
-
font-family: 'Lora', 'Georgia', serif;
|
|
106
|
-
font-size: 11.37vh;
|
|
107
|
-
font-weight: 700;
|
|
108
|
-
/* line-height: 1; */
|
|
109
|
-
background: linear-gradient(90deg, #FFFFFF 0%, #FFCC80 100%);
|
|
110
|
-
-webkit-background-clip: text;
|
|
111
|
-
-webkit-text-fill-color: transparent;
|
|
112
|
-
background-clip: text;
|
|
113
|
-
color: transparent;
|
|
114
|
-
padding-top: 4.74%;
|
|
115
|
-
}
|
|
116
|
-
|
|
117
|
-
.slide5-buyers__number.down {
|
|
118
|
-
font-size: 7.58vh;
|
|
119
|
-
}
|
|
120
|
-
|
|
121
|
-
.slide5-buyers__label {
|
|
122
|
-
font-family: 'Lora', 'Georgia', serif;
|
|
123
|
-
font-size: 1.89vh;
|
|
124
|
-
font-weight: 400;
|
|
125
|
-
background: linear-gradient(90deg, #FFFFFF 0%, #FFCC80 100%);
|
|
126
|
-
-webkit-background-clip: text;
|
|
127
|
-
-webkit-text-fill-color: transparent;
|
|
128
|
-
background-clip: text;
|
|
129
|
-
color: transparent;
|
|
130
|
-
}
|
|
131
|
-
|
|
132
|
-
@media (max-width: 480px) {
|
|
133
|
-
.slide5-buyers {
|
|
134
|
-
padding: 8.29% 4.1% 5.92%;
|
|
135
|
-
}
|
|
136
|
-
|
|
137
|
-
/* .slide5-buyers__number {
|
|
138
|
-
font-size: clamp(56px, 26vw, 72px);
|
|
139
|
-
} */
|
|
140
|
-
}
|
|
1
|
+
.slide5-buyers {
|
|
2
|
+
position: relative;
|
|
3
|
+
width: 100%;
|
|
4
|
+
min-height: 100%;
|
|
5
|
+
display: flex;
|
|
6
|
+
align-items: center;
|
|
7
|
+
justify-content: center;
|
|
8
|
+
padding: 9.48% 6.15% 7.11%;
|
|
9
|
+
overflow: hidden;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
@media (max-height: 720px), (orientation: landscape) {
|
|
13
|
+
.slide5-buyers {
|
|
14
|
+
padding: clamp(24px, 5vh, 40px) 6.15% clamp(24px, 4vh, 32px);
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
.slide5-buyers__grid {
|
|
19
|
+
position: absolute;
|
|
20
|
+
inset: 0;
|
|
21
|
+
/* width: 650px; */
|
|
22
|
+
height: 100%;
|
|
23
|
+
margin: 0 auto;
|
|
24
|
+
pointer-events: none;
|
|
25
|
+
z-index: 0;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
.column {
|
|
29
|
+
position: absolute;
|
|
30
|
+
width: 179px;
|
|
31
|
+
height: 100%;
|
|
32
|
+
display: flex;
|
|
33
|
+
justify-content: center;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
.column-left {
|
|
37
|
+
left: -33.33%;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
.column-right {
|
|
41
|
+
right: -33.33%;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
.column-inner {
|
|
45
|
+
position: absolute;
|
|
46
|
+
top: 0;
|
|
47
|
+
left: 0;
|
|
48
|
+
width: 179px;
|
|
49
|
+
height: 1300px;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
.column-left .column-inner {
|
|
53
|
+
animation: moveUp 6s linear infinite;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
.column-right .column-inner {
|
|
57
|
+
animation: moveDown 6s linear infinite;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
.rect {
|
|
61
|
+
position: absolute;
|
|
62
|
+
width: 179px;
|
|
63
|
+
height: 239px;
|
|
64
|
+
box-sizing: border-box;
|
|
65
|
+
border: 1px solid #FFFFFF;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
.rect.l1 { top: -251.5px; }
|
|
69
|
+
.rect.l2 { top: 0.5px; }
|
|
70
|
+
.rect.l3 { top: 252.5px; }
|
|
71
|
+
.rect.l4 { top: 504.5px; }
|
|
72
|
+
.rect.l5 { top: 756.5px; }
|
|
73
|
+
.rect.l6 { top: 1008.5px; }
|
|
74
|
+
|
|
75
|
+
.rect.r1 { top: -247.022px; }
|
|
76
|
+
.rect.r2 { top: 4.978px; }
|
|
77
|
+
.rect.r3 { top: 256.978px; }
|
|
78
|
+
.rect.r4 { top: 508.978px; }
|
|
79
|
+
.rect.r5 { top: 760.978px; }
|
|
80
|
+
.rect.r6 { top: 1012.978px; }
|
|
81
|
+
|
|
82
|
+
@keyframes moveUp {
|
|
83
|
+
from { transform: translateY(0); }
|
|
84
|
+
to { transform: translateY(-29.86%); }
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
@keyframes moveDown {
|
|
88
|
+
from { transform: translateY(0); }
|
|
89
|
+
to { transform: translateY(29.86%); }
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
.slide5-buyers__content {
|
|
93
|
+
position: relative;
|
|
94
|
+
z-index: 1;
|
|
95
|
+
max-width: 360px;
|
|
96
|
+
text-align: center;
|
|
97
|
+
display: flex;
|
|
98
|
+
flex-direction: column;
|
|
99
|
+
align-items: center;
|
|
100
|
+
justify-content: center;
|
|
101
|
+
gap: 6.58vh;
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
.slide5-buyers__number {
|
|
105
|
+
font-family: 'Lora', 'Georgia', serif;
|
|
106
|
+
font-size: 11.37vh;
|
|
107
|
+
font-weight: 700;
|
|
108
|
+
/* line-height: 1; */
|
|
109
|
+
background: linear-gradient(90deg, #FFFFFF 0%, #FFCC80 100%);
|
|
110
|
+
-webkit-background-clip: text;
|
|
111
|
+
-webkit-text-fill-color: transparent;
|
|
112
|
+
background-clip: text;
|
|
113
|
+
color: transparent;
|
|
114
|
+
padding-top: 4.74%;
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
.slide5-buyers__number.down {
|
|
118
|
+
font-size: 7.58vh;
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
.slide5-buyers__label {
|
|
122
|
+
font-family: 'Lora', 'Georgia', serif;
|
|
123
|
+
font-size: 1.89vh;
|
|
124
|
+
font-weight: 400;
|
|
125
|
+
background: linear-gradient(90deg, #FFFFFF 0%, #FFCC80 100%);
|
|
126
|
+
-webkit-background-clip: text;
|
|
127
|
+
-webkit-text-fill-color: transparent;
|
|
128
|
+
background-clip: text;
|
|
129
|
+
color: transparent;
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
@media (max-width: 480px) {
|
|
133
|
+
.slide5-buyers {
|
|
134
|
+
padding: 8.29% 4.1% 5.92%;
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
/* .slide5-buyers__number {
|
|
138
|
+
font-size: clamp(56px, 26vw, 72px);
|
|
139
|
+
} */
|
|
140
|
+
}
|
|
@@ -1,74 +1,74 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { motion } from 'framer-motion';
|
|
3
|
-
import './Slide5Buyers.css';
|
|
4
|
-
|
|
5
|
-
interface Slide5BuyersProps {
|
|
6
|
-
firstTimeBuyers: number;
|
|
7
|
-
repeatBuyers: number;
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
/**
|
|
11
|
-
* Slide5Buyers - Displays first-time and returning buyer counts with vertical animated columns
|
|
12
|
-
*/
|
|
13
|
-
function Slide5Buyers({ firstTimeBuyers, repeatBuyers }: Slide5BuyersProps) {
|
|
14
|
-
const leftRects = ['l1', 'l2', 'l3', 'l4', 'l5', 'l6'];
|
|
15
|
-
const rightRects = ['r1', 'r2', 'r3', 'r4', 'r5', 'r6'];
|
|
16
|
-
|
|
17
|
-
return (
|
|
18
|
-
<div className="slide5-buyers">
|
|
19
|
-
<div className="slide5-buyers__grid" aria-hidden="true">
|
|
20
|
-
<div className="column column-left">
|
|
21
|
-
<div className="column-inner">
|
|
22
|
-
{leftRects.map(rect => (
|
|
23
|
-
<span key={rect} className={`rect ${rect}`} />
|
|
24
|
-
))}
|
|
25
|
-
</div>
|
|
26
|
-
</div>
|
|
27
|
-
<div className="column column-right">
|
|
28
|
-
<div className="column-inner">
|
|
29
|
-
{rightRects.map(rect => (
|
|
30
|
-
<span key={rect} className={`rect ${rect}`} />
|
|
31
|
-
))}
|
|
32
|
-
</div>
|
|
33
|
-
</div>
|
|
34
|
-
</div>
|
|
35
|
-
|
|
36
|
-
<div className="slide5-buyers__content">
|
|
37
|
-
<motion.div
|
|
38
|
-
className="slide5-buyers__number"
|
|
39
|
-
initial={{ opacity: 0, y: 20 }}
|
|
40
|
-
animate={{ opacity: 1, y: 0 }}
|
|
41
|
-
transition={{ duration: 0.6 }}
|
|
42
|
-
>
|
|
43
|
-
{firstTimeBuyers.toLocaleString()}
|
|
44
|
-
</motion.div>
|
|
45
|
-
<motion.p
|
|
46
|
-
className="slide5-buyers__label"
|
|
47
|
-
initial={{ opacity: 0, y: 20 }}
|
|
48
|
-
animate={{ opacity: 1, y: 0 }}
|
|
49
|
-
transition={{ duration: 0.6, delay: 0.2 }}
|
|
50
|
-
>
|
|
51
|
-
people don buy from you
|
|
52
|
-
</motion.p>
|
|
53
|
-
<motion.div
|
|
54
|
-
className="slide5-buyers__number down"
|
|
55
|
-
initial={{ opacity: 0, y: 20 }}
|
|
56
|
-
animate={{ opacity: 1, y: 0 }}
|
|
57
|
-
transition={{ duration: 0.6, delay: 0.4 }}
|
|
58
|
-
>
|
|
59
|
-
{repeatBuyers.toLocaleString()}
|
|
60
|
-
</motion.div>
|
|
61
|
-
<motion.p
|
|
62
|
-
className="slide5-buyers__label"
|
|
63
|
-
initial={{ opacity: 0, y: 20 }}
|
|
64
|
-
animate={{ opacity: 1, y: 0 }}
|
|
65
|
-
transition={{ duration: 0.6, delay: 0.6 }}
|
|
66
|
-
>
|
|
67
|
-
people come buy again
|
|
68
|
-
</motion.p>
|
|
69
|
-
</div>
|
|
70
|
-
</div>
|
|
71
|
-
);
|
|
72
|
-
}
|
|
73
|
-
|
|
74
|
-
export default Slide5Buyers;
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { motion } from 'framer-motion';
|
|
3
|
+
import './Slide5Buyers.css';
|
|
4
|
+
|
|
5
|
+
interface Slide5BuyersProps {
|
|
6
|
+
firstTimeBuyers: number;
|
|
7
|
+
repeatBuyers: number;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
/**
|
|
11
|
+
* Slide5Buyers - Displays first-time and returning buyer counts with vertical animated columns
|
|
12
|
+
*/
|
|
13
|
+
function Slide5Buyers({ firstTimeBuyers, repeatBuyers }: Slide5BuyersProps) {
|
|
14
|
+
const leftRects = ['l1', 'l2', 'l3', 'l4', 'l5', 'l6'];
|
|
15
|
+
const rightRects = ['r1', 'r2', 'r3', 'r4', 'r5', 'r6'];
|
|
16
|
+
|
|
17
|
+
return (
|
|
18
|
+
<div className="slide5-buyers">
|
|
19
|
+
<div className="slide5-buyers__grid" aria-hidden="true">
|
|
20
|
+
<div className="column column-left">
|
|
21
|
+
<div className="column-inner">
|
|
22
|
+
{leftRects.map(rect => (
|
|
23
|
+
<span key={rect} className={`rect ${rect}`} />
|
|
24
|
+
))}
|
|
25
|
+
</div>
|
|
26
|
+
</div>
|
|
27
|
+
<div className="column column-right">
|
|
28
|
+
<div className="column-inner">
|
|
29
|
+
{rightRects.map(rect => (
|
|
30
|
+
<span key={rect} className={`rect ${rect}`} />
|
|
31
|
+
))}
|
|
32
|
+
</div>
|
|
33
|
+
</div>
|
|
34
|
+
</div>
|
|
35
|
+
|
|
36
|
+
<div className="slide5-buyers__content">
|
|
37
|
+
<motion.div
|
|
38
|
+
className="slide5-buyers__number"
|
|
39
|
+
initial={{ opacity: 0, y: 20 }}
|
|
40
|
+
animate={{ opacity: 1, y: 0 }}
|
|
41
|
+
transition={{ duration: 0.6 }}
|
|
42
|
+
>
|
|
43
|
+
{firstTimeBuyers.toLocaleString()}
|
|
44
|
+
</motion.div>
|
|
45
|
+
<motion.p
|
|
46
|
+
className="slide5-buyers__label"
|
|
47
|
+
initial={{ opacity: 0, y: 20 }}
|
|
48
|
+
animate={{ opacity: 1, y: 0 }}
|
|
49
|
+
transition={{ duration: 0.6, delay: 0.2 }}
|
|
50
|
+
>
|
|
51
|
+
people don buy from you
|
|
52
|
+
</motion.p>
|
|
53
|
+
<motion.div
|
|
54
|
+
className="slide5-buyers__number down"
|
|
55
|
+
initial={{ opacity: 0, y: 20 }}
|
|
56
|
+
animate={{ opacity: 1, y: 0 }}
|
|
57
|
+
transition={{ duration: 0.6, delay: 0.4 }}
|
|
58
|
+
>
|
|
59
|
+
{repeatBuyers.toLocaleString()}
|
|
60
|
+
</motion.div>
|
|
61
|
+
<motion.p
|
|
62
|
+
className="slide5-buyers__label"
|
|
63
|
+
initial={{ opacity: 0, y: 20 }}
|
|
64
|
+
animate={{ opacity: 1, y: 0 }}
|
|
65
|
+
transition={{ duration: 0.6, delay: 0.6 }}
|
|
66
|
+
>
|
|
67
|
+
people come buy again
|
|
68
|
+
</motion.p>
|
|
69
|
+
</div>
|
|
70
|
+
</div>
|
|
71
|
+
);
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
export default Slide5Buyers;
|