@katajere/recap 1.0.13 → 2.0.0

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 (102) hide show
  1. package/dist/App.css +32 -12
  2. package/dist/LoginScreen.css +22 -21
  3. package/dist/OtpScreen.css +20 -17
  4. package/dist/RecapStory.css +148 -0
  5. package/dist/RecapStory.d.ts +2 -2
  6. package/dist/RecapStory.d.ts.map +1 -1
  7. package/dist/RecapStory.js +169 -81
  8. package/dist/StoryProgress.css +3 -3
  9. package/dist/StoryProgress.d.ts +3 -2
  10. package/dist/StoryProgress.d.ts.map +1 -1
  11. package/dist/StoryProgress.js +66 -12
  12. package/dist/assets/huxxle-login-blue-logo.svg +14 -0
  13. package/dist/assets/noisy-background.png +0 -0
  14. package/dist/assets/noisy-background.svg +23 -0
  15. package/dist/assets/search-icon.svg +4 -0
  16. package/dist/assets/share-button.svg +5 -0
  17. package/dist/assets/web-icon.png +0 -0
  18. package/dist/assets/web-icon.svg +14 -0
  19. package/dist/components/Header.css +12 -1
  20. package/dist/components/Header.js +2 -2
  21. package/dist/data/mock.d.ts +1 -1
  22. package/dist/data/mock.d.ts.map +1 -1
  23. package/dist/data/mock.js +36 -23
  24. package/dist/index.d.ts +0 -1
  25. package/dist/index.d.ts.map +1 -1
  26. package/dist/index.js +0 -1
  27. package/dist/slides/Slide10Final.css +73 -35
  28. package/dist/slides/Slide1Intro.css +204 -56
  29. package/dist/slides/Slide1Intro.d.ts +2 -1
  30. package/dist/slides/Slide1Intro.d.ts.map +1 -1
  31. package/dist/slides/Slide1Intro.js +41 -47
  32. package/dist/slides/Slide2Days.css +121 -34
  33. package/dist/slides/Slide2Days.d.ts +2 -1
  34. package/dist/slides/Slide2Days.d.ts.map +1 -1
  35. package/dist/slides/Slide2Days.js +45 -4
  36. package/dist/slides/Slide3Revenue.css +80 -38
  37. package/dist/slides/Slide3Revenue.d.ts.map +1 -1
  38. package/dist/slides/Slide3Revenue.js +31 -3
  39. package/dist/slides/Slide4Orders.css +93 -34
  40. package/dist/slides/Slide4Orders.d.ts +2 -1
  41. package/dist/slides/Slide4Orders.d.ts.map +1 -1
  42. package/dist/slides/Slide4Orders.js +45 -3
  43. package/dist/slides/Slide5Buyers.css +124 -67
  44. package/dist/slides/Slide5Buyers.d.ts +2 -1
  45. package/dist/slides/Slide5Buyers.d.ts.map +1 -1
  46. package/dist/slides/Slide5Buyers.js +43 -3
  47. package/dist/slides/Slide6Customer.css +294 -52
  48. package/dist/slides/Slide6Customer.d.ts +6 -3
  49. package/dist/slides/Slide6Customer.d.ts.map +1 -1
  50. package/dist/slides/Slide6Customer.js +25 -4
  51. package/dist/slides/Slide7Products.css +8 -7
  52. package/dist/slides/Slide7Products.js +3 -3
  53. package/dist/slides/Slide8Months.css +6 -6
  54. package/dist/slides/Slide9Year.css +4 -2
  55. package/dist/slides/Slide9Year.d.ts +2 -1
  56. package/dist/slides/Slide9Year.d.ts.map +1 -1
  57. package/dist/slides/Slide9Year.js +23 -2
  58. package/dist/types.d.ts +7 -0
  59. package/dist/types.d.ts.map +1 -1
  60. package/dist/utils/slideScreenshot.d.ts +27 -0
  61. package/dist/utils/slideScreenshot.d.ts.map +1 -0
  62. package/dist/utils/slideScreenshot.js +274 -0
  63. package/package.json +2 -1
  64. package/src/App.css +32 -12
  65. package/src/LoginScreen.css +22 -21
  66. package/src/LoginScreen.tsx +1 -1
  67. package/src/OtpScreen.css +20 -17
  68. package/src/OtpScreen.tsx +1 -1
  69. package/src/RecapStory.css +148 -0
  70. package/src/RecapStory.tsx +249 -118
  71. package/src/StoryProgress.css +3 -3
  72. package/src/StoryProgress.tsx +96 -21
  73. package/src/components/Header.css +12 -1
  74. package/src/components/Header.tsx +2 -2
  75. package/src/data/mock.ts +44 -24
  76. package/src/index.ts +0 -1
  77. package/src/slides/Slide10Final.css +73 -35
  78. package/src/slides/Slide1Intro.css +204 -56
  79. package/src/slides/Slide1Intro.tsx +89 -81
  80. package/src/slides/Slide2Days.css +121 -34
  81. package/src/slides/Slide2Days.tsx +67 -19
  82. package/src/slides/Slide3Revenue.css +80 -38
  83. package/src/slides/Slide3Revenue.tsx +43 -6
  84. package/src/slides/Slide4Orders.css +93 -34
  85. package/src/slides/Slide4Orders.tsx +71 -10
  86. package/src/slides/Slide5Buyers.css +124 -67
  87. package/src/slides/Slide5Buyers.tsx +97 -38
  88. package/src/slides/Slide6Customer.css +294 -52
  89. package/src/slides/Slide6Customer.tsx +68 -10
  90. package/src/slides/Slide7Products.css +8 -7
  91. package/src/slides/Slide7Products.tsx +3 -3
  92. package/src/slides/Slide8Months.css +6 -6
  93. package/src/slides/Slide9Year.css +4 -2
  94. package/src/slides/Slide9Year.tsx +35 -7
  95. package/src/types.ts +7 -0
  96. package/src/utils/slideScreenshot.ts +324 -0
  97. package/dist/FloatingFrames.css +0 -55
  98. package/dist/FloatingFrames.d.ts +0 -11
  99. package/dist/FloatingFrames.d.ts.map +0 -1
  100. package/dist/FloatingFrames.js +0 -12
  101. package/src/FloatingFrames.css +0 -55
  102. package/src/FloatingFrames.tsx +0 -27
