@katajere/recap 2.1.4 → 2.1.6

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.
@@ -1,43 +1,39 @@
1
- /* Slide1Intro.css - Updated design specifications */
1
+ /* Slide1Intro.css - Flexbox layout for consistent spacing */
2
2
 
3
3
  .slide1-intro {
4
4
  position: relative;
5
5
  width: 100%;
6
6
  height: 100%;
7
7
  overflow: hidden;
8
+
9
+ /* Flexbox column layout */
10
+ display: flex;
11
+ flex-direction: column;
12
+ padding: calc(48px + env(safe-area-inset-top)) calc(16px + env(safe-area-inset-right)) calc(94px + env(safe-area-inset-bottom)) calc(16px + env(safe-area-inset-left));
13
+ box-sizing: border-box;
8
14
  }
9
15
 
10
- /* Brand name container - 48px from top, allows overflow for animation */
16
+ /* ===== ROW 1: Brand Container (HEY + Business Name) ===== */
11
17
  .slide1-intro__brand-container {
12
18
  display: flex;
13
19
  flex-direction: column;
14
20
  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: 100%;
20
- left: 0;
21
- /* top: clamp(40px, 5.69dvh, 48px); */
21
+ flex-shrink: 0;
22
+ gap: 0; /* No gap between HEY and business name */
22
23
  z-index: 3;
23
- overflow: visible;
24
24
  }
25
25
 
26
- /* Background "HEY" text - first line, with opacity and border */
26
+ /* Background "HEY" text */
27
27
  .slide1-intro__bg-text {
28
28
  font-family: 'Lora', serif;
29
29
  font-style: normal;
30
30
  font-weight: 700;
31
31
  font-size: clamp(40px, 16.41vw, 64px);
32
- /* line-height: 180%; */
33
32
  color: transparent;
34
33
  -webkit-text-stroke: 1.5px var(--primary-purple);
35
34
  opacity: 0.1;
36
- flex: none;
37
- order: 0;
38
- align-self: stretch;
39
- /* Header is ~48px + safe-area, add 6px gap below header */
40
- margin: calc(54px + env(safe-area-inset-top)) calc(16px + env(safe-area-inset-left)) 0 calc(16px + env(safe-area-inset-right));
35
+ margin: 0;
36
+ line-height: 1; /* Tighter line height to reduce gap */
41
37
  }
42
38
 
43
39
  /* Business name - wraps naturally with dynamic font size */
@@ -48,16 +44,9 @@
48
44
  font-size: clamp(28px, 10vw, 56px);
49
45
  line-height: 1.05;
50
46
  color: #4F4CD8;
51
- flex: none;
52
- order: 1;
53
- align-self: stretch;
54
47
  display: flex;
55
48
  flex-wrap: wrap;
56
- padding-left: calc(16px + env(safe-area-inset-left));
57
- padding-right: calc(16px + env(safe-area-inset-right));
58
- box-sizing: border-box;
59
49
  width: 100%;
60
- position: relative;
61
50
  z-index: 4;
62
51
  }
63
52
 
@@ -82,72 +71,40 @@
82
71
  /* Each word on its own line, never breaks mid-word */
83
72
  .slide1-intro__word {
84
73
  display: block;
85
- /* white-space: nowrap; */
86
74
  }
87
75
 
