@katajere/recap 1.0.2 → 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.
Files changed (68) hide show
  1. package/README.md +27 -1
  2. package/dist/App.css +156 -120
  3. package/dist/FloatingFrames.css +55 -55
  4. package/dist/LoginScreen.css +146 -146
  5. package/dist/OtpScreen.css +133 -133
  6. package/dist/RecapStory.css +105 -105
  7. package/dist/StoryProgress.css +47 -47
  8. package/dist/assets/huxxle-blue-logo.svg +14 -14
  9. package/dist/assets/login-logo.svg +14 -14
  10. package/dist/assets/slide-logo.svg +14 -14
  11. package/dist/components/Header.css +46 -46
  12. package/dist/index.d.ts +2 -2
  13. package/dist/index.js +2 -2
  14. package/dist/slides/Slide10Final.css +101 -101
  15. package/dist/slides/Slide1Intro.css +235 -261
  16. package/dist/slides/Slide2Days.css +209 -209
  17. package/dist/slides/Slide3Revenue.css +89 -89
  18. package/dist/slides/Slide4Orders.css +135 -135
  19. package/dist/slides/Slide5Buyers.css +140 -140
  20. package/dist/slides/Slide6Customer.css +92 -92
  21. package/dist/slides/Slide7Products.css +144 -144
  22. package/dist/slides/Slide8Months.css +148 -148
  23. package/dist/slides/Slide9Year.css +93 -93
  24. package/package.json +17 -32
  25. package/src/App.css +156 -120
  26. package/src/FloatingFrames.css +55 -55
  27. package/src/FloatingFrames.tsx +27 -27
  28. package/src/LoginScreen.css +146 -146
  29. package/src/LoginScreen.tsx +70 -70
  30. package/src/OtpScreen.css +133 -133
  31. package/src/OtpScreen.tsx +109 -109
  32. package/src/RecapApp.tsx +34 -34
  33. package/src/RecapStory.css +105 -105
  34. package/src/RecapStory.tsx +269 -269
  35. package/src/StoryProgress.css +47 -47
  36. package/src/StoryProgress.tsx +60 -60
  37. package/src/assets.d.ts +41 -41
  38. package/src/components/Header.css +46 -46
  39. package/src/components/Header.tsx +41 -41
  40. package/src/data/mock.ts +62 -62
  41. package/src/data/recapCopy.ts +33 -33
  42. package/src/hooks/useBackgroundMusic.ts +79 -79
  43. package/src/index.ts +70 -70
  44. package/src/react-app-env.d.ts +26 -26
  45. package/src/slides/Slide10Final.css +101 -101
  46. package/src/slides/Slide10Final.tsx +105 -105
  47. package/src/slides/Slide1Intro.css +235 -261
  48. package/src/slides/Slide1Intro.tsx +141 -141
  49. package/src/slides/Slide2Days.css +209 -209
  50. package/src/slides/Slide2Days.tsx +92 -92
  51. package/src/slides/Slide3Revenue.css +89 -89
  52. package/src/slides/Slide3Revenue.tsx +76 -76
  53. package/src/slides/Slide4Orders.css +135 -135
  54. package/src/slides/Slide4Orders.tsx +63 -63
  55. package/src/slides/Slide5Buyers.css +140 -140
  56. package/src/slides/Slide5Buyers.tsx +74 -74
  57. package/src/slides/Slide6Customer.css +92 -92
  58. package/src/slides/Slide6Customer.tsx +27 -27
  59. package/src/slides/Slide7Products.css +144 -144
  60. package/src/slides/Slide7Products.tsx +81 -81
  61. package/src/slides/Slide8Months.css +148 -148
  62. package/src/slides/Slide8Months.tsx +63 -63
  63. package/src/slides/Slide9Year.css +93 -93
  64. package/src/slides/Slide9Year.tsx +35 -35
  65. package/src/types.ts +39 -39
  66. package/src/utils/format.ts +18 -18
  67. package/src/utils/index.ts +3 -3
  68. package/src/utils/motion.ts +89 -89