package/dist/data/mock.js CHANGED
@@ -1,52 +1,65 @@
1
- import { BUSINESS_CATEGORIES } from '../types';
1
+ import { BUSINESS_CATEGORIES } from "../types";
2
2
  /**
3
3
  * Mock data for the recap experience
4
4
  * This will be replaced with real API data later
5
5
  */
6
6
  export const mockRecapData = {
7
- businessName: 'RICHYO ENTERPRISES',
7
+ businessName: "RICHYO ENTERPRISES",
8
8
  days: 259,
9
9
  streak: 47,
10
- revenue: 22594,
10
+ revenue: 22594000,
11
11
  orders: 487,
12
12
  firstTimeBuyers: 234,
13
13
  repeatBuyers: 65,
14
- topCustomerName: 'Micheal Scoffy',
15
- currency: 'GBP',
14
+ topCustomerName: "Micheal Scoffy",
15
+ currency: "NGN",
16
16
  year: 2025,
17
- introHeadline: 'You Be New Face OOO....',
18
- introSubtitle: 'Come back for 6 days time, we dey for you 😉',
17
+ introHeadline: "This Year You Carry Your Hustle For Head",
18
+ introSubtitle: "Make we look the numbers 🔥",
19
19
  topProducts: [
20
20
  {
21
- name: 'Vanilla Yoghurt',
21
+ name: "Vanilla Yoghurt",
22
22
  units: 45,
23
- productImage: 'https://images.unsplash.com/photo-1447078806655-40579c2520d6?auto=format&fit=crop&w=400&q=80'
23
+ productImage: "https://images.unsplash.com/photo-1447078806655-40579c2520d6?auto=format&fit=crop&w=400&q=80",
24
24
  },
25
25
  {
26
- name: 'Cocoa Milkshake',
26
+ name: "Cocoa Milkshake",
27
27
  units: 38,
28
- productImage: 'https://images.unsplash.com/photo-1504674900247-0877df9cc836?auto=format&fit=crop&w=400&q=80'
28
+ productImage: "https://images.unsplash.com/photo-1504674900247-0877df9cc836?auto=format&fit=crop&w=400&q=80",
29
29
  },
30
30
  {
31
- name: 'Spicy Crunch',
31
+ name: "Spicy Crunch",
32
32
  units: 33,
33
- productImage: 'https://images.unsplash.com/photo-1447078806655-40579c2520d6?auto=format&fit=crop&w=400&q=80'
33
+ productImage: "https://images.unsplash.com/photo-1447078806655-40579c2520d6?auto=format&fit=crop&w=400&q=80",
34
34
  },
35
35
  {
36
- name: 'Fresh Plantain Chips',
36
+ name: "Fresh Plantain Chips",
37
37
  units: 29,
38
- productImage: 'https://images.unsplash.com/photo-1506084868230-bb9d95c24759?auto=format&fit=crop&w=400&q=80'
38
+ productImage: "https://images.unsplash.com/photo-1506084868230-bb9d95c24759?auto=format&fit=crop&w=400&q=80",
39
39
  },
40
40
  {
41
- name: 'Mango Juice',
41
+ name: "Mango Juice",
42
42
  units: 27,
43
- productImage: 'https://images.unsplash.com/photo-1447078806655-40579c2520d6?auto=format&fit=crop&w=400&q=80'
44
- }
43
+ productImage: "https://images.unsplash.com/photo-1447078806655-40579c2520d6?auto=format&fit=crop&w=400&q=80",
44
+ },
45
+ ],
46
+ productImages: [
47
+ "https://images.unsplash.com/photo-1447078806655-40579c2520d6?auto=format&fit=crop&w=400&q=80",
48
+ "https://images.unsplash.com/photo-1504674900247-0877df9cc836?auto=format&fit=crop&w=400&q=80",
49
+ "https://images.unsplash.com/photo-1506084868230-bb9d95c24759?auto=format&fit=crop&w=400&q=80",
50
+ "https://images.unsplash.com/photo-1447078806655-40579c2520d6?auto=format&fit=crop&w=400&q=80",
51
+ "https://images.unsplash.com/photo-1498837167922-ddd27525d352?auto=format&fit=crop&w=400&q=80",
52
+ "https://images.unsplash.com/photo-1470337458703-46ad1756a187?auto=format&fit=crop&w=400&q=80",
45
53
  ],