88
- /* Top floating frames - positioned below business name */
89
- .slide1-intro__frames-top {
76
+ /* ===== ROW 2: Frames (Flexible middle section) ===== */
77
+ .slide1-intro__frames {
90
78
  display: flex;
91
79
  flex-direction: row;
92
80
  justify-content: center;
93
81
  align-items: center;
94
- padding: 0;
82
+ flex: 1; /* Take remaining space */
83
+ min-height: 0; /* Allow shrinking */
84
+ padding: 12px 0;
95
85
  gap: clamp(8px, 3.08vw, 12px);
96
- position: absolute;
97
- width: 100%;
98
- left: 0;
99
- top: 30vh;
100
86
  z-index: 2;
87
+ margin: 0 -16px; /* Extend beyond parent padding to screen edges */
88
+ overflow: visible; /* Allow frames to extend beyond - animation reveals them */
101
89
  }
102
90
 
103
- /* Adjust frame position based on business name length */
104
- .slide1-intro:has(.slide1-intro__brand--short) .slide1-intro__frames-top {
105
- top: 26vh;
106
- }
107
-
108
- .slide1-intro:has(.slide1-intro__brand--medium) .slide1-intro__frames-top {
109
- top: 28vh;
110
- }
111
-
112
- .slide1-intro:has(.slide1-intro__brand--long) .slide1-intro__frames-top {
113
- top: 30vh;
114
- }
115
-
116
- .slide1-intro__frames-top .frame-rect {
91
+ .slide1-intro__frames .frame-rect {
117
92
  box-sizing: border-box;
118
93
  width: clamp(140px, 46.15vw, 180px);
119
- /* height: clamp(186px, 28.44dvh, 240px); */
120
- height: 28.4vh;
121
- border: 1px solid #FFFFFF;
122
- flex: none;
94
+ height: 100%;
95
+ max-height: 240px;
96
+ aspect-ratio: 3 / 4;
97
+ border: 1px solid #4F4CD8;
98
+ flex: 0 0 auto;
123
99
  }
124
100
 
125
- /* Headline and subtitle container - 535px from top */
101
+ /* ===== ROW 3: Text Content (Headline + Subtitle + CTA) ===== */
126
102
  .slide1-intro__text {
127
103
  display: flex;
128
104
  flex-direction: column;
129
105
  align-items: flex-start;
130
- /* gap: clamp(16px, 2.61dvh, 22px); */
131
- position: absolute;
132
- width: 100%;
133
- /* left: clamp(16px, 4.1vw, 16px); */
134
- /* left: calc(16px + env(safe-area-inset-top)); */
135
- top: 63.39vh;
106
+ flex-shrink: 0;
136
107
  z-index: 3;
137
- padding: 0 calc(16px + env(safe-area-inset-left)) 0 calc(16px + env(safe-area-inset-right));
138
- }
139
-
140
- /* Text positioning based on word count - align with frame positions */
141
- .slide1-intro--words-1 .slide1-intro__text {
142
- top: 58vh;
143
- }
144
-
145
- .slide1-intro--words-2 .slide1-intro__text {
146
- top: 60vh;
147
- }
148
-
149
- .slide1-intro--words-3 .slide1-intro__text {
150
- top: 63.39vh;
151
108
  }
152
109
 
153
110
  .slide1-intro__headline {
@@ -155,13 +112,10 @@
155
112
  font-family: 'Lora', serif;
156
113
  font-style: normal;
157
114
  font-weight: 600;
158
- font-size: 4.7vh;
115
+ font-size: clamp(24px, 4.7vh, 40px);
159
116
  line-height: 1.25;
160
117
  color: #4F4CD8;
161
- flex: none;
162
- order: 0;
163
- align-self: stretch;
164
- margin: 0;
118
+ margin: 0 0 8px 0;
165
119
  word-wrap: break-word;
166
120
  overflow-wrap: break-word;
167
121
  }
@@ -174,45 +128,63 @@
174
128
  font-size: clamp(14px, 4.1vw, 16px);
175
129
  line-height: 1.5;
176
130
  color: #3734D3;
177
- flex: none;
178
- order: 1;
179
- align-self: stretch;
180
131
  margin: 0;
181
132
  }
182
- /* Bottom floating frames - 743px from top */
183
- .slide1-intro__frames-bottom {
184
- display: none;
133
+
134
+ /* ===== CTA Button (inside text row for new users) ===== */
135
+ .slide1-intro__cta-button {
136
+ width: 100%;
137
+ max-width: 320px;
138
+ margin-top: 16px;
139
+ margin-left: auto;
140
+ margin-right: auto;
141
+ padding: 14px 20px;
142
+ text-align: center;
143
+ background: linear-gradient(90deg, #4F4CD8 0%, #3F3DAD 100%);
144
+ border: none;
145
+ font-family: 'Lora', serif;
146
+ font-weight: 600;
147
+ font-size: clamp(16px, 4.1vw, 18px);
148
+ color: #FFFFFF;
149
+ cursor: pointer;
150
+ z-index: 10;
151
+ box-shadow: 0 4px 12px rgba(63, 61, 173, 0.3);
152
+ transition: all 0.3s ease;
153
+ white-space: nowrap;
185
154
  }
186
155
 
187
- .slide1-intro__frames-bottom .frame-rect {
188
- box-sizing: border-box;
189
- width: clamp(140px, 46.15vw, 180px);
190
- height: clamp(186px, 28.44dvh, 240px);
191
- border: 1px solid #FFFFFF;
192
- flex: none;
156
+ .slide1-intro__cta-button:hover {
157
+ transform: translateY(-2px);
158
+ box-shadow: 0 6px 16px rgba(63, 61, 173, 0.4);
193
159
  }
194
160
 
195
- /* Variant styles */
196
- .slide1-intro--struggling {
197
- background: linear-gradient(180deg, #1B1A3D 0%, #E33D2E 100%);
161
+ .slide1-intro__cta-button:active {
162
+ transform: translateY(0);
163
+ box-shadow: 0 2px 8px rgba(63, 61, 173, 0.3);
198
164
  }
199
165
 
200
- .slide1-intro--new-user {
201
- background: linear-gradient(180deg, #FFFFFF 0%, #3F3DAD 100%);
166
+ /* ===== VARIANT STYLES ===== */
167
+
168
+ /* Thriving variant (default) - no extra styles needed */
169
+
170
+ /* Struggling variant */
171
+ .slide1-intro--struggling {
172
+ background: linear-gradient(180deg, #1B1A3D 0%, #E33D2E 100%);
202
173
  }
203
174
 
204
175
  .slide1-intro--struggling .slide1-intro__subtitle {
205
176
  color: #F6E7DF;
206
177
  }
207
178
 
208
- .slide1-intro--new-user .slide1-intro__subtitle {
209
- color: #16205A;
210
- }
211
-
212
179
  .slide1-intro--struggling .frame-rect {
213
180
  border-color: rgba(255, 255, 255, 0.6);
214
181
  }
215
182
 
183
+ /* New User variant */
184
+ .slide1-intro--new-user {
185
+ background: linear-gradient(180deg, #FFFFFF 0%, #3F3DAD 100%);
186
+ }
187
+
216
188
  .slide1-intro--new-user .slide1-intro__brand {
217
189
  background: linear-gradient(180deg, #4F4CD8 0%, #2A2872 100%);
218
190
  -webkit-background-clip: text;
@@ -244,64 +216,26 @@
244
216
  opacity: 0.08;
245
217
  }
246
218
 
247
- /* Mid-height screens (720-850px) - frames need to be pushed down */
248
- @media (min-height: 720px) and (max-height: 850px) {
249
- .slide1-intro__frames-top {
250
- top: 38vh;
251
- }
252
-
253
- .slide1-intro--words-1 .slide1-intro__frames-top {
254
- top: 32vh;
255
- }
256
-
257
- .slide1-intro--words-2 .slide1-intro__frames-top {
258
- top: 34vh;
259
- }
260
-
261
- .slide1-intro--words-3 .slide1-intro__frames-top {
262
- top: 38vh;
263
- }
264
-
265
- .slide1-intro__text {
266
- top: 68vh;
267
- }
268
-
269
- .slide1-intro--words-1 .slide1-intro__text {
270
- top: 64vh;
271
- }
272
-
273
- .slide1-intro--words-2 .slide1-intro__text {
274
- top: 66vh;
275
- }
276
-
277
- .slide1-intro--words-3 .slide1-intro__text {
278
- top: 68vh;
279
- }
219
+ .slide1-intro--new-user .slide1-intro__cta-button {
220
+ background: linear-gradient(90deg, #E6E5F9 0%, #CDCCF4 100%);
221
+ color: #2A2872;
222
+ box-shadow: 0 4px 12px rgba(230, 229, 249, 0.3);
280
223
  }
281
224
 
282
- /* Media queries for landscape and short screens */
283
- @media (max-height: 720px), (orientation: landscape) {
284
- .slide1-intro__bg-text,
285
- .slide1-intro__brand {
286
- font-size: clamp(32px, 12vw, 48px);
287
- }
288
-
289
- /* Maintain larger sizes for fewer words on short screens */
290
- .slide1-intro__brand--words-1 {
291
- font-size: clamp(48px, 16vw, 72px);
292
- }
293
-
294
- .slide1-intro__brand--words-2 {
295
- font-size: clamp(36px, 12vw, 56px);
296
- }
225
+ .slide1-intro--new-user .slide1-intro__cta-button:hover {
226
+ box-shadow: 0 6px 16px rgba(230, 229, 249, 0.4);
297
227
  }
298
228
 
299
- /* Small/Short screens - handles browser chrome taking space */
229
+ /* ===== RESPONSIVE ADJUSTMENTS ===== */
230
+
231
+ /* Short screens - reduce font sizes */
300
232
  @media (max-height: 700px) {
233
+ .slide1-intro {
234
+ padding-top: calc(48px + env(safe-area-inset-top));
235
+ }
236
+
301
237
  .slide1-intro__bg-text {
302
238
  font-size: clamp(28px, 10vw, 40px);
303
- /* Maintain header clearance: header ~48px + 6px gap */
304
- margin-top: calc(54px + env(safe-area-inset-top));
305
239
  }
306
240
 
307
241
  .slide1-intro__brand {
@@ -309,47 +243,20 @@
309
243
  line-height: 1.0;
310
244
  }
311
245
 
312
- /* Single word - still larger on short screens */
313
- .slide1-intro__brand--words-1 {
314
- font-size: clamp(40px, 14vw, 60px);
315
- }
316
-
317
- .slide1-intro__brand--words-2 {
318
- font-size: clamp(32px, 11vw, 48px);
319
- }
320
-
321
- /* Frame positioning for short screens by word count */
322
- .slide1-intro--words-1 .slide1-intro__frames-top {
323
- top: 30dvh;
324
- }
325
-
326
- .slide1-intro--words-2 .slide1-intro__frames-top {
327
- top: 32dvh;
328
- }
329
-
330
- .slide1-intro--words-3 .slide1-intro__frames-top {
331
- top: 36dvh;
332
- }
333
-
334
- .slide1-intro__frames-top .frame-rect {
335
- height: 30dvh;
336
- }
337
-
338
- /* Text positioning for short screens by word count */
339
- .slide1-intro--words-1 .slide1-intro__text {
340
- top: 64dvh;
246
+ .slide1-intro__brand--short {
247
+ font-size: clamp(36px, 12vw, 56px);
341
248
  }
342
249
 
343
- .slide1-intro--words-2 .slide1-intro__text {
344
- top: 66dvh;
250
+ .slide1-intro__brand--medium {
251
+ font-size: clamp(28px, 10vw, 44px);
345
252
  }
346
253
 
347
- .slide1-intro--words-3 .slide1-intro__text {
348
- top: 70dvh;
254
+ .slide1-intro__brand--long {
255
+ font-size: clamp(20px, 7vw, 32px);
349
256
  }
350
257
 
351
258
  .slide1-intro__headline {
352
- font-size: 4dvh;
259
+ font-size: clamp(20px, 4vh, 32px);
353
260
  line-height: 1.2;
354
261
  }
355
262
 
@@ -357,14 +264,20 @@
357
264
  font-size: clamp(12px, 3.5vw, 14px);
358
265
  line-height: 1.4;
359
266
  }
267
+
268
+ .slide1-intro__frames .frame-rect {
269
+ max-height: 180px;
270
+ }
360
271
  }
361
272
 
362
- /* Extra short screens - more aggressive adjustments */
273
+ /* Extra short screens */
363
274
  @media (max-height: 600px) {
275
+ .slide1-intro {
276
+ padding-top: calc(44px + env(safe-area-inset-top));
277
+ }
278
+
364
279
  .slide1-intro__bg-text {
365
280
  font-size: clamp(24px, 8vw, 32px);
366
- /* Maintain header clearance even on extra short screens */
367
- margin-top: calc(54px + env(safe-area-inset-top));
368
281
  }
369
282
 
370
283
  .slide1-intro__brand {
@@ -372,90 +285,72 @@
372
285
  line-height: 0.95;
373
286
  }
374
287
 
375
- /* Single word - still larger on extra short screens */
376
- .slide1-intro__brand--words-1 {
377
- font-size: clamp(32px, 12vw, 48px);
288
+ .slide1-intro__brand--short {
289
+ font-size: clamp(28px, 10vw, 44px);
378
290
  }
379
291
 
380
- .slide1-intro__brand--words-2 {
381
- font-size: clamp(26px, 10vw, 40px);
292
+ .slide1-intro__brand--medium {
293
+ font-size: clamp(24px, 9vw, 36px);
382
294
  }
383
295
 
384
- /* Frame positioning for extra short screens by word count */
385
- .slide1-intro--words-1 .slide1-intro__frames-top {
386
- top: 26dvh;
296
+ .slide1-intro__headline {
297
+ font-size: clamp(18px, 3.5vh, 28px);
387
298
  }
388
299
 
389
- .slide1-intro--words-2 .slide1-intro__frames-top {
390
- top: 28dvh;
300
+ .slide1-intro__frames {
301
+ padding: 8px 0;
302
+ }
303
+
304
+ .slide1-intro__frames .frame-rect {
305
+ max-height: 140px;
306
+ }
307
+ }
308
+
309
+ /* Landscape orientation */
310
+ @media (orientation: landscape) and (max-height: 500px) {
311
+ .slide1-intro {
312
+ flex-direction: row;
313
+ flex-wrap: wrap;
314
+ padding-top: calc(40px + env(safe-area-inset-top));
391
315
  }
392
316
 
393
- .slide1-intro--words-3 .slide1-intro__frames-top {
394
- top: 30dvh;
317
+ .slide1-intro__brand-container {
318
+ width: 50%;
395
319
  }
396
320
 
397
- .slide1-intro__frames-top .frame-rect {
398
- height: 24dvh;
321
+ .slide1-intro__frames {
322
+ flex-direction: column;
323
+ gap: 8px;
324
+ width: 50%;
325
+ flex: none;
326
+ margin: 0;
327
+ padding: 0;
399
328
  }
400
329
 
401
- /* Text positioning for extra short screens by word count */
402
- .slide1-intro--words-1 .slide1-intro__text {
403
- top: 54dvh;
330
+ .slide1-intro__text {
331
+ width: 50%;
404
332
  }
405
333
 
406
- .slide1-intro--words-2 .slide1-intro__text {
407
- top: 56dvh;
334
+ .slide1-intro__frames .frame-rect {
335
+ width: auto;
336
+ height: clamp(60px, 25vh, 100px);
337
+ max-height: none;
338
+ aspect-ratio: 4 / 3;
408
339
  }
409
340
 
410
- .slide1-intro--words-3 .slide1-intro__text {
411
- top: 58dvh;
341
+ .slide1-intro__bg-text {
342
+ font-size: clamp(20px, 6vw, 28px);
343
+ }
344
+
345
+ .slide1-intro__brand {
346
+ font-size: clamp(16px, 5vw, 24px);
412
347
  }
413
348
 
414
349
  .slide1-intro__headline {
415
- font-size: 3.5dvh;
350
+ font-size: clamp(14px, 3vh, 20px);
351
+ }
352
+
353
+ .slide1-intro__subtitle {
354
+ font-size: clamp(10px, 2.5vw, 12px);
416
355
  }
417
- }
418
-
419
- /* New User CTA Button */
420
- .slide1-intro__cta-button {
421
- position: absolute;
422
- left: 0;
423
- right: 0;
424
- bottom: calc(32px + env(safe-area-inset-bottom));
425
- margin: 0 auto;
426
- width: min(320px, calc(100% - 32px));
427
- padding: 14px 20px;
428
- text-align: center;
429
- background: linear-gradient(90deg, #4F4CD8 0%, #3F3DAD 100%);
430
- border: none;
431
- /* border-radius: 12px; */
432
- font-family: 'Lora', serif;
433
- font-weight: 600;
434
- font-size: clamp(16px, 4.1vw, 18px);
435
- color: #FFFFFF;
436
- cursor: pointer;
437
- z-index: 10;
438
- box-shadow: 0 4px 12px rgba(63, 61, 173, 0.3);
439
- transition: all 0.3s ease;
440
- white-space: nowrap;
441
- }
442
-
443
- .slide1-intro__cta-button:hover {
444
- transform: translateX(-50%) translateY(-2px);
445
- box-shadow: 0 6px 16px rgba(63, 61, 173, 0.4);
446
- }
447
-
448
- .slide1-intro__cta-button:active {
449
- transform: translateX(-50%) translateY(0);
450
- box-shadow: 0 2px 8px rgba(63, 61, 173, 0.3);
451
- }
452
-
453
- .slide1-intro--new-user .slide1-intro__cta-button {
454
- background: linear-gradient(90deg, #E6E5F9 0%, #CDCCF4 100%);
455
- color: #2A2872;
456
- box-shadow: 0 4px 12px rgba(230, 229, 249, 0.3);
457
- }
458
-
459
- .slide1-intro--new-user .slide1-intro__cta-button:hover {
460
- box-shadow: 0 6px 16px rgba(230, 229, 249, 0.4);
461
356
  }
@@ -1 +1 @@
1
- {"version":3,"file":"Slide1Intro.d.ts","sourceRoot":"","sources":["../../src/slides/Slide1Intro.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAuB,gBAAgB,EAAE,MAAM,UAAU,CAAC;AAEjE,OAAO,mBAAmB,CAAC;AAE3B,UAAU,gBAAgB;IACxB,YAAY,EAAE,MAAM,CAAC;IACrB,gBAAgB,EAAE,gBAAgB,CAAC;IACnC,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,oBAAoB,CAAC,EAAE,CAAC,QAAQ,EAAE,MAAM,KAAK,IAAI,CAAC;IAClD,WAAW,CAAC,EAAE,MAAM,EAAE,CAAC;CACxB;AAED;;GAEG;AACH,iBAAS,WAAW,CAAC,EAAE,YAAY,EAAE,gBAAgB,EAAE,aAAa,EAAE,aAAa,EAAE,oBAAoB,EAAE,WAAW,EAAE,EAAE,gBAAgB,2CA8JzI;AAED,eAAe,WAAW,CAAC"}
1
+ {"version":3,"file":"Slide1Intro.d.ts","sourceRoot":"","sources":["../../src/slides/Slide1Intro.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAuB,gBAAgB,EAAE,MAAM,UAAU,CAAC;AAEjE,OAAO,mBAAmB,CAAC;AAE3B,UAAU,gBAAgB;IACxB,YAAY,EAAE,MAAM,CAAC;IACrB,gBAAgB,EAAE,gBAAgB,CAAC;IACnC,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,oBAAoB,CAAC,EAAE,CAAC,QAAQ,EAAE,MAAM,KAAK,IAAI,CAAC;IAClD,WAAW,CAAC,EAAE,MAAM,EAAE,CAAC;CACxB;AAED;;GAEG;AACH,iBAAS,WAAW,CAAC,EAAE,YAAY,EAAE,gBAAgB,EAAE,aAAa,EAAE,aAAa,EAAE,oBAAoB,EAAE,WAAW,EAAE,EAAE,gBAAgB,2CAmJzI;AAED,eAAe,WAAW,CAAC"}
@@ -33,7 +33,7 @@ function Slide1Intro({ businessName, businessCategory, introHeadline, introSubti
33
33
  if (!frameImagePool.length) {
34
34
  return [];
35
35
  }
36
- return Array.from({ length: 6 }, () => frameImagePool[Math.floor(Math.random() * frameImagePool.length)]);
36
+ return Array.from({ length: 3 }, () => frameImagePool[Math.floor(Math.random() * frameImagePool.length)]);
37
37
  }, [frameImagePool]);
38
38
  const getFrameStyle = (index) => {
39
39
  if (!frameSources.length) {
@@ -63,6 +63,6 @@ function Slide1Intro({ businessName, businessCategory, introHeadline, introSubti
63
63
  delay: (charOffset + charIndex) * 0.03,
64
64
  ease: [0.34, 1.56, 0.64, 1],
65
65
  }, style: { display: 'inline-block' }, children: char }, charIndex))) }), wordIndex < wordsArray.length - 1 && (_jsx(motion.span, { initial: { opacity: 0 }, animate: { opacity: 1 }, transition: { duration: 0.3, delay: (charOffset + word.length) * 0.03 }, style: { display: 'inline-block', width: '0.3em' }, children: ' ' }))] }, wordIndex));
66
- }) })] }), _jsx(motion.div, { className: "slide1-intro__frames-top", animate: { x: [-30, 30] }, transition: { duration: 15, repeat: Infinity, repeatType: 'reverse', ease: 'linear' }, children: Array.from({ length: 3 }).map((_, index) => (_jsx("div", { className: "frame-rect", style: getFrameStyle(index) }, `top-rect-${index}`))) }), _jsxs(motion.div, { className: "slide1-intro__text", variants: delayedFadeIn(0.5), initial: "initial", animate: "animate", children: [_jsx("h2", { className: "slide1-intro__headline", children: headline }), _jsx("p", { className: "slide1-intro__subtitle", children: subtitle })] }), _jsx(motion.div, { className: "slide1-intro__frames-bottom", animate: { x: [-30, 30] }, transition: { duration: 15, repeat: Infinity, repeatType: 'reverse', ease: 'linear' }, children: Array.from({ length: 3 }).map((_, index) => (_jsx("div", { className: "frame-rect", style: getFrameStyle(index + 3) }, `bottom-rect-${index}`))) }), isNewUser && (_jsx(motion.button, { className: "slide1-intro__cta-button", onClick: handleContinue, initial: { y: 100, opacity: 0 }, animate: { y: 0, opacity: 1 }, transition: { duration: 0.8, delay: 2.0, ease: 'easeOut' }, children: "Continue on Huxxle" }))] }));
66
+ }) })] }), _jsx(motion.div, { className: "slide1-intro__frames", animate: { x: [-30, 30] }, transition: { duration: 15, repeat: Infinity, repeatType: 'reverse', ease: 'linear' }, children: Array.from({ length: 3 }).map((_, index) => (_jsx("div", { className: "frame-rect", style: getFrameStyle(index) }, `frame-rect-${index}`))) }), _jsxs(motion.div, { className: "slide1-intro__text", variants: delayedFadeIn(0.5), initial: "initial", animate: "animate", children: [_jsx("h2", { className: "slide1-intro__headline", children: headline }), _jsx("p", { className: "slide1-intro__subtitle", children: subtitle }), isNewUser && (_jsx(motion.button, { className: "slide1-intro__cta-button", onClick: handleContinue, initial: { y: 20, opacity: 0 }, animate: { y: 0, opacity: 1 }, transition: { duration: 0.6, delay: 1.5, ease: 'easeOut' }, children: "Continue on Huxxle" }))] })] }));
67
67
  }