@@ -1,261 +1,235 @@
1
- /* Slide1Intro.css - Responsive design */
2
-
3
- .slide1-intro {
4
- position: relative;
5
- width: 100%;
6
- height: 100%;
7
- overflow: hidden;
8
- display: flex;
9
- flex-direction: column;
10
- }
11
-
12
- /* Brand name container - positioned at top */
13
- .slide1-intro__brand-container {
14
- display: flex;
15
- flex-direction: column;
16
- align-items: flex-start;
17
- padding: 0;
18
- gap: clamp(8px, 1.5%, 12px);
19
- position: absolute;
20
- top: clamp(32px, 5%, 48px);
21
- left: clamp(12px, 4%, 16px);
22
- z-index: 3;
23
- overflow: visible;
24
- width: calc(100% - clamp(24px, 8%, 32px));
25
- }
26
-
27
- /* Background "HEY" text - first line, with opacity */
28
- .slide1-intro__bg-text {
29
- font-family: 'Lora', serif;
30
- font-style: normal;
31
- font-weight: 700;
32
- font-size: clamp(32px, 12vw, 56px);
33
- line-height: 1;
34
- background: linear-gradient(90deg, #FFFFFF 0%, #FFCC80 100%);
35
- -webkit-background-clip: text;
36
- -webkit-text-fill-color: transparent;
37
- background-clip: text;
38
- opacity: 0.1;
39
- flex: none;
40
- margin: 0;
41
- white-space: nowrap;
42
- }
43
-
44
- /* Business name - animated horizontally */
45
- .slide1-intro__brand {
46
- font-family: 'Lora', serif;
47
- font-style: normal;
48
- font-weight: 700;
49
- font-size: clamp(32px, 12vw, 56px);
50
- line-height: 1;
51
- background: linear-gradient(90deg, #FFFFFF 0%, #FFCC80 100%);
52
- -webkit-background-clip: text;
53
- -webkit-text-fill-color: transparent;
54
- background-clip: text;
55
- flex: none;
56
- white-space: nowrap;
57
- margin: 0;
58
- }
59
-
60
- /* Top floating frames - positioned at ~30% from top */
61
- .slide1-intro__frames-top {
62
- display: flex;
63
- flex-direction: row;
64
- justify-content: center;
65
- align-items: center;
66
- padding: 0;
67
- gap: clamp(6px, 2%, 10px);
68
- position: absolute;
69
- width: 100%;
70
- left: 0;
71
- top: clamp(140px, 30%, 220px);
72
- z-index: 2;
73
- }
74
-
75
- .slide1-intro__frames-top .frame-rect {
76
- box-sizing: border-box;
77
- width: clamp(120px, 35%, 160px);
78
- aspect-ratio: 140 / 186;
79
- border: 1px solid #FFFFFF;
80
- flex: none;
81
- }
82
-
83
- /* Headline and subtitle container - positioned at ~63% from top */
84
- .slide1-intro__text {
85
- display: flex;
86
- flex-direction: column;
87
- align-items: flex-start;
88
- gap: clamp(8px, 1.5%, 12px);
89
- position: absolute;
90
- width: calc(100% - clamp(24px, 8%, 32px));
91
- left: clamp(12px, 4%, 16px);
92
- top: clamp(320px, 63%, 480px);
93
- z-index: 3;
94
- }
95
-
96
- .slide1-intro__headline {
97
- width: 100%;
98
- font-family: 'Lora', serif;
99
- font-style: normal;
100
- font-weight: 600;
101
- font-size: clamp(20px, 6vw, 32px);
102
- line-height: 1.2;
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
- flex: none;
108
- margin: 0;
109
- display: -webkit-box;
110
- -webkit-line-clamp: 3;
111
- line-clamp: inherit;
112
- -webkit-box-orient: vertical;
113
- overflow: hidden;
114
- }
115
-
116
- .slide1-intro__subtitle {
117
- width: 100%;
118
- font-family: 'Lora', serif;
119
- font-style: normal;
120
- font-weight: 400;
121
- font-size: clamp(12px, 3.5vw, 14px);
122
- line-height: 1.5;
123
- color: #FFFFFF;
124
- flex: none;
125
- margin: 0;
126
- }
127
-
128
- /* Bottom floating frames - positioned at ~88% from top */
129
- .slide1-intro__frames-bottom {
130
- display: flex;
131
- flex-direction: row;
132
- justify-content: center;
133
- align-items: center;
134
- padding: 0;
135
- gap: clamp(8px, 2%, 12px);
136
- position: absolute;
137
- width: 100%;
138
- left: 0;
139
- top: clamp(560px, 88%, 720px);
140
- z-index: 2;
141
- }
142
-
143
- .slide1-intro__frames-bottom .frame-rect {
144
- box-sizing: border-box;
145
- width: clamp(120px, 35%, 160px);
146
- aspect-ratio: 140 / 186;
147
- border: 1px solid #FFFFFF;
148
- flex: none;
149
- }
150
-
151
- @media (max-height: 600px) {
152
- .slide1-intro__brand-container {
153
- top: 16px;
154
- }
155
-
156
- .slide1-intro__bg-text,
157
- .slide1-intro__brand {
158
- font-size: clamp(24px, 10vw, 40px);
159
- }
160
-
161
- .slide1-intro__frames-top {
162
- top: 30%;
163
- }
164
-
165
- .slide1-intro__text {
166
- top: 60%;
167
- }
168
-
169
- .slide1-intro__headline {
170
- font-size: clamp(16px, 5vw, 24px);
171
- }
172
-
173
- .slide1-intro__frames-bottom {
174
- top: 85%;
175
- }
176
- }
177
-
178
- .slide1-intro__frames-bottom .frame-rect {
179
- box-sizing: border-box;
180
- width: clamp(140px, 46.15vw, 180px);
181
- height: clamp(186px, 28.44dvh, 240px);
182
- border: 1px solid #FFFFFF;
183
- flex: none;
184
- }
185
-
186
- /* Variant styles */
187
- .slide1-intro--struggling {
188
- background: linear-gradient(180deg, #1B1A3D 0%, #E33D2E 100%);
189
- }
190
-
191
- .slide1-intro--new-user {
192
- background: linear-gradient(180deg, #FFFFFF 0%, #3F3DAD 100%);
193
- }
194
-
195
- .slide1-intro--struggling .slide1-intro__subtitle {
196
- color: #F6E7DF;
197
- }
198
-
199
- .slide1-intro--new-user .slide1-intro__subtitle {
200
- color: #16205A;
201
- }
202
-
203
- .slide1-intro--struggling .frame-rect {
204
- border-color: rgba(255, 255, 255, 0.6);
205
- }
206
-
207
- .slide1-intro--new-user .slide1-intro__brand {
208
- background: linear-gradient(180deg, #4F4CD8 0%, #2A2872 100%);
209
- -webkit-background-clip: text;
210
- -webkit-text-fill-color: transparent;
211
- background-clip: text;
212
- }
213
-
214
- .slide1-intro--new-user .slide1-intro__headline {
215
- background: none;
216
- color: #E6E5F9;
217
- -webkit-background-clip: unset;
218
- background-clip: unset;
219
- -webkit-text-fill-color: #E6E5F9;
220
- }
221
-
222
- .slide1-intro--new-user .slide1-intro__subtitle {
223
- color: #CDCCF4;
224
- }
225
-
226
- .slide1-intro--new-user .frame-rect {
227
- border-color: rgba(63, 61, 173, 0.6);
228
- }
229
-
230
- .slide1-intro--new-user .slide1-intro__bg-text {
231
- background: linear-gradient(180deg, #4F4CD8 0%, #2A2872 100%);
232
- -webkit-background-clip: text;
233
- -webkit-text-fill-color: transparent;
234
- background-clip: text;
235
- opacity: 0.08;
236
- }
237
-
238
- /* Media queries for landscape and short screens */
239
- @media (max-height: 720px), (orientation: landscape) {
240
- /* .slide1-intro__brand-container {
241
- top: clamp(32px, 4dvh, 40px);
242
- gap: clamp(8px, 1.5dvh, 12px);
243
- } */
244
-
245
- .slide1-intro__bg-text,
246
- .slide1-intro__brand {
247
- font-size: clamp(32px, 12vw, 48px);
248
- }
249
-
250
- /* .slide1-intro__frames-top {
251
- top: clamp(140px, 22dvh, 180px);
252
- } */
253
-
254
- /* .slide1-intro__text {
255
- top: clamp(280px, 50dvh, 380px);
256
- } */
257
-
258
- /* .slide1-intro__frames-bottom {
259
- top: clamp(420px, 70dvh, 520px);
260
- } */
261
- }
1
+ /* Slide1Intro.css - Updated design specifications */
2
+
3
+ .slide1-intro {
4
+ position: relative;
5
+ width: 100%;
6
+ height: 100%;
7
+ overflow: hidden;
8
+ }
9
+
10
+ /* Brand name container - 48px from top, allows overflow for animation */
11
+ .slide1-intro__brand-container {
12
+ display: flex;
13
+ flex-direction: column;
14
+ align-items: flex-start;
15
+ padding: 0;
16
+ /* gap: clamp(12px, 1.9dvh, 16px); */
17
+ gap: calc(12px + env(safe-area-inset-top));
18
+ position: absolute;
19
+ /* width: clamp(300px, 91.79vw, 358px);
20
+ left: clamp(16px, 4.1vw, 16px);
21
+ top: clamp(40px, 5.69dvh, 48px); */
22
+ z-index: 3;
23
+ overflow: visible;
24
+ }
25
+
26
+ /* Background "HEY" text - first line, with opacity */
27
+ .slide1-intro__bg-text {
28
+ font-family: 'Lora', serif;
29
+ font-style: normal;
30
+ font-weight: 700;
31
+ font-size: clamp(40px, 16.41vw, 64px);
32
+ line-height: 1;
33
+ background: linear-gradient(90deg, #FFFFFF 0%, #FFCC80 100%);
34
+ -webkit-background-clip: text;
35
+ -webkit-text-fill-color: transparent;
36
+ background-clip: text;
37
+ opacity: 0.1;
38
+ flex: none;
39
+ order: 0;
40
+ align-self: stretch;
41
+ margin: calc(48px + env(safe-area-inset-top)) calc(16px + env(safe-area-inset-left)) 0 calc(16px + env(safe-area-inset-right));
42
+ }
43
+
44
+ /* Business name - single line, animated horizontally */
45
+ .slide1-intro__brand {
46
+ font-family: 'Lora', serif;
47
+ font-style: normal;
48
+ font-weight: 700;
49
+ font-size: clamp(40px, 16.41vw, 64px);
50
+ line-height: 1;
51
+ background: linear-gradient(90deg, #FFFFFF 0%, #FFCC80 100%);
52
+ -webkit-background-clip: text;
53
+ -webkit-text-fill-color: transparent;
54
+ background-clip: text;
55
+ flex: none;
56
+ order: 1;
57
+ align-self: stretch;
58
+ white-space: nowrap;
59
+ margin-left: calc(16px + env(safe-area-inset-top));
60
+ }
61
+
62
+ /* Top floating frames - 255px from top */
63
+ .slide1-intro__frames-top {
64
+ display: flex;
65
+ flex-direction: row;
66
+ justify-content: center;
67
+ align-items: center;
68
+ padding: 0;
69
+ gap: clamp(8px, 3.08vw, 12px);
70
+ position: absolute;
71
+ width: 100%;
72
+ left: 0;
73
+ /* top: clamp(180px, 30.21dvh, 255px); */
74
+ top: 30.2vh;
75
+ z-index: 2;
76
+ }
77
+
78
+ .slide1-intro__frames-top .frame-rect {
79
+ box-sizing: border-box;
80
+ width: clamp(140px, 46.15vw, 180px);
81
+ /* height: clamp(186px, 28.44dvh, 240px); */
82
+ height: 28.4vh;
83
+ border: 1px solid #FFFFFF;
84
+ flex: none;
85
+ }
86
+
87
+ /* Headline and subtitle container - 535px from top */
88
+ .slide1-intro__text {
89
+ display: flex;
90
+ flex-direction: column;
91
+ align-items: flex-start;
92
+ /* gap: clamp(16px, 2.61dvh, 22px); */
93
+ position: absolute;
94
+ width: 100%;
95
+ /* left: clamp(16px, 4.1vw, 16px); */
96
+ /* left: calc(16px + env(safe-area-inset-top)); */
97
+ top: 63.39vh;
98
+ z-index: 3;
99
+ padding: 0 calc(16px + env(safe-area-inset-left)) 0 calc(16px + env(safe-area-inset-right));
100
+ }
101
+
102
+ .slide1-intro__headline {
103
+ width: 100%;
104
+ font-family: 'Lora', serif;
105
+ font-style: normal;
106
+ font-weight: 600;
107
+ font-size: 4.7vh;
108
+ /* line-height: 1.2; */
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
+ flex: none;
114
+ order: 0;
115
+ align-self: stretch;
116
+ margin: 0;
117
+ display: -webkit-box;
118
+ -webkit-line-clamp: 3;
119
+ line-clamp: inherit;
120
+ -webkit-box-orient: vertical;
121
+ overflow: hidden;
122
+ }
123
+
124
+ .slide1-intro__subtitle {
125
+ width: 100%;
126
+ font-family: 'Lora', serif;
127
+ font-style: normal;
128
+ font-weight: 400;
129
+ font-size: clamp(14px, 4.1vw, 16px);
130
+ line-height: 1.5;
131
+ color: #FFFFFF;
132
+ flex: none;
133
+ order: 1;
134
+ align-self: stretch;
135
+ margin: 0;
136
+ }
137
+ /* Bottom floating frames - 743px from top */
138
+ .slide1-intro__frames-bottom {
139
+ display: flex;
140
+ flex-direction: row;
141
+ justify-content: center;
142
+ align-items: center;
143
+ padding: 0;
144
+ gap: clamp(10px, 3.85vw, 15px);
145
+ position: absolute;
146
+ width: 100%;
147
+ left: 0;
148
+ top: 88dvh;
149
+ z-index: 2;
150
+ }
151
+
152
+ .slide1-intro__frames-bottom .frame-rect {
153
+ box-sizing: border-box;
154
+ width: clamp(140px, 46.15vw, 180px);
155
+ height: clamp(186px, 28.44dvh, 240px);
156
+ border: 1px solid #FFFFFF;
157
+ flex: none;
158
+ }
159
+
160
+ /* Variant styles */
161
+ .slide1-intro--struggling {
162
+ background: linear-gradient(180deg, #1B1A3D 0%, #E33D2E 100%);
163
+ }
164
+
165
+ .slide1-intro--new-user {
166
+ background: linear-gradient(180deg, #FFFFFF 0%, #3F3DAD 100%);
167
+ }
168
+
169
+ .slide1-intro--struggling .slide1-intro__subtitle {
170
+ color: #F6E7DF;
171
+ }
172
+
173
+ .slide1-intro--new-user .slide1-intro__subtitle {
174
+ color: #16205A;
175
+ }
176
+
177
+ .slide1-intro--struggling .frame-rect {
178
+ border-color: rgba(255, 255, 255, 0.6);
179
+ }
180
+
181
+ .slide1-intro--new-user .slide1-intro__brand {
182
+ background: linear-gradient(180deg, #4F4CD8 0%, #2A2872 100%);
183
+ -webkit-background-clip: text;
184
+ -webkit-text-fill-color: transparent;
185
+ background-clip: text;
186
+ }
187
+
188
+ .slide1-intro--new-user .slide1-intro__headline {
189
+ background: none;
190
+ color: #E6E5F9;
191
+ -webkit-background-clip: unset;
192
+ background-clip: unset;
193
+ -webkit-text-fill-color: #E6E5F9;
194
+ }
195
+
196
+ .slide1-intro--new-user .slide1-intro__subtitle {
197
+ color: #CDCCF4;
198
+ }
199
+
200
+ .slide1-intro--new-user .frame-rect {
201
+ border-color: rgba(63, 61, 173, 0.6);
202
+ }
203
+
204
+ .slide1-intro--new-user .slide1-intro__bg-text {
205
+ background: linear-gradient(180deg, #4F4CD8 0%, #2A2872 100%);
206
+ -webkit-background-clip: text;
207
+ -webkit-text-fill-color: transparent;
208
+ background-clip: text;
209
+ opacity: 0.08;
210
+ }
211
+
212
+ /* Media queries for landscape and short screens */
213
+ @media (max-height: 720px), (orientation: landscape) {
214
+ /* .slide1-intro__brand-container {
215
+ top: clamp(32px, 4dvh, 40px);
216
+ gap: clamp(8px, 1.5dvh, 12px);
217
+ } */
218
+
219
+ .slide1-intro__bg-text,
220
+ .slide1-intro__brand {
221
+ font-size: clamp(32px, 12vw, 48px);
222
+ }
223
+
224
+ /* .slide1-intro__frames-top {
225
+ top: clamp(140px, 22dvh, 180px);
226
+ } */
227
+
228
+ /* .slide1-intro__text {
229
+ top: clamp(280px, 50dvh, 380px);
230
+ } */
231
+
232
+ /* .slide1-intro__frames-bottom {
233
+ top: clamp(420px, 70dvh, 520px);
234
+ } */
235
+ }