46
- businessCategory: BUSINESS_CATEGORIES.NEW_USER,
47
- busiestMonth: 'Oct',
48
- videoUrl: 'https://katajereassets.blob.core.windows.net/sp-list-assets/mocksite_walkthrough_a75c98dd-47ef-4f2c-a97c-ab2b3c3c97a5_2315a6b2d671d142f34e08cad43929c5.mp4',
49
- downloadUrl: 'https://api.huxxle.com/api/download?fileUrl=https://katajereassets.blob.core.windows.net/sp-list-assets/mocksite_walkthrough_a75c98dd-47ef-4f2c-a97c-ab2b3c3c97a5_2315a6b2d671d142f34e08cad43929c5.mp4'
54
+ businessCategory: BUSINESS_CATEGORIES.THRIVING,
55
+ busiestMonth: "Oct",
56
+ videoUrl: "https://katajereassets.blob.core.windows.net/sp-list-assets/recap_4e5f6a7b-8c9d-0e1f-2a3b-4c5d6e7f8a9b_b5aac4492a8b453fbdbdbc8ed96f04f0.mp4",
57
+ downloadUrl: "https://api.huxxle.com/api/download?fileUrl=https://katajereassets.blob.core.windows.net/sp-list-assets/recap_4e5f6a7b-8c9d-0e1f-2a3b-4c5d6e7f8a9b_b5aac4492a8b453fbdbdbc8ed96f04f0.mp4",
58
+ isVideo: false,
59
+ websiteLink: "https://vendor.huxxle.com",
60
+ websiteVisits: 123400,
61
+ mostViewedProduct: "Vanilla Yoghurt",
62
+ mostViewedProductCount: 567,
50
63
  };
51
64
  // Slide durations in seconds - each slide can have its own timing