68
68
  export default Slide1Intro;
@@ -41,7 +41,7 @@
41
41
  width: clamp(140px, 46.15vw, 180px);
42
42
  height: 28.4vh;
43
43
  /* aspect-ratio: 180 / 240; */
44
- border: 1px solid #FFFFFF;
44
+ border: 1px solid #4F4CD8;
45
45
  flex: none;
46
46
  /* flex-grow: 0; */
47
47
  }
@@ -72,7 +72,7 @@
72
72
  width: clamp(140px, 46.15vw, 180px);
73
73
  height: 28.4vh;
74
74
  box-sizing: border-box;
75
- border: 1px solid #ffffff;
75
+ border: 1px solid #4F4CD8;
76
76
  flex: none;
77
77
  }
78
78
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@katajere/recap",
3
- "version": "2.1.4",
3
+ "version": "2.1.6",
4
4
  "description": "Vendor Year in Review Experience - Recap your business metrics for 2025",
5
5
  "private": false,
6
6
  "publishConfig": {
@@ -1,43 +1,39 @@
1
- /* Slide1Intro.css - Updated design specifications */
1
+ /* Slide1Intro.css - Flexbox layout for consistent spacing */
2
2
 
3
3
  .slide1-intro {
4
4
  position: relative;
5
5
  width: 100%;
6
6
  height: 100%;
7
7
  overflow: hidden;
8
+
9
+ /* Flexbox column layout */
10
+ display: flex;
11
+ flex-direction: column;
12
+ padding: calc(48px + env(safe-area-inset-top)) calc(16px + env(safe-area-inset-right)) calc(94px + env(safe-area-inset-bottom)) calc(16px + env(safe-area-inset-left));
13
+ box-sizing: border-box;
8
14
  }
9
15
 
10
- /* Brand name container - 48px from top, allows overflow for animation */
16
+ /* ===== ROW 1: Brand Container (HEY + Business Name) ===== */
11
17
  .slide1-intro__brand-container {
12
18
  display: flex;
13
19
  flex-direction: column;
14
20
  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: 100%;
20
- left: 0;
21
- /* top: clamp(40px, 5.69dvh, 48px); */
21
+ flex-shrink: 0;
22
+ gap: 0; /* No gap between HEY and business name */
22
23
  z-index: 3;
23
- overflow: visible;
24
24
  }
25
25
 
26
- /* Background "HEY" text - first line, with opacity and border */
26
+ /* Background "HEY" text */
27
27
  .slide1-intro__bg-text {
28
28
  font-family: 'Lora', serif;
29
29
  font-style: normal;
30
30
  font-weight: 700;
31
31
  font-size: clamp(40px, 16.41vw, 64px);
32
- /* line-height: 180%; */
33
32
  color: transparent;
34
33
  -webkit-text-stroke: 1.5px var(--primary-purple);
35
34
  opacity: 0.1;
36
- flex: none;
37
- order: 0;
38
- align-self: stretch;
39
- /* Header is ~48px + safe-area, add 6px gap below header */
40
- margin: calc(54px + env(safe-area-inset-top)) calc(16px + env(safe-area-inset-left)) 0 calc(16px + env(safe-area-inset-right));
35
+ margin: 0;
36
+ line-height: 1; /* Tighter line height to reduce gap */
41
37
  }
42
38
 
43
39
  /* Business name - wraps naturally with dynamic font size */
@@ -48,16 +44,9 @@
48
44
  font-size: clamp(28px, 10vw, 56px);
49
45
  line-height: 1.05;
50
46
  color: #4F4CD8;
51
- flex: none;
52
- order: 1;
53
- align-self: stretch;
54
47
  display: flex;
55
48
  flex-wrap: wrap;
56
- padding-left: calc(16px + env(safe-area-inset-left));
57
- padding-right: calc(16px + env(safe-area-inset-right));
58
- box-sizing: border-box;
59
49
  width: 100%;
60
- position: relative;
61
50
  z-index: 4;
62
51
  }
