@katajere/recap 1.0.2

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.
Files changed (149) hide show
  1. package/README.md +39 -0
  2. package/dist/App.css +120 -0
  3. package/dist/FloatingFrames.css +55 -0
  4. package/dist/FloatingFrames.d.ts +11 -0
  5. package/dist/FloatingFrames.d.ts.map +1 -0
  6. package/dist/FloatingFrames.js +12 -0
  7. package/dist/LoginScreen.css +146 -0
  8. package/dist/OtpScreen.css +133 -0
  9. package/dist/RecapApp.d.ts +17 -0
  10. package/dist/RecapApp.d.ts.map +1 -0
  11. package/dist/RecapApp.js +7 -0
  12. package/dist/RecapStory.css +105 -0
  13. package/dist/RecapStory.d.ts +11 -0
  14. package/dist/RecapStory.d.ts.map +1 -0
  15. package/dist/RecapStory.js +150 -0
  16. package/dist/StoryProgress.css +47 -0
  17. package/dist/StoryProgress.d.ts +15 -0
  18. package/dist/StoryProgress.d.ts.map +1 -0
  19. package/dist/StoryProgress.js +23 -0
  20. package/dist/assets/huxxle-blue-logo.png +0 -0
  21. package/dist/assets/huxxle-blue-logo.svg +14 -0
  22. package/dist/assets/huxxle-logo.png +0 -0
  23. package/dist/assets/huxxle_star_final.gif +0 -0
  24. package/dist/assets/login-logo.png +0 -0
  25. package/dist/assets/login-logo.svg +14 -0
  26. package/dist/assets/money-rain.png +0 -0
  27. package/dist/assets/raining-money.gif +0 -0
  28. package/dist/assets/recap-music.mp3 +0 -0
  29. package/dist/assets/sketch_draw.gif +0 -0
  30. package/dist/assets/slide-logo.png +0 -0
  31. package/dist/assets/slide-logo.svg +14 -0
  32. package/dist/assets/sound-off.svg +4 -0
  33. package/dist/assets/sound-on.svg +5 -0
  34. package/dist/components/Header.css +46 -0
  35. package/dist/components/Header.d.ts +12 -0
  36. package/dist/components/Header.d.ts.map +1 -0
  37. package/dist/components/Header.js +25 -0
  38. package/dist/data/mock.d.ts +8 -0
  39. package/dist/data/mock.d.ts.map +1 -0
  40. package/dist/data/mock.js +59 -0
  41. package/dist/data/recapCopy.d.ts +10 -0
  42. package/dist/data/recapCopy.d.ts.map +1 -0
  43. package/dist/data/recapCopy.js +23 -0
  44. package/dist/hooks/useBackgroundMusic.d.ts +20 -0
  45. package/dist/hooks/useBackgroundMusic.d.ts.map +1 -0
  46. package/dist/hooks/useBackgroundMusic.js +62 -0
  47. package/dist/index.css +13 -0
  48. package/dist/index.d.ts +30 -0
  49. package/dist/index.d.ts.map +1 -0
  50. package/dist/index.js +40 -0
  51. package/dist/slides/Slide10Final.css +101 -0
  52. package/dist/slides/Slide10Final.d.ts +9 -0
  53. package/dist/slides/Slide10Final.d.ts.map +1 -0
  54. package/dist/slides/Slide10Final.js +68 -0
  55. package/dist/slides/Slide1Intro.css +261 -0
  56. package/dist/slides/Slide1Intro.d.ts +13 -0
  57. package/dist/slides/Slide1Intro.d.ts.map +1 -0
  58. package/dist/slides/Slide1Intro.js +61 -0
  59. package/dist/slides/Slide2Days.css +209 -0
  60. package/dist/slides/Slide2Days.d.ts +11 -0
  61. package/dist/slides/Slide2Days.d.ts.map +1 -0
  62. package/dist/slides/Slide2Days.js +11 -0
  63. package/dist/slides/Slide3Revenue.css +89 -0
  64. package/dist/slides/Slide3Revenue.d.ts +12 -0
  65. package/dist/slides/Slide3Revenue.d.ts.map +1 -0
  66. package/dist/slides/Slide3Revenue.js +16 -0
  67. package/dist/slides/Slide4Orders.css +135 -0
  68. package/dist/slides/Slide4Orders.d.ts +10 -0
  69. package/dist/slides/Slide4Orders.d.ts.map +1 -0
  70. package/dist/slides/Slide4Orders.js +16 -0
  71. package/dist/slides/Slide5Buyers.css +140 -0
  72. package/dist/slides/Slide5Buyers.d.ts +11 -0
  73. package/dist/slides/Slide5Buyers.d.ts.map +1 -0
  74. package/dist/slides/Slide5Buyers.js +12 -0
  75. package/dist/slides/Slide6Customer.css +92 -0
  76. package/dist/slides/Slide6Customer.d.ts +10 -0
  77. package/dist/slides/Slide6Customer.d.ts.map +1 -0
  78. package/dist/slides/Slide6Customer.js +10 -0
  79. package/dist/slides/Slide7Products.css +144 -0
  80. package/dist/slides/Slide7Products.d.ts +11 -0
  81. package/dist/slides/Slide7Products.d.ts.map +1 -0
  82. package/dist/slides/Slide7Products.js +29 -0
  83. package/dist/slides/Slide8Months.css +148 -0
  84. package/dist/slides/Slide8Months.d.ts +7 -0
  85. package/dist/slides/Slide8Months.d.ts.map +1 -0
  86. package/dist/slides/Slide8Months.js +31 -0
  87. package/dist/slides/Slide9Year.css +93 -0
  88. package/dist/slides/Slide9Year.d.ts +8 -0
  89. package/dist/slides/Slide9Year.d.ts.map +1 -0
  90. package/dist/slides/Slide9Year.js +9 -0
  91. package/dist/types.d.ts +33 -0
  92. package/dist/types.d.ts.map +1 -0
  93. package/dist/types.js +11 -0
  94. package/dist/utils/format.d.ts +9 -0
  95. package/dist/utils/format.d.ts.map +1 -0
  96. package/dist/utils/format.js +17 -0
  97. package/dist/utils/index.d.ts +3 -0
  98. package/dist/utils/index.d.ts.map +1 -0
  99. package/dist/utils/index.js +3 -0
  100. package/dist/utils/motion.d.ts +19 -0
  101. package/dist/utils/motion.d.ts.map +1 -0
  102. package/dist/utils/motion.js +80 -0
  103. package/package.json +98 -0
  104. package/src/App.css +120 -0
  105. package/src/App.tsx +73 -0
  106. package/src/FloatingFrames.css +55 -0
  107. package/src/FloatingFrames.tsx +27 -0
  108. package/src/LoginScreen.css +146 -0
  109. package/src/LoginScreen.tsx +70 -0
  110. package/src/OtpScreen.css +133 -0
  111. package/src/OtpScreen.tsx +109 -0
  112. package/src/RecapApp.tsx +34 -0
  113. package/src/RecapStory.css +105 -0
  114. package/src/RecapStory.tsx +269 -0
  115. package/src/StoryProgress.css +47 -0
  116. package/src/StoryProgress.tsx +60 -0
  117. package/src/assets.d.ts +41 -0
  118. package/src/components/Header.css +46 -0
  119. package/src/components/Header.tsx +41 -0
  120. package/src/data/mock.ts +62 -0
  121. package/src/data/recapCopy.ts +33 -0
  122. package/src/hooks/useBackgroundMusic.ts +79 -0
  123. package/src/index.css +13 -0
  124. package/src/index.ts +70 -0
  125. package/src/react-app-env.d.ts +26 -0
  126. package/src/slides/Slide10Final.css +101 -0
  127. package/src/slides/Slide10Final.tsx +105 -0
  128. package/src/slides/Slide1Intro.css +261 -0
  129. package/src/slides/Slide1Intro.tsx +141 -0
  130. package/src/slides/Slide2Days.css +209 -0
  131. package/src/slides/Slide2Days.tsx +92 -0
  132. package/src/slides/Slide3Revenue.css +89 -0
  133. package/src/slides/Slide3Revenue.tsx +76 -0
  134. package/src/slides/Slide4Orders.css +135 -0
  135. package/src/slides/Slide4Orders.tsx +63 -0
  136. package/src/slides/Slide5Buyers.css +140 -0
  137. package/src/slides/Slide5Buyers.tsx +74 -0
  138. package/src/slides/Slide6Customer.css +92 -0
  139. package/src/slides/Slide6Customer.tsx +27 -0
  140. package/src/slides/Slide7Products.css +144 -0
  141. package/src/slides/Slide7Products.tsx +81 -0
  142. package/src/slides/Slide8Months.css +148 -0
  143. package/src/slides/Slide8Months.tsx +63 -0
  144. package/src/slides/Slide9Year.css +93 -0
  145. package/src/slides/Slide9Year.tsx +35 -0
  146. package/src/types.ts +39 -0
  147. package/src/utils/format.ts +18 -0
  148. package/src/utils/index.ts +3 -0
  149. package/src/utils/motion.ts +89 -0