52
65
  export const slideDurations = {
@@ -59,5 +72,5 @@ export const slideDurations = {
59
72
  products: 8,
60
73
  months: 8,
61
74
  year: 8,
62
- final: 8
75
+ final: 8,
63
76
  };
package/dist/index.d.ts CHANGED
@@ -10,7 +10,6 @@
10
10
  export { default as RecapApp } from './RecapApp';
11
11
  export { default as RecapStory } from './RecapStory';
12
12
  export { default as StoryProgress } from './StoryProgress';
13
- export { default as FloatingFrames } from './FloatingFrames';
14
13
  export { default as Header } from './components/Header';
15
14
  export { default as Slide1Intro } from './slides/Slide1Intro';
16
15
  export { default as Slide2Days } from './slides/Slide2Days';
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAMH,OAAO,EAAE,OAAO,IAAI,QAAQ,EAAE,MAAM,YAAY,CAAC;AACjD,OAAO,EAAE,OAAO,IAAI,UAAU,EAAE,MAAM,cAAc,CAAC;AACrD,OAAO,EAAE,OAAO,IAAI,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAC3D,OAAO,EAAE,OAAO,IAAI,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAC7D,OAAO,EAAE,OAAO,IAAI,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAMxD,OAAO,EAAE,OAAO,IAAI,WAAW,EAAE,MAAM,sBAAsB,CAAC;AAC9D,OAAO,EAAE,OAAO,IAAI,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAC5D,OAAO,EAAE,OAAO,IAAI,aAAa,EAAE,MAAM,wBAAwB,CAAC;AAClE,OAAO,EAAE,OAAO,IAAI,YAAY,EAAE,MAAM,uBAAuB,CAAC;AAChE,OAAO,EAAE,OAAO,IAAI,YAAY,EAAE,MAAM,uBAAuB,CAAC;AAChE,OAAO,EAAE,OAAO,IAAI,cAAc,EAAE,MAAM,yBAAyB,CAAC;AACpE,OAAO,EAAE,OAAO,IAAI,cAAc,EAAE,MAAM,yBAAyB,CAAC;AACpE,OAAO,EAAE,OAAO,IAAI,YAAY,EAAE,MAAM,uBAAuB,CAAC;AAChE,OAAO,EAAE,OAAO,IAAI,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAC5D,OAAO,EAAE,OAAO,IAAI,YAAY,EAAE,MAAM,uBAAuB,CAAC;AAMhE,YAAY,EACV,SAAS,EACT,cAAc,EACd,gBAAgB,EAChB,QAAQ,GACT,MAAM,SAAS,CAAC;AAEjB,OAAO,EACL,mBAAmB,EACnB,UAAU,GACX,MAAM,SAAS,CAAC;AAMjB,OAAO,EACL,cAAc,EACd,YAAY,GACb,MAAM,gBAAgB,CAAC;AAExB,OAAO,EACL,cAAc,EACd,aAAa,GACd,MAAM,aAAa,CAAC;AAMrB,eAAO,MAAM,OAAO,UAAU,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAMH,OAAO,EAAE,OAAO,IAAI,QAAQ,EAAE,MAAM,YAAY,CAAC;AACjD,OAAO,EAAE,OAAO,IAAI,UAAU,EAAE,MAAM,cAAc,CAAC;AACrD,OAAO,EAAE,OAAO,IAAI,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAC3D,OAAO,EAAE,OAAO,IAAI,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAMxD,OAAO,EAAE,OAAO,IAAI,WAAW,EAAE,MAAM,sBAAsB,CAAC;AAC9D,OAAO,EAAE,OAAO,IAAI,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAC5D,OAAO,EAAE,OAAO,IAAI,aAAa,EAAE,MAAM,wBAAwB,CAAC;AAClE,OAAO,EAAE,OAAO,IAAI,YAAY,EAAE,MAAM,uBAAuB,CAAC;AAChE,OAAO,EAAE,OAAO,IAAI,YAAY,EAAE,MAAM,uBAAuB,CAAC;AAChE,OAAO,EAAE,OAAO,IAAI,cAAc,EAAE,MAAM,yBAAyB,CAAC;AACpE,OAAO,EAAE,OAAO,IAAI,cAAc,EAAE,MAAM,yBAAyB,CAAC;AACpE,OAAO,EAAE,OAAO,IAAI,YAAY,EAAE,MAAM,uBAAuB,CAAC;AAChE,OAAO,EAAE,OAAO,IAAI,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAC5D,OAAO,EAAE,OAAO,IAAI,YAAY,EAAE,MAAM,uBAAuB,CAAC;AAMhE,YAAY,EACV,SAAS,EACT,cAAc,EACd,gBAAgB,EAChB,QAAQ,GACT,MAAM,SAAS,CAAC;AAEjB,OAAO,EACL,mBAAmB,EACnB,UAAU,GACX,MAAM,SAAS,CAAC;AAMjB,OAAO,EACL,cAAc,EACd,YAAY,GACb,MAAM,gBAAgB,CAAC;AAExB,OAAO,EACL,cAAc,EACd,aAAa,GACd,MAAM,aAAa,CAAC;AAMrB,eAAO,MAAM,OAAO,UAAU,CAAC"}
package/dist/index.js CHANGED
@@ -13,7 +13,6 @@
13
13
  export { default as RecapApp } from './RecapApp';
14
14
  export { default as RecapStory } from './RecapStory';
15
15
  export { default as StoryProgress } from './StoryProgress';
16
- export { default as FloatingFrames } from './FloatingFrames';
17
16
  export { default as Header } from './components/Header';
18
17
  // ============================================================================
19
18
  // INDIVIDUAL SLIDES - For custom layouts or granular control
@@ -2,34 +2,31 @@
2
2
  position: relative;
3
3
  width: 100%;
4
4
  height: 100%;
5
- color: #FCFCFC;
5
+ color: var(--primary-blue);
6
6
  display: flex;
7
7
  flex-direction: column;
8
8
  align-items: center;
9
9
  justify-content: center;
10
- gap: 3.79%;
11
- padding-top: 41.65vh;
12
- margin-bottom: 2.84vh;
13
- }
14
-
15
- @media (max-height: 720px), (orientation: landscape) {
16
- .slide10-final {
17
- gap: clamp(16px, 2vh, 32px);
18
- }
19
-
20
- .slide10-final__button-group {
21
- margin-top: clamp(32px, 5vh, 80px);
22
- }
10
+ gap: clamp(12px, 3vh, 32px);
11
+ padding: clamp(60px, 15vh, 120px) 4.1% clamp(24px, 4vh, 48px);
12
+ box-sizing: border-box;
13
+ overflow-y: auto;
23
14
  }
