@katajere/recap 1.0.3 → 1.0.10

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 (65) hide show
  1. package/dist/App.css +156 -156
  2. package/dist/FloatingFrames.css +55 -55
  3. package/dist/LoginScreen.css +146 -146
  4. package/dist/OtpScreen.css +133 -133
  5. package/dist/RecapStory.css +105 -105
  6. package/dist/StoryProgress.css +47 -47
  7. package/dist/assets/huxxle-blue-logo.svg +14 -14
  8. package/dist/assets/login-logo.svg +14 -14
  9. package/dist/assets/slide-logo.svg +14 -14
  10. package/dist/components/Header.css +46 -46
  11. package/dist/slides/Slide10Final.css +101 -101
  12. package/dist/slides/Slide1Intro.css +235 -235
  13. package/dist/slides/Slide2Days.css +209 -209
  14. package/dist/slides/Slide3Revenue.css +89 -89
  15. package/dist/slides/Slide4Orders.css +135 -135
  16. package/dist/slides/Slide5Buyers.css +140 -140
  17. package/dist/slides/Slide6Customer.css +92 -92
  18. package/dist/slides/Slide7Products.css +144 -144
  19. package/dist/slides/Slide8Months.css +148 -148
  20. package/dist/slides/Slide9Year.css +93 -93
  21. package/package.json +1 -1
  22. package/src/App.css +156 -156
  23. package/src/FloatingFrames.css +55 -55
  24. package/src/FloatingFrames.tsx +27 -27
  25. package/src/LoginScreen.css +146 -146
  26. package/src/LoginScreen.tsx +70 -70
  27. package/src/OtpScreen.css +133 -133
  28. package/src/OtpScreen.tsx +109 -109
  29. package/src/RecapApp.tsx +34 -34
  30. package/src/RecapStory.css +105 -105
  31. package/src/RecapStory.tsx +269 -269
  32. package/src/StoryProgress.css +47 -47
  33. package/src/StoryProgress.tsx +60 -60
  34. package/src/assets.d.ts +41 -41
  35. package/src/components/Header.css +46 -46
  36. package/src/components/Header.tsx +41 -41
  37. package/src/data/mock.ts +62 -62
  38. package/src/data/recapCopy.ts +33 -33
  39. package/src/hooks/useBackgroundMusic.ts +79 -79
  40. package/src/index.ts +70 -70
  41. package/src/react-app-env.d.ts +26 -26
  42. package/src/slides/Slide10Final.css +101 -101
  43. package/src/slides/Slide10Final.tsx +105 -105
  44. package/src/slides/Slide1Intro.css +235 -235
  45. package/src/slides/Slide1Intro.tsx +141 -141
  46. package/src/slides/Slide2Days.css +209 -209
  47. package/src/slides/Slide2Days.tsx +92 -92
  48. package/src/slides/Slide3Revenue.css +89 -89
  49. package/src/slides/Slide3Revenue.tsx +76 -76
  50. package/src/slides/Slide4Orders.css +135 -135
  51. package/src/slides/Slide4Orders.tsx +63 -63
  52. package/src/slides/Slide5Buyers.css +140 -140
  53. package/src/slides/Slide5Buyers.tsx +74 -74
  54. package/src/slides/Slide6Customer.css +92 -92
  55. package/src/slides/Slide6Customer.tsx +27 -27
  56. package/src/slides/Slide7Products.css +144 -144
  57. package/src/slides/Slide7Products.tsx +81 -81
  58. package/src/slides/Slide8Months.css +148 -148
  59. package/src/slides/Slide8Months.tsx +63 -63
  60. package/src/slides/Slide9Year.css +93 -93
  61. package/src/slides/Slide9Year.tsx +35 -35
  62. package/src/types.ts +39 -39
  63. package/src/utils/format.ts +18 -18
  64. package/src/utils/index.ts +3 -3
  65. package/src/utils/motion.ts +89 -89
@@ -1,209 +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.08vw, 12px);
34
- position: absolute;
35
- width: 100%;
36
- /* height: 28.4vh; */
37
- left: 0;
38
- top: 21.68vh;
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.15vw, 180px);
46
- height: 28.4vh;
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: calc(56.75vh + env(safe-area-inset-top)) 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: 2.8vh;
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: 10.37vh;
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: 79.86vh;
142
- opacity: 0.4;
143
- border: 0.24vh 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: 82.23vh;
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: 6.64vh;
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
- }
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.08vw, 12px);
34
+ position: absolute;
35
+ width: 100%;
36
+ /* height: 28.4vh; */
37
+ left: 0;
38
+ top: 21.68vh;
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.15vw, 180px);
46
+ height: 28.4vh;
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: calc(56.75vh + env(safe-area-inset-top)) 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: 2.8vh;
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: 10.37vh;
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: 79.86vh;
142
+ opacity: 0.4;
143
+ border: 0.24vh 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: 82.23vh;
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: 6.64vh;
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
+ }
@@ -1,92 +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;
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;