@@ -0,0 +1,209 @@
1
+ /* Slide2Days - Figma exact specifications */
2
+
3
+ .slide2-days {
4
+ position: relative;
5
+ width: 100%;
6
+ height: 100%;
7
+ overflow: hidden;
8
+ }
9
+
10
+ /* Top heading - "Make we look the numbers" */
11
+ .slide2-days__heading {
12
+ position: absolute;
13
+ width: 91.79%;
14
+ /* left: 4.1%;
15
+ top: 10.66%; */
16
+ font-family: 'Lora', serif;
17
+ font-style: normal;
18
+ font-weight: 400;
19
+ color: white;
20
+ /* margin: 0 0 4.74% 0; */
21
+ margin: calc(108px + env(safe-area-inset-top)) calc(16px + env(safe-area-inset-left)) 0 calc(16px + env(safe-area-inset-right));
22
+ text-align: left;
23
+ z-index: 3;
24
+ }
25
+
26
+ /* Floating rectangles under heading */
27
+ .slide2-days__frames {
28
+ display: flex;
29
+ flex-direction: row;
30
+ justify-content: center;
31
+ align-items: center;
32
+ padding: 0;
33
+ gap: clamp(8px, 3.08%, 12px);
34
+ position: absolute;
35
+ width: 100%;
36
+ /* height: 28.4vh; */
37
+ left: 0;
38
+ top: clamp(160px, 21.68%, 290px);
39
+ /* margin: calc(183px + env(safe-area-inset-top)) calc(16px + env(safe-area-inset-left)) 0 calc(16px + env(safe-area-inset-right)); */
40
+ z-index: 2;
41
+ }
42
+
43
+ .slide2-days__frames .frame-rect {
44
+ box-sizing: border-box;
45
+ width: clamp(140px, 46.15%, 180px);
46
+ height: clamp(240px, 28.4%, 360px);
47
+ /* aspect-ratio: 180 / 240; */
48
+ border: 1px solid #FFFFFF;
49
+ flex: none;
50
+ /* flex-grow: 0; */
51
+ }
52
+
53
+ /* Days stats section */
54
+ .slide2-days__stats-section {
55
+ display: flex;
56
+ flex-direction: column;
57
+ align-items: flex-start;
58
+ padding: 0;
59
+ /* gap: 40px; */
60
+ position: absolute;
61
+ width: 91.79%;
62
+ /* left: 4.1vh;
63
+ top: 56.75vh; */
64
+ margin: clamp(400px, 56.75%, 680px) calc(16px + env(safe-area-inset-left)) 0 calc(16px + env(safe-area-inset-right));
65
+ z-index: 3;
66
+ }
67
+
68
+ .stats-label {
69
+ width: 100%;
70
+ font-family: 'Lora', serif;
71
+ font-style: normal;
72
+ font-weight: 500;
73
+ font-size: clamp(22px, 2.8%, 32px);
74
+ /* line-height: 72px; */
75
+ background: linear-gradient(90deg, #FFFFFF 0%, #FFCC80 100%);
76
+ -webkit-background-clip: text;
77
+ -webkit-text-fill-color: transparent;
78
+ background-clip: text;
79
+ margin: 0;
80
+ flex: none;
81
+ order: 0;
82
+ align-self: stretch;
83
+ flex-grow: 0;
84
+ }
85
+
86
+ .stats-container {
87
+ display: flex;
88
+ flex-direction: column;
89
+ align-items: flex-start;
90
+ padding: 0;
91
+ /* gap: 20px; */
92
+ width: 100%;
93
+ flex: none;
94
+ order: 1;
95
+ align-self: stretch;
96
+ flex-grow: 0;
97
+ }
98
+
99
+ .stats-number {
100
+ width: 100%;
101
+ font-family: 'Lora', serif;
102
+ font-style: normal;
103
+ font-weight: 700;
104
+ font-size: clamp(80px, 10.37%, 128px);
105
+ /* line-height: 115px; */
106
+ background: linear-gradient(90deg, #FFFFFF 0%, #FFCC80 100%);
107
+ -webkit-background-clip: text;
108
+ -webkit-text-fill-color: transparent;
109
+ background-clip: text;
110
+ margin: 0;
111
+ flex: none;
112
+ order: 0;
113
+ align-self: stretch;
114
+ flex-grow: 0;
115
+ }
116
+
117
+ .stats-sublabel {
118
+ width: 100%;
119
+ font-family: 'Lora', serif;
120
+ font-style: normal;
121
+ font-weight: 400;
122
+ font-size: clamp(14px, 4.1vw, 16px);
123
+ /* line-height: 72px; */
124
+ background: linear-gradient(90deg, #FFFFFF 0%, #FFCC80 100%);
125
+ -webkit-background-clip: text;
126
+ -webkit-text-fill-color: transparent;
127
+ background-clip: text;
128
+ margin: 0;
129
+ flex: none;
130
+ order: 1;
131
+ align-self: stretch;
132
+ flex-grow: 0;
133
+ }
134
+
135
+ /* Divider line */
136
+ .slide2-days__divider {
137
+ position: absolute;
138
+ width: 74.1%;
139
+ height: 0;
140
+ left: 25.9%;
141
+ top: clamp(620px, 79.86%, 900px);
142
+ opacity: 0.4;
143
+ border: clamp(1px, 0.24%, 2px) solid #FFFFFF;
144
+ transform-origin: left;
145
+ z-index: 3;
146
+ }
147
+
148
+ /* @media (min-height: 720px) {
149
+ .slide2-days__divider {
150
+ top: 79.86%;
151
+ bottom: auto;
152
+ }
153
+ } */
154
+
155
+ /* Streak section */
156
+ .slide2-days__streak-section {
157
+ display: flex;
158
+ flex-direction: column;
159
+ align-items: flex-end;
160
+ padding: 0;
161
+ /* gap: 40px; */
162
+ position: absolute;
163
+ width: 91.79%;
164
+ left: 4.1%;
165
+ top: clamp(640px, 82.23%, 920px);
166
+ z-index: 3;
167
+ }
168
+
169
+ /* @media (min-height: 720px) {
170
+ .slide2-days__streak-section {
171
+ top: 82.23%;
172
+ bottom: auto;
173
+ }
174
+ } */
175
+
176
+ .streak-number {
177
+ width: 100%;
178
+ font-family: 'Lora', serif;
179
+ font-style: normal;
180
+ font-weight: 700;
181
+ font-size: clamp(50px, 6.64%, 96px);
182
+ /* line-height: 115px; */
183
+ text-align: right;
184
+ background: linear-gradient(90deg, #FFFFFF 0%, #FFCC80 100%);
185
+ -webkit-background-clip: text;
186
+ -webkit-text-fill-color: transparent;
187
+ background-clip: text;
188
+ margin: 0;
189
+ flex: none;
190
+ order: 0;
191
+ align-self: stretch;
192
+ flex-grow: 0;
193
+ }
194
+
195
+ .streak-label {
196
+ width: 100%;
197
+ font-family: 'Lora', serif;
198
+ font-style: normal;
199
+ font-weight: 400;
200
+ font-size: clamp(14px, 4.1vw, 16px);
201
+ /* line-height: 72px; */
202
+ text-align: right;
203
+ flex: none;
204
+ order: 1;
205
+ align-self: stretch;
206
+ flex-grow: 0;
207
+ color: white;
208
+ margin: 0 0 4.74% 0;
209
+ }
@@ -0,0 +1,92 @@
1
+ import React from 'react';
2
+ import { motion } from 'framer-motion';
3
+ import { formatNumber } from '../utils';
4
+ import './Slide2Days.css';
5
+
6
+ interface Slide2DaysProps {
7
+ days: number;
8
+ streak: number;
9
+ }
10
+
11
+ /**
12
+ * Slide2Days - Days active and streak statistics
13
+ */
14
+ function Slide2Days({ days, streak }: Slide2DaysProps) {
15
+ return (
16
+ <div className="slide2-days">
17
+ {/* Top heading - positioned at top like Figma */}
18
+ <motion.div
19
+ className="slide2-days__heading"
20
+ initial={{ opacity: 0, y: -20 }}
21
+ animate={{ opacity: 1, y: 0 }}
22
+ transition={{ duration: 0.6, ease: 'easeOut' }}
23
+ >
24
+ Make we look the numbers 🔥
25
+ </motion.div>
26
+
27
+ {/* Floating rectangles under heading */}
28
+ <motion.div
29
+ className="slide2-days__frames"
30
+ initial={{ opacity: 0, x: -50 }}
31
+ animate={{ opacity: 1, x: 0 }}
32
+ transition={{ duration: 0.8, delay: 0.2 }}
33
+ >
34
+ <motion.div
35
+ className="frame-rect"
36
+ animate={{ x: [-20, 20] }}
37
+ transition={{ duration: 4, repeat: Infinity, repeatType: 'reverse', ease: 'linear' }}
38
+ />
39
+ <motion.div
40
+ className="frame-rect"
41
+ animate={{ x: [-20, 20] }}
42
+ transition={{ duration: 4, repeat: Infinity, repeatType: 'reverse', ease: 'linear' }}
43
+ />
44
+ <motion.div
45
+ className="frame-rect"
46
+ animate={{ x: [-20, 20] }}
47
+ transition={{ duration: 4, repeat: Infinity, repeatType: 'reverse', ease: 'linear' }}
48
+ />
49
+ </motion.div>
50
+
51
+ {/* Days stats block */}
52
+ <motion.div
53
+ className="slide2-days__stats-section"
54
+ initial={{ opacity: 0, y: 30 }}
55
+ animate={{ opacity: 1, y: 0 }}
56
+ transition={{ duration: 0.7, delay: 0.4 }}
57
+ >
58
+ <p className="stats-label">You don spend over</p>
59
+ <motion.div
60
+ className="stats-container"
61
+ initial={{ opacity: 0, scale: 0.9 }}
62
+ animate={{ opacity: 1, scale: 1 }}
63
+ transition={{ duration: 0.6, delay: 0.6 }}
64
+ >
65
+ <div className="stats-number">{formatNumber(days)}</div>
66
+ <p className="stats-sublabel">days dey hustle with Huxxle</p>
67
+ </motion.div>
68
+ </motion.div>
69
+
70
+ {/* Divider line */}
71
+ <motion.div
72
+ className="slide2-days__divider"
73
+ initial={{ scaleX: 0 }}
74
+ animate={{ scaleX: 1 }}
75
+ transition={{ duration: 0.8, delay: 0.9, ease: 'easeInOut' }}
76
+ />
77
+
78
+ {/* Streak section */}
79
+ <motion.div
80
+ className="slide2-days__streak-section"
81
+ initial={{ opacity: 0, y: 20 }}
82
+ animate={{ opacity: 1, y: 0 }}
83
+ transition={{ duration: 0.6, delay: 1.1 }}
84
+ >
85
+ <div className="streak-number">{formatNumber(streak)}</div>
86
+ <p className="streak-label">day streak, You no dey play oh 🤯</p>
87
+ </motion.div>
88
+ </div>
89
+ );
90
+ }
91
+
92
+ export default Slide2Days;
@@ -0,0 +1,89 @@
1
+ .slide3-revenue {
2
+ position: relative;
3
+ width: 100%;
4
+ min-height: 100%;
5
+ overflow: hidden;
6
+ display: flex;
7
+ align-items: center;
8
+ justify-content: center;
9
+ padding: 9.48% 6.15% 7.11%;
10
+ }
11
+
12
+ @media (max-height: 720px), (orientation: landscape) {
13
+ .slide3-revenue {
14
+ padding: clamp(24px, 5vh, 40px) 6.15% clamp(24px, 4vh, 32px);
15
+ }
16
+ }
17
+
18
+ .slide3-revenue__overlay {
19
+ position: absolute;
20
+ inset: 0;
21
+ background-size: cover;
22
+ background-repeat: no-repeat;
23
+ background-position: center;
24
+ opacity: 0.05;
25
+ mix-blend-mode: screen;
26
+ z-index: 0;
27
+ filter: brightness(0.75);
28
+ }
29
+
30
+ .slide3-revenue__content {
31
+ position: relative;
32
+ z-index: 1;
33
+ width: 100%;
34
+ display: flex;
35
+ flex-direction: column;
36
+ align-items: center;
37
+ justify-content: center;
38
+ gap: clamp(20px, 2.84%, 32px);
39
+ text-align: center;
40
+ }
41
+
42
+ .gradient-text {
43
+ background: linear-gradient(90deg, #FFFFFF 0%, #FFCC80 100%);
44
+ -webkit-background-clip: text;
45
+ -webkit-text-fill-color: transparent;
46
+ background-clip: text;
47
+ color: transparent;
48
+ }
49
+
50
+ .slide3-revenue__title {
51
+ font-family: 'Lora', 'Georgia', serif;
52
+ font-size: clamp(22px, 2.84%, 32px);
53
+ font-weight: 500;
54
+ letter-spacing: 0.04em;
55
+ margin: 0;
56
+ }
57
+
58
+ .slide3-revenue__amount {
59
+ font-family: 'Lora', 'Georgia', serif;
60
+ font-size: clamp(54px, 7.58%, 112px);
61
+ font-weight: 700;
62
+ line-height: 1;
63
+ margin: 0;
64
+ }
65
+
66
+ .slide3-revenue__subline {
67
+ font-family: 'Lora', 'Georgia', serif;
68
+ font-size: clamp(14px, 1.9%, 24px);
69
+ font-weight: 400;
70
+ margin: 0;
71
+ }
72
+
73
+ .slide3-revenue__footer {
74
+ position: absolute;
75
+ bottom: 4.74%;
76
+ left: 4.1%;
77
+ transform: translateX(0);
78
+ font-family: 'Lora', 'Georgia', serif;
79
+ font-size: clamp(14px, 4.1vw, 16px);
80
+ font-weight: 400;
81
+ letter-spacing: 0.03em;
82
+ z-index: 1;
83
+ }
84
+
85
+ @media (max-width: 480px) {
86
+ .slide3-revenue {
87
+ padding: 7.11% 4.1% 5.69%;
88
+ }
89
+ }
@@ -0,0 +1,76 @@
1
+ import React from 'react';
2
+ import { motion } from 'framer-motion';
3
+ import { formatCurrency } from '../utils';
4
+ import { BUSINESS_CATEGORIES, BusinessCategory } from '../types';
5
+ import { recapCopy } from '../data/recapCopy';
6
+ import './Slide3Revenue.css';
7
+
8
+ import moneyRainGif from '../assets/raining-money.gif';
9
+
10
+ interface Slide3RevenueProps {
11
+ revenue: number;
12
+ businessCategory: BusinessCategory;
13
+ }
14
+
15
+ /**
16
+ * Slide3Revenue - Revenue display with money rain overlay
17
+ */
18
+ function Slide3Revenue({ revenue, businessCategory }: Slide3RevenueProps) {
19
+ const copy = recapCopy[businessCategory] ?? recapCopy[BUSINESS_CATEGORIES.THRIVING];
20
+ const footerText = copy.revenueFooter;
21
+
22
+ return (
23
+ <div className="slide3-revenue">
24
+ {/* Money rain overlay */}
25
+ <div
26
+ className="slide3-revenue__overlay"
27
+ style={{ backgroundImage: `url(${moneyRainGif})` }}
28
+ aria-hidden="true"
29
+ />
30
+
31
+ <div className="slide3-revenue__content">
32
+ {/* Title */}
33
+ <motion.h2
34
+ className="slide3-revenue__title gradient-text"
35
+ initial={{ opacity: 0, y: 20 }}
36
+ animate={{ opacity: 1, y: 0 }}
37
+ transition={{ duration: 0.5 }}
38
+ >
39
+ You don make
40
+ </motion.h2>
41
+
42
+ {/* Big amount with counter animation */}
43
+ <motion.div
44
+ className="slide3-revenue__amount gradient-text"
45
+ initial={{ opacity: 0, scale: 0.9 }}
46
+ animate={{ opacity: 1, scale: 1 }}
47
+ transition={{ duration: 0.8, delay: 0.3 }}
48
+ >
49
+ {formatCurrency(revenue)}
50
+ </motion.div>
51
+
52
+ {/* Subline */}
53
+ <motion.p
54
+ className="slide3-revenue__subline gradient-text"
55
+ initial={{ opacity: 0, y: 20 }}
56
+ animate={{ opacity: 1, y: 0 }}
57
+ transition={{ duration: 0.5, delay: 0.6 }}
58
+ >
59
+ Walahi you no small rara
60
+ </motion.p>
61
+ </div>
62
+
63
+ {/* Footer message */}
64
+ <motion.div
65
+ className="slide3-revenue__footer gradient-text"
66
+ initial={{ opacity: 0, y: 20 }}
67
+ animate={{ opacity: 1, y: 0 }}
68
+ transition={{ duration: 0.5, delay: 0.9 }}
69
+ >
70
+ {footerText}
71
+ </motion.div>
72
+ </div>
73
+ );
74
+ }
75
+
76
+ export default Slide3Revenue;
@@ -0,0 +1,135 @@
1
+ .slide4-orders {
2
+ position: relative;
3
+ width: 100%;
4
+ min-height: 100%;
5
+ display: flex;
6
+ align-items: flex-start;
7
+ justify-content: center;
8
+ padding: 0 6.15%;
9
+ overflow: hidden;
10
+ }
11
+
12
+ /* @media (max-height: 720px), (orientation: landscape) {
13
+ .slide4-orders {
14
+ padding: clamp(24px, 5vh, 40px) 6.15% clamp(24px, 4vh, 32px);
15
+ }
16
+ } */
17
+
18
+ .slide4-orders__grid {
19
+ position: absolute;
20
+ width: 1117px;
21
+ height: 1168px;
22
+ top: 0;
23
+ left: 50%;
24
+ transform: translateX(-50%);
25
+ z-index: 0;
26
+ pointer-events: none;
27
+ overflow: hidden;
28
+ }
29
+
30
+ .slide4-orders__diagonal {
31
+ position: absolute;
32
+ inset: 0;
33
+ }
34
+ .slide4-orders__rect {
35
+ position: absolute;
36
+ width: 180px;
37
+ height: 240px;
38
+ box-sizing: border-box;
39
+ border: 1px solid #FFFFFF;
40
+ /* transform-origin: 0 0; */
41
+ transform: rotate(28.8631deg);
42
+ flex: none;
43
+ }
44
+
45
+ .slide4-orders__rect.r1 { left: 816.598px; top: 0.679px; }
46
+ .slide4-orders__rect.r2 { left: 694.953px; top: 221.375px; }
47
+ .slide4-orders__rect.r3 { left: 573.308px; top: 442.07px; }
48
+ .slide4-orders__rect.r4 { left: 451.663px; top: 662.766px; }
49
+ .slide4-orders__rect.r5 { left: 953.35px; top: 150.751px; }
50
+ .slide4-orders__rect.r6 { left: 831.705px; top: 371.446px; }
51
+ .slide4-orders__rect.r7 { left: 710.06px; top: 592.142px; }
52
+ .slide4-orders__rect.r8 { left: 588.415px; top: 812.837px; }
53
+ /* .slide4-orders__rect.r9 { left: 480.984px; top: 208.701px; } */
54
+ .slide4-orders__rect.r10 { left: 359.339px; top: 429.397px; }
55
+ .slide4-orders__rect.r11 { left: 237.694px; top: 650.092px; }
56
+ .slide4-orders__rect.r12 { left: 116.049px; top: 870.788px; }
57
+
58
+ .group-1 {
59
+ animation: upForever 8s linear infinite;
60
+ }
61
+
62
+ .group-2 {
63
+ animation: downForever 8s linear infinite;
64
+ }
65
+
66
+ .group-3 {
67
+ animation: upForever 8s linear infinite;
68
+ }
69
+
70
+ @keyframes upForever {
71
+ from {
72
+ transform: rotate(28.8631deg) translateY(0);
73
+ }
74
+ to {
75
+ transform: rotate(28.8631deg) translateY(-71.09%);
76
+ }
77
+ }
78
+
79
+ @keyframes downForever {
80
+ from {
81
+ transform: rotate(28.8631deg) translateY(0);
82
+ }
83
+ to {
84
+ transform: rotate(28.8631deg) translateY(71.09%);
85
+ }
86
+ }
87
+
88
+ .slide4-orders__content {
89
+ position: relative;
90
+ z-index: 1;
91
+ width: 100%;
92
+ max-width: 360px;
93
+ display: flex;
94
+ flex-direction: column;
95
+ align-items: flex-start;
96
+ gap: 2.84dvh;
97
+ margin-top: 18.6vh;
98
+ }
99
+ .slide4-orders__label,
100
+ .slide4-orders__number,
101
+ .slide4-orders__caption {
102
+ font-family: 'Lora', 'Georgia', serif;
103
+ background: linear-gradient(90deg, #FFFFFF 0%, #FFCC80 100%);
104
+ -webkit-background-clip: text;
105
+ -webkit-text-fill-color: transparent;
106
+ background-clip: text;
107
+ color: transparent;
108
+ }
109
+
110
+ .slide4-orders__label {
111
+ font-size: 2.84vh;
112
+ font-weight: 500;
113
+ letter-spacing: 0.02em;
114
+ }
115
+
116
+ .slide4-orders__number {
117
+ font-size: 11.37vh;
118
+ font-weight: 700;
119
+ line-height: 1;
120
+ }
121
+
122
+ .slide4-orders__caption {
123
+ font-size: 1.9vh;
124
+ font-weight: 400;
125
+ }
126
+
127
+ /* @media (max-width: 480px) {
128
+ .slide4-orders {
129
+ padding: 8.29% 4.1% 5.92%;
130
+ }
131
+
132
+ .slide4-orders__number {
133
+ font-size: clamp(56px, 26vw, 72px);
134
+ }
135
+ } */
@@ -0,0 +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;