24
15
 
25
16
  .slide10-final__badge {
26
17
  box-sizing: border-box;
27
- border: 0.5px solid #FCFCFC;
28
- padding: 0.95% 4.1%;
18
+ /* Use 1px minimum for reliable border rendering on all devices */
19
+ border: 1px solid var(--primary-blue);
20
+ padding: 8px 16px;
29
21
  font-family: 'Lora', serif;
30
22
  font-size: clamp(10px, 3.08vw, 12px);
31
23
  font-weight: 600;
32
24
  letter-spacing: 0.08em;
25
+ background: var(--bg-gradient);
26
+ -webkit-background-clip: text;
27
+ -webkit-text-fill-color: transparent;
28
+ background-clip: text;
29
+ flex-shrink: 0;
33
30
  }
34
31
 
35
32
  .slide10-final__title {
@@ -41,10 +38,11 @@
41
38
  text-align: center;
42
39
  width: 92.31%;
43
40
  max-width: 360px;
44
- background: linear-gradient(90deg, #FFFFFF 0%, #FFCC80 100%);
41
+ background: var(--bg-gradient);
45
42
  -webkit-background-clip: text;
46
43
  -webkit-text-fill-color: transparent;
47
44
  background-clip: text;
45
+ flex-shrink: 0;
48
46
  }
49
47
 
50
48
  .slide10-final__button-group {
@@ -52,36 +50,76 @@
52
50
  max-width: 358px;
53
51
  display: flex;
54
52
  flex-direction: column;
55
- gap: 8px;
56
- margin-top: 14.16vh;
57
- padding-bottom: 2.84vh;
58
- margin-bottom: 2.84vh;
53
+ gap: clamp(6px, 1.5vh, 10px);
54
+ margin-top: clamp(24px, 6vh, 80px);
55
+ padding-bottom: calc(24px + env(safe-area-inset-bottom));
56
+ flex-shrink: 0;
59
57
  }
60
58
 
61
59
  .slide10-final__button {
62
- border: 1px solid #FCFCFC;
60
+ border: 1px solid var(--primary-blue);
63
61
  background: transparent;
64
- color: #FCFCFC;
62
+ color: var(--text-primary);
65
63
  font-family: 'Lora', serif;
66
64
  font-weight: 600;
67
65
  font-size: clamp(12px, 4.1vw, 16px);
68
- padding: 1.42% 4.1%;
69
- min-height: 40px;
66
+ padding: clamp(10px, 2vh, 14px) 16px;
67
+ min-height: clamp(36px, 6vh, 44px);
70
68
  display: flex;
71
69
  justify-content: center;
72
70
  align-items: center;
73
71
  cursor: pointer;
72
+ flex-shrink: 0;
74
73
  }
75
74
 
76
- /* .slide10-final__button--replay {
77
- width: 122px;
78
- align-self: flex-start;
79
- padding: 8px 16px;
80
- font-size: 14px;
81
- } */
75
+ /* Responsive adjustments for shorter screens */
76
+ @media (max-height: 700px) {
77
+ .slide10-final {
78
+ padding-top: clamp(48px, 10vh, 80px);
79
+ gap: clamp(8px, 2vh, 16px);
80
+ }
81
+
82
+ .slide10-final__button-group {
83
+ margin-top: clamp(16px, 4vh, 40px);
84
+ gap: clamp(4px, 1vh, 8px);
85
+ }
86
+
87
+ .slide10-final__button {
88
+ min-height: clamp(32px, 5vh, 40px);
89
+ padding: clamp(8px, 1.5vh, 12px) 16px;
90
+ }
91
+ }
92
+
93
+ @media (max-height: 600px) {
94
+ .slide10-final {
95
+ padding-top: clamp(40px, 8vh, 60px);
96
+ gap: clamp(6px, 1.5vh, 12px);
97
+ }
98
+
99
+ .slide10-final__button-group {
100
+ margin-top: clamp(12px, 3vh, 24px);
101
+ }
102
+
103
+ .slide10-final__title {
104
+ font-size: clamp(20px, 8vw, 32px);
105
+ }
106
+ }
107
+
108
+ /* Landscape orientation */
109
+ @media (orientation: landscape) {
110
+ .slide10-final {
111
+ padding-top: clamp(32px, 8vh, 60px);
112
+ gap: clamp(8px, 2vh, 16px);
113
+ }
114
+
115
+ .slide10-final__button-group {
116
+ margin-top: clamp(16px, 4vh, 40px);
117
+ }
118
+ }
82
119
 
120
+ /* Fallback and manual link styles */
83
121
  .slide10-final__fallback {
84
- margin-top: 1.42%;
122
+ margin-top: clamp(8px, 1.5vh, 12px);
85
123
  font-size: clamp(12px, 3.59vw, 14px);
86
124
  color: #FFCC80;
87
125
  text-align: center;
@@ -89,13 +127,13 @@
89
127
  }
90
128
 
91
129
  .slide10-final__manual-link {
92
- margin-top: 0.95%;
130
+ margin-top: clamp(6px, 1vh, 10px);
93
131
  border: 1px dashed #FFCC80;
94
132
  background: transparent;
95
133
  color: #FFCC80;
96
134
  font-weight: 600;
97
- padding: 1.19% 4.1%;
98
- min-height: 36px;
135
+ padding: clamp(8px, 1.5vh, 12px) 16px;
136
+ min-height: clamp(32px, 5vh, 36px);
99
137
  cursor: pointer;
100
138
  font-size: clamp(12px, 3.59vw, 14px);
101
139
  }
@@ -14,7 +14,7 @@
14
14
  align-items: flex-start;
15
15
  padding: 0;
16
16
  /* gap: clamp(12px, 1.9dvh, 16px); */
17
- gap: calc(12px + env(safe-area-inset-top));
17
+ /* gap: calc(12px + env(safe-area-inset-top)); */
18
18
  position: absolute;
19
19
  /* width: clamp(300px, 91.79vw, 358px);
20
20
  left: clamp(16px, 4.1vw, 16px);
@@ -23,43 +23,67 @@
23
23
  overflow: visible;
24
24
  }
25
25
 
26
- /* Background "HEY" text - first line, with opacity */
26
+ /* Background "HEY" text - first line, with opacity and border */
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: 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;
32
+ /* line-height: 180%; */
33
+ color: transparent;
34
+ -webkit-text-stroke: 1.5px var(--primary-purple);
37
35
  opacity: 0.1;
38
36
  flex: none;
39
37
  order: 0;
40
38
  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));
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));
42
41
  }