63
52
 
@@ -82,72 +71,40 @@
82
71
  /* Each word on its own line, never breaks mid-word */
83
72
  .slide1-intro__word {
84
73
  display: block;
85
- /* white-space: nowrap; */
86
74
  }
87
75
 
88
- /* Top floating frames - positioned below business name */
89
- .slide1-intro__frames-top {
76
+ /* ===== ROW 2: Frames (Flexible middle section) ===== */
77
+ .slide1-intro__frames {
90
78
  display: flex;
91
79
  flex-direction: row;
92
80
  justify-content: center;
93
81
  align-items: center;
94
- padding: 0;
82
+ flex: 1; /* Take remaining space */
83
+ min-height: 0; /* Allow shrinking */
84
+ padding: 12px 0;
95
85
  gap: clamp(8px, 3.08vw, 12px);
96
- position: absolute;
97
- width: 100%;
98
- left: 0;
99
- top: 30vh;
100
86
  z-index: 2;
87
+ margin: 0 -16px; /* Extend beyond parent padding to screen edges */
88
+ overflow: visible; /* Allow frames to extend beyond - animation reveals them */
101
89
  }
102
90
 
103
- /* Adjust frame position based on business name length */
104
- .slide1-intro:has(.slide1-intro__brand--short) .slide1-intro__frames-top {
105
- top: 26vh;
106
- }
107
-
108
- .slide1-intro:has(.slide1-intro__brand--medium) .slide1-intro__frames-top {
109
- top: 28vh;
110
- }
111
-
112
- .slide1-intro:has(.slide1-intro__brand--long) .slide1-intro__frames-top {
113
- top: 30vh;
114
- }
115
-
116
- .slide1-intro__frames-top .frame-rect {
91
+ .slide1-intro__frames .frame-rect {
117
92
  box-sizing: border-box;
118
93
  width: clamp(140px, 46.15vw, 180px);
119
- /* height: clamp(186px, 28.44dvh, 240px); */
120
- height: 28.4vh;
121
- border: 1px solid #FFFFFF;
122
- flex: none;
94
+ height: 100%;
95
+ max-height: 240px;
96
+ aspect-ratio: 3 / 4;
97
+ border: 1px solid #4F4CD8;
98
+ flex: 0 0 auto;
123
99
  }
124
100
 
125
- /* Headline and subtitle container - 535px from top */
101
+ /* ===== ROW 3: Text Content (Headline + Subtitle + CTA) ===== */
126
102
  .slide1-intro__text {
127
103
  display: flex;
128
104
  flex-direction: column;
129
105
  align-items: flex-start;
130
- /* gap: clamp(16px, 2.61dvh, 22px); */
131
- position: absolute;
132
- width: 100%;
133
- /* left: clamp(16px, 4.1vw, 16px); */
134
- /* left: calc(16px + env(safe-area-inset-top)); */
135
- top: 63.39vh;
106
+ flex-shrink: 0;
136
107
  z-index: 3;
137
- padding: 0 calc(16px + env(safe-area-inset-left)) 0 calc(16px + env(safe-area-inset-right));
138
- }
139
-
140
- /* Text positioning based on word count - align with frame positions */
141
- .slide1-intro--words-1 .slide1-intro__text {
142
- top: 58vh;
143
- }
144
-
145
- .slide1-intro--words-2 .slide1-intro__text {
146
- top: 60vh;
147
- }
148
-
149
- .slide1-intro--words-3 .slide1-intro__text {
150
- top: 63.39vh;
151
108
  }
152
109
 
153
110
  .slide1-intro__headline {
@@ -155,13 +112,10 @@
155
112
  font-family: 'Lora', serif;
156
113
  font-style: normal;
157
114
  font-weight: 600;
158
- font-size: 4.7vh;
115
+ font-size: clamp(24px, 4.7vh, 40px);
159
116
  line-height: 1.25;
160
117
  color: #4F4CD8;
161
- flex: none;
162
- order: 0;
163
- align-self: stretch;
164
- margin: 0;
118
+ margin: 0 0 8px 0;
165
119
  word-wrap: break-word;
166
120
  overflow-wrap: break-word;
167
121
  }
@@ -174,45 +128,63 @@
174
128
  font-size: clamp(14px, 4.1vw, 16px);
175
129
  line-height: 1.5;
176
130
  color: #3734D3;
177
- flex: none;
178
- order: 1;
179
- align-self: stretch;
180
131
  margin: 0;
181
132
  }
182
- /* Bottom floating frames - 743px from top */
183
- .slide1-intro__frames-bottom {
184
- display: none;
133
+
134
+ /* ===== CTA Button (inside text row for new users) ===== */
135
+ .slide1-intro__cta-button {
136
+ width: 100%;
137
+ max-width: 320px;
138
+ margin-top: 16px;
139
+ margin-left: auto;
140
+ margin-right: auto;
141
+ padding: 14px 20px;
142
+ text-align: center;
143
+ background: linear-gradient(90deg, #4F4CD8 0%, #3F3DAD 100%);
144
+ border: none;
145
+ font-family: 'Lora', serif;
146
+ font-weight: 600;
147
+ font-size: clamp(16px, 4.1vw, 18px);
148
+ color: #FFFFFF;
149
+ cursor: pointer;
150
+ z-index: 10;
151
+ box-shadow: 0 4px 12px rgba(63, 61, 173, 0.3);
152
+ transition: all 0.3s ease;
153
+ white-space: nowrap;
185
154
  }
186
155
 
187
- .slide1-intro__frames-bottom .frame-rect {
188
- box-sizing: border-box;
189
- width: clamp(140px, 46.15vw, 180px);
190
- height: clamp(186px, 28.44dvh, 240px);
191
- border: 1px solid #FFFFFF;
192
- flex: none;
156
+ .slide1-intro__cta-button:hover {
157
+ transform: translateY(-2px);
158
+ box-shadow: 0 6px 16px rgba(63, 61, 173, 0.4);
193
159
  }
194
160
 
195
- /* Variant styles */
196
- .slide1-intro--struggling {
197
- background: linear-gradient(180deg, #1B1A3D 0%, #E33D2E 100%);
161
+ .slide1-intro__cta-button:active {
162
+ transform: translateY(0);
163
+ box-shadow: 0 2px 8px rgba(63, 61, 173, 0.3);
198
164
  }
199
165
 
200
- .slide1-intro--new-user {
201
- background: linear-gradient(180deg, #FFFFFF 0%, #3F3DAD 100%);
166
+ /* ===== VARIANT STYLES ===== */
167
+
168
+ /* Thriving variant (default) - no extra styles needed */
169
+
170
+ /* Struggling variant */
171
+ .slide1-intro--struggling {
172
+ background: linear-gradient(180deg, #1B1A3D 0%, #E33D2E 100%);
202
173
  }
203
174
 
204
175
  .slide1-intro--struggling .slide1-intro__subtitle {
205
176
  color: #F6E7DF;
206
177
  }
207
178
 
208
- .slide1-intro--new-user .slide1-intro__subtitle {
209
- color: #16205A;
210
- }
211
-
212
179
  .slide1-intro--struggling .frame-rect {
213
180
  border-color: rgba(255, 255, 255, 0.6);
214
181
  }
215
182
 
183
+ /* New User variant */
184
+ .slide1-intro--new-user {
185
+ background: linear-gradient(180deg, #FFFFFF 0%, #3F3DAD 100%);
186
+ }
187
+
216
188
  .slide1-intro--new-user .slide1-intro__brand {
217
189
  background: linear-gradient(180deg, #4F4CD8 0%, #2A2872 100%);
218
190
  -webkit-background-clip: text;
@@ -244,64 +216,26 @@
244
216
  opacity: 0.08;
245
217
  }
246
218
 
247
- /* Mid-height screens (720-850px) - frames need to be pushed down */
248
- @media (min-height: 720px) and (max-height: 850px) {
249
- .slide1-intro__frames-top {
250
- top: 38vh;
251
- }
252
-
253
- .slide1-intro--words-1 .slide1-intro__frames-top {
254
- top: 32vh;
255
- }
256
-
257
- .slide1-intro--words-2 .slide1-intro__frames-top {
258
- top: 34vh;
259
- }
260
-
261
- .slide1-intro--words-3 .slide1-intro__frames-top {
262
- top: 38vh;
263
- }
264
-
265
- .slide1-intro__text {
266
- top: 68vh;
267
- }
268
-
269
- .slide1-intro--words-1 .slide1-intro__text {
270
- top: 64vh;
271
- }
272
-
273
- .slide1-intro--words-2 .slide1-intro__text {
274
- top: 66vh;
275
- }
276
-
277
- .slide1-intro--words-3 .slide1-intro__text {
278
- top: 68vh;
279
- }
219
+ .slide1-intro--new-user .slide1-intro__cta-button {
220
+ background: linear-gradient(90deg, #E6E5F9 0%, #CDCCF4 100%);
221
+ color: #2A2872;
222
+ box-shadow: 0 4px 12px rgba(230, 229, 249, 0.3);
280
223
  }
281
224
 
282
- /* Media queries for landscape and short screens */
283
- @media (max-height: 720px), (orientation: landscape) {
284
- .slide1-intro__bg-text,
285
- .slide1-intro__brand {
286
- font-size: clamp(32px, 12vw, 48px);
287
- }
288
-
289
- /* Maintain larger sizes for fewer words on short screens */
290
- .slide1-intro__brand--words-1 {
291
- font-size: clamp(48px, 16vw, 72px);
292
- }
293
-
294
- .slide1-intro__brand--words-2 {
295
- font-size: clamp(36px, 12vw, 56px);
296
- }
225
+ .slide1-intro--new-user .slide1-intro__cta-button:hover {
226
+ box-shadow: 0 6px 16px rgba(230, 229, 249, 0.4);
297
227
  }
298
228
 
299
- /* Small/Short screens - handles browser chrome taking space */
229
+ /* ===== RESPONSIVE ADJUSTMENTS ===== */
230
+
231
+ /* Short screens - reduce font sizes */
300
232
  @media (max-height: 700px) {
233
+ .slide1-intro {
234
+ padding-top: calc(48px + env(safe-area-inset-top));
235
+ }
236
+
301
237
  .slide1-intro__bg-text {
302
238
  font-size: clamp(28px, 10vw, 40px);
303
- /* Maintain header clearance: header ~48px + 6px gap */
304
- margin-top: calc(54px + env(safe-area-inset-top));
305
239
  }
306
240
 
307
241
  .slide1-intro__brand {
@@ -309,47 +243,20 @@
309
243
  line-height: 1.0;
310
244
  }
311
245
 
312
- /* Single word - still larger on short screens */
313
- .slide1-intro__brand--words-1 {
314
- font-size: clamp(40px, 14vw, 60px);
315
- }
316
-
317
- .slide1-intro__brand--words-2 {
318
- font-size: clamp(32px, 11vw, 48px);
319
- }
320
-
321
- /* Frame positioning for short screens by word count */
322
- .slide1-intro--words-1 .slide1-intro__frames-top {
323
- top: 30dvh;
324
- }
325
-
326
- .slide1-intro--words-2 .slide1-intro__frames-top {
327
- top: 32dvh;
328
- }
329
-
330
- .slide1-intro--words-3 .slide1-intro__frames-top {
331
- top: 36dvh;
332
- }
333
-
334
- .slide1-intro__frames-top .frame-rect {
335
- height: 30dvh;
336
- }
337
-
338
- /* Text positioning for short screens by word count */
339
- .slide1-intro--words-1 .slide1-intro__text {
340
- top: 64dvh;
246
+ .slide1-intro__brand--short {
247
+ font-size: clamp(36px, 12vw, 56px);
341
248
  }
342
249
 
343
- .slide1-intro--words-2 .slide1-intro__text {
344
- top: 66dvh;
250
+ .slide1-intro__brand--medium {
251
+ font-size: clamp(28px, 10vw, 44px);
345
252
  }
346
253
 
347
- .slide1-intro--words-3 .slide1-intro__text {
348
- top: 70dvh;
254
+ .slide1-intro__brand--long {
255
+ font-size: clamp(20px, 7vw, 32px);
349
256
  }
350
257
 
351
258
  .slide1-intro__headline {
352
- font-size: 4dvh;
259
+ font-size: clamp(20px, 4vh, 32px);
353
260
  line-height: 1.2;
354
261
  }
355
262
 
@@ -357,14 +264,20 @@
357
264
  font-size: clamp(12px, 3.5vw, 14px);
358
265
  line-height: 1.4;
359
266
  }
267
+
268
+ .slide1-intro__frames .frame-rect {
269
+ max-height: 180px;
270
+ }
360
271
  }
361
272
 
362
- /* Extra short screens - more aggressive adjustments */
273
+ /* Extra short screens */
363
274
  @media (max-height: 600px) {
275
+ .slide1-intro {
276
+ padding-top: calc(44px + env(safe-area-inset-top));
277
+ }
278
+
364
279
  .slide1-intro__bg-text {
365
280
  font-size: clamp(24px, 8vw, 32px);
366
- /* Maintain header clearance even on extra short screens */
367
- margin-top: calc(54px + env(safe-area-inset-top));
368
281
  }
369
282
 
370
283
  .slide1-intro__brand {
@@ -372,90 +285,72 @@
372
285
  line-height: 0.95;
373
286
  }
374
287
 
375
- /* Single word - still larger on extra short screens */
376
- .slide1-intro__brand--words-1 {
377
- font-size: clamp(32px, 12vw, 48px);
288
+ .slide1-intro__brand--short {
289
+ font-size: clamp(28px, 10vw, 44px);
378
290
  }
379
291
 
380
- .slide1-intro__brand--words-2 {
381
- font-size: clamp(26px, 10vw, 40px);
292
+ .slide1-intro__brand--medium {
293
+ font-size: clamp(24px, 9vw, 36px);
382
294
  }
383
295
 
384
- /* Frame positioning for extra short screens by word count */
385
- .slide1-intro--words-1 .slide1-intro__frames-top {
386
- top: 26dvh;
296
+ .slide1-intro__headline {
297
+ font-size: clamp(18px, 3.5vh, 28px);
387
298
  }
388
299
 
389
- .slide1-intro--words-2 .slide1-intro__frames-top {
390
- top: 28dvh;
300
+ .slide1-intro__frames {
301
+ padding: 8px 0;
302
+ }
303
+
304
+ .slide1-intro__frames .frame-rect {
305
+ max-height: 140px;
306
+ }
307
+ }
308
+
309
+ /* Landscape orientation */
310
+ @media (orientation: landscape) and (max-height: 500px) {
311
+ .slide1-intro {
312
+ flex-direction: row;
313
+ flex-wrap: wrap;
314
+ padding-top: calc(40px + env(safe-area-inset-top));
391
315
  }
392
316
 
393
- .slide1-intro--words-3 .slide1-intro__frames-top {
394
- top: 30dvh;
317
+ .slide1-intro__brand-container {
318
+ width: 50%;
395
319
  }
396
320
 
397
- .slide1-intro__frames-top .frame-rect {
398
- height: 24dvh;
321
+ .slide1-intro__frames {
322
+ flex-direction: column;
323
+ gap: 8px;
324
+ width: 50%;
325
+ flex: none;
326
+ margin: 0;
327
+ padding: 0;
399
328
  }
400
329
 
401
- /* Text positioning for extra short screens by word count */
402
- .slide1-intro--words-1 .slide1-intro__text {
403
- top: 54dvh;
330
+ .slide1-intro__text {
331
+ width: 50%;
404
332
  }
405
333
 
406
- .slide1-intro--words-2 .slide1-intro__text {
407
- top: 56dvh;
334
+ .slide1-intro__frames .frame-rect {
335
+ width: auto;
336
+ height: clamp(60px, 25vh, 100px);
337
+ max-height: none;
338
+ aspect-ratio: 4 / 3;
408
339
  }
409
340
 
410
- .slide1-intro--words-3 .slide1-intro__text {
411
- top: 58dvh;
341
+ .slide1-intro__bg-text {
342
+ font-size: clamp(20px, 6vw, 28px);
343
+ }
344
+
345
+ .slide1-intro__brand {
346
+ font-size: clamp(16px, 5vw, 24px);
412
347
  }
413
348
 
414
349
  .slide1-intro__headline {
415
- font-size: 3.5dvh;
350
+ font-size: clamp(14px, 3vh, 20px);
351
+ }
352
+
353
+ .slide1-intro__subtitle {
354
+ font-size: clamp(10px, 2.5vw, 12px);
416
355
  }
417
- }
418
-
419
- /* New User CTA Button */
420
- .slide1-intro__cta-button {
421
- position: absolute;
422
- left: 0;
423
- right: 0;
424
- bottom: calc(32px + env(safe-area-inset-bottom));
425
- margin: 0 auto;
426
- width: min(320px, calc(100% - 32px));
427
- padding: 14px 20px;
428
- text-align: center;
429
- background: linear-gradient(90deg, #4F4CD8 0%, #3F3DAD 100%);
430
- border: none;
431
- /* border-radius: 12px; */
432
- font-family: 'Lora', serif;
433
- font-weight: 600;
434
- font-size: clamp(16px, 4.1vw, 18px);
435
- color: #FFFFFF;
436
- cursor: pointer;
437
- z-index: 10;
438
- box-shadow: 0 4px 12px rgba(63, 61, 173, 0.3);
439
- transition: all 0.3s ease;
440
- white-space: nowrap;
441
- }
442
-
443
- .slide1-intro__cta-button:hover {
444
- transform: translateX(-50%) translateY(-2px);
445
- box-shadow: 0 6px 16px rgba(63, 61, 173, 0.4);
446
- }
447
-
448
- .slide1-intro__cta-button:active {
449
- transform: translateX(-50%) translateY(0);
450
- box-shadow: 0 2px 8px rgba(63, 61, 173, 0.3);
451
- }
452
-
453
- .slide1-intro--new-user .slide1-intro__cta-button {
454
- background: linear-gradient(90deg, #E6E5F9 0%, #CDCCF4 100%);
455
- color: #2A2872;
456
- box-shadow: 0 4px 12px rgba(230, 229, 249, 0.3);
457
- }
458
-
459
- .slide1-intro--new-user .slide1-intro__cta-button:hover {
460
- box-shadow: 0 6px 16px rgba(230, 229, 249, 0.4);
461
356
  }
@@ -49,7 +49,7 @@ function Slide1Intro({ businessName, businessCategory, introHeadline, introSubti
49
49
  return [];
50
50
  }
51
51
 
52
- return Array.from({ length: 6 }, () =>
52
+ return Array.from({ length: 3 }, () =>
53
53
  frameImagePool[Math.floor(Math.random() * frameImagePool.length)]
54
54
  );
55
55
  }, [frameImagePool]);
@@ -73,7 +73,7 @@ function Slide1Intro({ businessName, businessCategory, introHeadline, introSubti
73
73
 
74
74
  return (
75
75
  <div className={slideClass}>
76
- {/* Brand name container with HEY text and business name */}
76
+ {/* ROW 1: Brand name container with HEY text and business name */}
77
77
  <div className="slide1-intro__brand-container">
78
78
  {/* Background "HEY" text */}
79
79
  <div className="slide1-intro__bg-text">HEY</div>
@@ -126,18 +126,18 @@ function Slide1Intro({ businessName, businessCategory, introHeadline, introSubti
126
126
  </div>
127
127
  </div>
128
128
 
129
- {/* Top floating frames (slow horizontal drift) */}
129
+ {/* ROW 2: Floating frames (slow horizontal drift) */}
130
130
  <motion.div
131
- className="slide1-intro__frames-top"
131
+ className="slide1-intro__frames"
132
132
  animate={{ x: [-30, 30] }}
133
133
  transition={{ duration: 15, repeat: Infinity, repeatType: 'reverse', ease: 'linear' }}
134
134
  >
135
135
  {Array.from({ length: 3 }).map((_, index) => (
136
- <div key={`top-rect-${index}`} className="frame-rect" style={getFrameStyle(index)} />
136
+ <div key={`frame-rect-${index}`} className="frame-rect" style={getFrameStyle(index)} />
137
137
  ))}
138
138
  </motion.div>
139
139
 
140
- {/* Headline and subtitle */}
140
+ {/* ROW 3: Headline, subtitle, and CTA */}
141
141
  <motion.div
142
142
  className="slide1-intro__text"
143
143
  variants={delayedFadeIn(0.5)}
@@ -148,31 +148,20 @@ function Slide1Intro({ businessName, businessCategory, introHeadline, introSubti
148
148
  {headline}
149
149
  </h2>
150
150
  <p className="slide1-intro__subtitle">{subtitle}</p>
151
+
152
+ {/* New User CTA Button - inside text row */}
153
+ {isNewUser && (
154
+ <motion.button
155
+ className="slide1-intro__cta-button"
156
+ onClick={handleContinue}
157
+ initial={{ y: 20, opacity: 0 }}
158
+ animate={{ y: 0, opacity: 1 }}
159
+ transition={{ duration: 0.6, delay: 1.5, ease: 'easeOut' }}
160
+ >
161
+ Continue on Huxxle
162
+ </motion.button>
163
+ )}
151
164
  </motion.div>
152
-
153
- {/* Bottom floating frames (slow horizontal drift) */}
154
- <motion.div
155
- className="slide1-intro__frames-bottom"
156
- animate={{ x: [-30, 30] }}
157
- transition={{ duration: 15, repeat: Infinity, repeatType: 'reverse', ease: 'linear' }}
158
- >
159
- {Array.from({ length: 3 }).map((_, index) => (
160
- <div key={`bottom-rect-${index}`} className="frame-rect" style={getFrameStyle(index + 3)} />
161
- ))}
162
- </motion.div>
163
-
164
- {/* New User CTA Button - Animated from bottom */}
165
- {isNewUser && (
166
- <motion.button
167
- className="slide1-intro__cta-button"
168
- onClick={handleContinue}
169
- initial={{ y: 100, opacity: 0 }}
170
- animate={{ y: 0, opacity: 1 }}
171
- transition={{ duration: 0.8, delay: 2.0, ease: 'easeOut' }}
172
- >
173
- Continue on Huxxle
174
- </motion.button>
175
- )}
176
165
  </div>
177
166
  );
178
167
  }
@@ -41,7 +41,7 @@
41
41
  width: clamp(140px, 46.15vw, 180px);
42
42
  height: 28.4vh;
43
43
  /* aspect-ratio: 180 / 240; */
44
- border: 1px solid #FFFFFF;
44
+ border: 1px solid #4F4CD8;
45
45
  flex: none;
46
46
  /* flex-grow: 0; */
47
47
  }
@@ -72,7 +72,7 @@
72
72
  width: clamp(140px, 46.15vw, 180px);
73
73
  height: 28.4vh;
74
74
  box-sizing: border-box;
75
- border: 1px solid #ffffff;
75
+ border: 1px solid #4F4CD8;
76
76
  flex: none;
77
77
  }
78
78