43
42
 
44
- /* Business name - single line, animated horizontally */
43
+ /* Business name - wraps naturally with dynamic font size */
45
44
  .slide1-intro__brand {
46
45
  font-family: 'Lora', serif;
47
46
  font-style: normal;
48
47
  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;
48
+ font-size: clamp(28px, 10vw, 56px);
49
+ line-height: 1.05;
50
+ color: #4F4CD8;
55
51
  flex: none;
56
52
  order: 1;
57
53
  align-self: stretch;
54
+ display: flex;
55
+ flex-wrap: wrap;
56
+ margin-left: calc(16px + env(safe-area-inset-left));
57
+ margin-right: calc(16px + env(safe-area-inset-right));
58
+ max-width: calc(100% - calc(16px + env(safe-area-inset-left)) - calc(16px + env(safe-area-inset-right)));
59
+ position: relative;
60
+ z-index: 4;
61
+ }
62
+
63
+ /* Single word business name - larger font */
64
+ .slide1-intro__brand--words-1 {
65
+ font-size: clamp(56px, 20vw, 96px);
66
+ line-height: 1;
67
+ }
68
+
69
+ /* Two word business name - medium font */
70
+ .slide1-intro__brand--words-2 {
71
+ font-size: clamp(44px, 14vw, 72px);
72
+ line-height: 1;
73
+ }
74
+
75
+ /* Three+ word business name - smaller font */
76
+ .slide1-intro__brand--words-3 {
77
+ font-size: clamp(28px, 10vw, 56px);
78
+ }
79
+
80
+ /* Each word - inline with natural flow, wraps when needed */
81
+ .slide1-intro__word {
82
+ display: inline;
58
83
  white-space: nowrap;
59
- margin-left: calc(16px + env(safe-area-inset-top));
60
84
  }
61
85
 
62
- /* Top floating frames - 255px from top */
86
+ /* Top floating frames - positioned to avoid business name */
63
87
  .slide1-intro__frames-top {
64
88
  display: flex;
65
89
  flex-direction: row;
@@ -70,11 +94,26 @@
70
94
  position: absolute;
71
95
  width: 100%;
72
96
  left: 0;
73
- /* top: clamp(180px, 30.21dvh, 255px); */
74
- top: 30.2vh;
97
+ top: 32vh;
75
98
  z-index: 2;
76
99
  }
77
100
 
101
+ /* Dynamic frame positioning based on word count */
102
+ /* 1 word: frames start closer to name since name is on single line */
103
+ .slide1-intro--words-1 .slide1-intro__frames-top {
104
+ top: 26vh;
105
+ }
106
+
107
+ /* 2 words: frames start slightly closer */
108
+ .slide1-intro--words-2 .slide1-intro__frames-top {
109
+ top: 28vh;
110
+ }
111
+
112
+ /* 3+ words: default position */
113
+ .slide1-intro--words-3 .slide1-intro__frames-top {
114
+ top: 32vh;
115
+ }
116
+
78
117
  .slide1-intro__frames-top .frame-rect {
79
118
  box-sizing: border-box;
80
119
  width: clamp(140px, 46.15vw, 180px);
@@ -99,26 +138,33 @@
99
138
  padding: 0 calc(16px + env(safe-area-inset-left)) 0 calc(16px + env(safe-area-inset-right));
100
139
  }
101
140
 
141
+ /* Text positioning based on word count - align with frame positions */
142
+ .slide1-intro--words-1 .slide1-intro__text {
143
+ top: 58vh;
144
+ }
145
+
146
+ .slide1-intro--words-2 .slide1-intro__text {
147
+ top: 60vh;
148
+ }
149
+
150
+ .slide1-intro--words-3 .slide1-intro__text {
151
+ top: 63.39vh;
152
+ }
153
+
102
154
  .slide1-intro__headline {
103
155
  width: 100%;
104
156
  font-family: 'Lora', serif;
105
157
  font-style: normal;
106
158
  font-weight: 600;
107
159
  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;
160
+ line-height: 1.25;
161
+ color: #4F4CD8;
113
162
  flex: none;
114
163
  order: 0;
115
164
  align-self: stretch;
116
165
  margin: 0;
117
- display: -webkit-box;
118
- -webkit-line-clamp: 3;
119
- line-clamp: inherit;
120
- -webkit-box-orient: vertical;
121
- overflow: hidden;
166
+ word-wrap: break-word;
167
+ overflow-wrap: break-word;
122
168
  }
123
169
 
124
170
  .slide1-intro__subtitle {
@@ -128,7 +174,7 @@
128
174
  font-weight: 400;
129
175
  font-size: clamp(14px, 4.1vw, 16px);
130
176
  line-height: 1.5;
131
- color: #FFFFFF;
177
+ color: #3734D3;
132
178
  flex: none;
133
179
  order: 1;
134
180
  align-self: stretch;
@@ -136,17 +182,7 @@
136
182
  }
137
183
  /* Bottom floating frames - 743px from top */
138
184
  .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;
185
+ display: none;
150
186
  }
151
187
 
152
188
  .slide1-intro__frames-bottom .frame-rect {
@@ -194,7 +230,7 @@
194
230
  }
195
231
 
196
232
  .slide1-intro--new-user .slide1-intro__subtitle {
197
- color: #CDCCF4;
233
+ color: var(--border-line);
198
234
  }
199
235
 
200
236
  .slide1-intro--new-user .frame-rect {
@@ -211,27 +247,139 @@
211
247
 
212
248
  /* Media queries for landscape and short screens */
213
249
  @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
250
  .slide1-intro__bg-text,
220
251
  .slide1-intro__brand {
221
252
  font-size: clamp(32px, 12vw, 48px);
222
253
  }
223
254
 
224
- /* .slide1-intro__frames-top {
225
- top: clamp(140px, 22dvh, 180px);
226
- } */
255
+ /* Maintain larger sizes for fewer words on short screens */
256
+ .slide1-intro__brand--words-1 {
257
+ font-size: clamp(48px, 16vw, 72px);
258
+ }
227
259
 
228
- /* .slide1-intro__text {
229
- top: clamp(280px, 50dvh, 380px);
230
- } */
260
+ .slide1-intro__brand--words-2 {
261
+ font-size: clamp(36px, 12vw, 56px);
262
+ }
263
+ }
264
+
265
+ /* Small/Short screens - handles browser chrome taking space */
266
+ @media (max-height: 700px) {
267
+ .slide1-intro__bg-text {
268
+ font-size: clamp(28px, 10vw, 40px);
269
+ /* Maintain header clearance: header ~48px + 6px gap */
270
+ margin-top: calc(54px + env(safe-area-inset-top));
271
+ }
272
+
273
+ .slide1-intro__brand {
274
+ font-size: clamp(22px, 8vw, 36px);
275
+ line-height: 1.0;
276
+ }
277
+
278
+ /* Single word - still larger on short screens */
279
+ .slide1-intro__brand--words-1 {
280
+ font-size: clamp(40px, 14vw, 60px);
281
+ }
282
+
283
+ .slide1-intro__brand--words-2 {
284
+ font-size: clamp(32px, 11vw, 48px);
285
+ }
286
+
287
+ /* Frame positioning for short screens by word count */
288
+ .slide1-intro--words-1 .slide1-intro__frames-top {
289
+ top: 30dvh;
290
+ }
291
+
292
+ .slide1-intro--words-2 .slide1-intro__frames-top {
293
+ top: 32dvh;
294
+ }
295
+
296
+ .slide1-intro--words-3 .slide1-intro__frames-top {
297
+ top: 36dvh;
298
+ }
299
+
300
+ .slide1-intro__frames-top .frame-rect {
301
+ height: 30dvh;
302
+ }
303
+
304
+ /* Text positioning for short screens by word count */
305
+ .slide1-intro--words-1 .slide1-intro__text {
306
+ top: 64dvh;
307
+ }
308
+
309
+ .slide1-intro--words-2 .slide1-intro__text {
310
+ top: 66dvh;
311
+ }
312
+
313
+ .slide1-intro--words-3 .slide1-intro__text {
314
+ top: 70dvh;
315
+ }
316
+
317
+ .slide1-intro__headline {
318
+ font-size: 4dvh;
319
+ line-height: 1.2;
320
+ }
321
+
322
+ .slide1-intro__subtitle {
323
+ font-size: clamp(12px, 3.5vw, 14px);
324
+ line-height: 1.4;
325
+ }
326
+ }
327
+
328
+ /* Extra short screens - more aggressive adjustments */
329
+ @media (max-height: 600px) {
330
+ .slide1-intro__bg-text {
331
+ font-size: clamp(24px, 8vw, 32px);
332
+ /* Maintain header clearance even on extra short screens */
333
+ margin-top: calc(54px + env(safe-area-inset-top));
334
+ }
335
+
336
+ .slide1-intro__brand {
337
+ font-size: clamp(18px, 7vw, 28px);
338
+ line-height: 0.95;
339
+ }
340
+
341
+ /* Single word - still larger on extra short screens */
342
+ .slide1-intro__brand--words-1 {
343
+ font-size: clamp(32px, 12vw, 48px);
344
+ }
345
+
346
+ .slide1-intro__brand--words-2 {
347
+ font-size: clamp(26px, 10vw, 40px);
348
+ }
349
+
350
+ /* Frame positioning for extra short screens by word count */
351
+ .slide1-intro--words-1 .slide1-intro__frames-top {
352
+ top: 26dvh;
353
+ }
231
354
 
232
- /* .slide1-intro__frames-bottom {
233
- top: clamp(420px, 70dvh, 520px);
234
- } */
355
+ .slide1-intro--words-2 .slide1-intro__frames-top {
356
+ top: 28dvh;
357
+ }
358
+
359
+ .slide1-intro--words-3 .slide1-intro__frames-top {
360
+ top: 30dvh;
361
+ }
362
+
363
+ .slide1-intro__frames-top .frame-rect {
364
+ height: 24dvh;
365
+ }
366
+
367
+ /* Text positioning for extra short screens by word count */
368
+ .slide1-intro--words-1 .slide1-intro__text {
369
+ top: 54dvh;
370
+ }
371
+
372
+ .slide1-intro--words-2 .slide1-intro__text {
373
+ top: 56dvh;
374
+ }
375
+
376
+ .slide1-intro--words-3 .slide1-intro__text {
377
+ top: 58dvh;
378
+ }
379
+
380
+ .slide1-intro__headline {
381
+ font-size: 3.5dvh;
382
+ }
235
383
  }
236
384
 
237
385
  /* New User CTA Button */
@@ -6,10 +6,11 @@ interface Slide1IntroProps {
6
6
  introHeadline?: string;
7
7
  introSubtitle?: string;
8
8
  onDurationCalculated?: (duration: number) => void;
9
+ frameImages?: string[];
9
10
  }
10
11
  /**
11
12
  * Slide1Intro - Identity slide with business name and category-based messaging
12
13
  */
13
- declare function Slide1Intro({ businessName, businessCategory, introHeadline, introSubtitle, onDurationCalculated }: Slide1IntroProps): import("react/jsx-runtime").JSX.Element;
14
+ declare function Slide1Intro({ businessName, businessCategory, introHeadline, introSubtitle, onDurationCalculated, frameImages }: Slide1IntroProps): import("react/jsx-runtime").JSX.Element;
14
15
  export default Slide1Intro;
15
16
  //# sourceMappingURL=Slide1Intro.d.ts.map
@@ -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;CACnD;AAED;;GAEG;AACH,iBAAS,WAAW,CAAC,EAAE,YAAY,EAAE,gBAAgB,EAAE,aAAa,EAAE,aAAa,EAAE,oBAAoB,EAAE,EAAE,gBAAgB,2CA+I5H;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,2CAsJzI;AAED,eAAe,WAAW,CAAC"}