@katajere/recap 1.0.10 → 1.0.13

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 (38) hide show
  1. package/dist/RecapStory.d.ts.map +1 -1
  2. package/dist/RecapStory.js +5 -5
  3. package/dist/components/Header.d.ts +2 -1
  4. package/dist/components/Header.d.ts.map +1 -1
  5. package/dist/components/Header.js +3 -2
  6. package/dist/data/mock.d.ts.map +1 -1
  7. package/dist/data/mock.js +6 -2
  8. package/dist/data/recapCopy.js +1 -1
  9. package/dist/slides/Slide10Final.d.ts +2 -1
  10. package/dist/slides/Slide10Final.d.ts.map +1 -1
  11. package/dist/slides/Slide10Final.js +8 -7
  12. package/dist/slides/Slide1Intro.css +44 -0
  13. package/dist/slides/Slide1Intro.d.ts +3 -1
  14. package/dist/slides/Slide1Intro.d.ts.map +1 -1
  15. package/dist/slides/Slide1Intro.js +11 -4
  16. package/dist/slides/Slide3Revenue.d.ts +2 -1
  17. package/dist/slides/Slide3Revenue.d.ts.map +1 -1
  18. package/dist/slides/Slide3Revenue.js +2 -2
  19. package/dist/slides/Slide9Year.d.ts +2 -1
  20. package/dist/slides/Slide9Year.d.ts.map +1 -1
  21. package/dist/slides/Slide9Year.js +4 -2
  22. package/dist/types.d.ts +4 -0
  23. package/dist/types.d.ts.map +1 -1
  24. package/dist/utils/format.d.ts +5 -2
  25. package/dist/utils/format.d.ts.map +1 -1
  26. package/dist/utils/format.js +7 -4
  27. package/package.json +1 -1
  28. package/src/RecapStory.tsx +14 -3
  29. package/src/components/Header.tsx +4 -2
  30. package/src/data/mock.ts +6 -2
  31. package/src/data/recapCopy.ts +1 -1
  32. package/src/slides/Slide10Final.tsx +9 -6
  33. package/src/slides/Slide1Intro.css +44 -0
  34. package/src/slides/Slide1Intro.tsx +27 -4
  35. package/src/slides/Slide3Revenue.tsx +3 -2
  36. package/src/slides/Slide9Year.tsx +5 -2
  37. package/src/types.ts +4 -0
  38. package/src/utils/format.ts +7 -4
@@ -1 +1 @@
1
- {"version":3,"file":"RecapStory.d.ts","sourceRoot":"","sources":["../src/RecapStory.tsx"],"names":[],"mappings":"AAgBA,OAAO,EAAuB,SAAS,EAAE,MAAM,SAAS,CAAC;AAKzD,OAAO,kBAAkB,CAAC;AAE1B,UAAU,eAAe;IACvB,SAAS,EAAE,SAAS,CAAC;CACtB;AAED;;GAEG;AACH,iBAAS,UAAU,CAAC,EAAE,SAAS,EAAE,EAAE,eAAe,2CA4OjD;AAED,eAAe,UAAU,CAAC"}
1
+ {"version":3,"file":"RecapStory.d.ts","sourceRoot":"","sources":["../src/RecapStory.tsx"],"names":[],"mappings":"AAgBA,OAAO,EAAuB,SAAS,EAAE,MAAM,SAAS,CAAC;AAKzD,OAAO,kBAAkB,CAAC;AAE1B,UAAU,eAAe;IACvB,SAAS,EAAE,SAAS,CAAC;CACtB;AAED;;GAEG;AACH,iBAAS,UAAU,CAAC,EAAE,SAAS,EAAE,EAAE,eAAe,2CAuPjD;AAED,eAAe,UAAU,CAAC"}
@@ -122,11 +122,11 @@ function RecapStory({ recapData }) {
122
122
  const renderSlide = () => {
123
123
  switch (currentSlide.id) {
124
124
  case 'intro':
125
- return (_jsx(Slide1Intro, { businessName: recapData.businessName, businessCategory: recapData.businessCategory, onDurationCalculated: handleIntroDurationCalculated }));
125
+ return (_jsx(Slide1Intro, { businessName: recapData.businessName, businessCategory: recapData.businessCategory, introHeadline: recapData.introHeadline, introSubtitle: recapData.introSubtitle, onDurationCalculated: handleIntroDurationCalculated }));
126
126
  case 'days':
127
127
  return (_jsx(Slide2Days, { days: recapData.days, streak: recapData.streak }));
128
128
  case 'revenue':
129
- return (_jsx(Slide3Revenue, { revenue: recapData.revenue, businessCategory: recapData.businessCategory }));
129
+ return (_jsx(Slide3Revenue, { revenue: recapData.revenue, currency: recapData.currency, businessCategory: recapData.businessCategory }));
130
130
  case 'orders':
131
131
  return (_jsx(Slide4Orders, { orders: recapData.orders }));
132
132
  case 'buyers':
@@ -138,13 +138,13 @@ function RecapStory({ recapData }) {
138
138
  case 'months':
139
139
  return (_jsx(Slide8Months, { busiestMonth: recapData.busiestMonth }));
140
140
  case 'year':
141
- return (_jsx(Slide9Year, { businessCategory: recapData.businessCategory }));
141
+ return (_jsx(Slide9Year, { businessCategory: recapData.businessCategory, year: recapData.year }));
142
142
  case 'final':
143
- return (_jsx(Slide10Final, { videoUrl: recapData.videoUrl, downloadUrl: recapData.downloadUrl, onReplay: handleReplay }));
143
+ return (_jsx(Slide10Final, { videoUrl: recapData.videoUrl, downloadUrl: recapData.downloadUrl, year: recapData.year, onReplay: handleReplay }));
144
144
  default:
145
145
  return null;
146
146
  }
147
147
  };
148
- return (_jsxs("div", { className: "recap-story", children: [_jsxs("div", { className: "recap-story__top-group", children: [_jsx("div", { className: "recap-story__header-wrapper", children: _jsx(Header, { showRecapBadge: true, badgeVariant: isNewUser ? 'new-user' : 'default' }) }), _jsxs("div", { className: "recap-story__progress-wrap", children: [_jsx("div", { className: "recap-story__progress", children: (activeIndex !== 0 || isIntroDurationReady) && (_jsx(StoryProgress, { total: slides.length, active: activeIndex, duration: currentSlide.duration, onComplete: handleProgressComplete, onBarClick: handleBarClick, hideBorder: isFinalSlide })) }), !isFinalSlide && (_jsx("button", { type: "button", className: "recap-story__sound-toggle", onClick: toggleMute, "aria-label": isMuted ? 'Unmute sound' : 'Mute sound', children: _jsx("img", { src: isMuted ? soundOffIcon : soundOnIcon, alt: isMuted ? 'Unmute sound' : 'Mute sound', className: "recap-story__sound-icon", draggable: false }) }))] })] }), _jsx("div", { className: "recap-story__slides", onClick: handleScreenTap, children: _jsx(AnimatePresence, { mode: "wait", children: _jsx(motion.div, { variants: slideVariants, initial: "initial", animate: "animate", exit: "exit", className: "recap-story__slide", children: renderSlide() }, currentSlide.id) }) })] }));
148
+ return (_jsxs("div", { className: "recap-story", children: [_jsxs("div", { className: "recap-story__top-group", children: [_jsx("div", { className: "recap-story__header-wrapper", children: _jsx(Header, { showRecapBadge: true, badgeVariant: isNewUser ? 'new-user' : 'default', year: recapData.year }) }), _jsxs("div", { className: "recap-story__progress-wrap", children: [_jsx("div", { className: "recap-story__progress", children: (activeIndex !== 0 || isIntroDurationReady) && (_jsx(StoryProgress, { total: slides.length, active: activeIndex, duration: currentSlide.duration, onComplete: handleProgressComplete, onBarClick: handleBarClick, hideBorder: isFinalSlide })) }), !isFinalSlide && (_jsx("button", { type: "button", className: "recap-story__sound-toggle", onClick: toggleMute, "aria-label": isMuted ? 'Unmute sound' : 'Mute sound', children: _jsx("img", { src: isMuted ? soundOffIcon : soundOnIcon, alt: isMuted ? 'Unmute sound' : 'Mute sound', className: "recap-story__sound-icon", draggable: false }) }))] })] }), _jsx("div", { className: "recap-story__slides", onClick: handleScreenTap, children: _jsx(AnimatePresence, { mode: "wait", children: _jsx(motion.div, { variants: slideVariants, initial: "initial", animate: "animate", exit: "exit", className: "recap-story__slide", children: renderSlide() }, currentSlide.id) }) })] }));
149
149
  }
150
150
  export default RecapStory;
@@ -2,11 +2,12 @@ import './Header.css';
2
2
  interface HeaderProps {
3
3
  showRecapBadge?: boolean;
4
4
  badgeVariant?: 'default' | 'new-user';
5
+ year?: number;
5
6
  }
6
7
  /**
7
8
  * Header - Top navigation with logo and optional Recap 25' badge
8
9
  * Uses different logos for login/OTP screens vs recap slides
9
10
  */
10
- declare function Header({ showRecapBadge, badgeVariant }: HeaderProps): import("react/jsx-runtime").JSX.Element;
11
+ declare function Header({ showRecapBadge, badgeVariant, year }: HeaderProps): import("react/jsx-runtime").JSX.Element;
11
12
  export default Header;
12
13
  //# sourceMappingURL=Header.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Header.d.ts","sourceRoot":"","sources":["../../src/components/Header.tsx"],"names":[],"mappings":"AACA,OAAO,cAAc,CAAC;AAKtB,UAAU,WAAW;IACnB,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,YAAY,CAAC,EAAE,SAAS,GAAG,UAAU,CAAC;CACvC;AAED;;;GAGG;AACH,iBAAS,MAAM,CAAC,EAAE,cAAsB,EAAE,YAAwB,EAAE,EAAE,WAAW,2CAuBhF;AAED,eAAe,MAAM,CAAC"}
1
+ {"version":3,"file":"Header.d.ts","sourceRoot":"","sources":["../../src/components/Header.tsx"],"names":[],"mappings":"AACA,OAAO,cAAc,CAAC;AAKtB,UAAU,WAAW;IACnB,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,YAAY,CAAC,EAAE,SAAS,GAAG,UAAU,CAAC;IACtC,IAAI,CAAC,EAAE,MAAM,CAAC;CACf;AAED;;;GAGG;AACH,iBAAS,MAAM,CAAC,EAAE,cAAsB,EAAE,YAAwB,EAAE,IAAW,EAAE,EAAE,WAAW,2CAwB7F;AAED,eAAe,MAAM,CAAC"}
@@ -7,12 +7,13 @@ import huxxleBlueLogo from '../assets/huxxle-blue-logo.svg';
7
7
  * Header - Top navigation with logo and optional Recap 25' badge
8
8
  * Uses different logos for login/OTP screens vs recap slides
9
9
  */
10
- function Header({ showRecapBadge = false, badgeVariant = 'default' }) {
10
+ function Header({ showRecapBadge = false, badgeVariant = 'default', year = 2025 }) {
11
11
  const logoSrc = showRecapBadge
12
12
  ? badgeVariant === 'new-user'
13
13
  ? huxxleBlueLogo
14
14
  : slideLogo
15
15
  : loginLogo;
16
+ const shortYear = year.toString().slice(-2);
16
17
  const headerClasses = ['header'];
17
18
  if (showRecapBadge) {
18
19
  headerClasses.push('header--with-badge');
@@ -20,6 +21,6 @@ function Header({ showRecapBadge = false, badgeVariant = 'default' }) {
20
21
  if (badgeVariant === 'new-user') {
21
22
  headerClasses.push('header--new-user');
22
23
  }
23
- return (_jsxs("header", { className: headerClasses.join(' '), children: [_jsx("img", { src: logoSrc, alt: "Huxxle", className: "header__logo" }), showRecapBadge && (_jsx("div", { className: "header__badge", children: "Recap 25'" }))] }));
24
+ return (_jsxs("header", { className: headerClasses.join(' '), children: [_jsx("img", { src: logoSrc, alt: "Huxxle", className: "header__logo" }), showRecapBadge && (_jsxs("div", { className: "header__badge", children: ["Recap ", shortYear, "'"] }))] }));
24
25
  }
25
26
  export default Header;
@@ -1 +1 @@
1
- {"version":3,"file":"mock.d.ts","sourceRoot":"","sources":["../../src/data/mock.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,UAAU,CAAC;AAE1C;;;GAGG;AACH,eAAO,MAAM,aAAa,EAAE,SAwC3B,CAAC;AAGF,eAAO,MAAM,cAAc,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAWjD,CAAC"}
1
+ {"version":3,"file":"mock.d.ts","sourceRoot":"","sources":["../../src/data/mock.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,UAAU,CAAC;AAE1C;;;GAGG;AACH,eAAO,MAAM,aAAa,EAAE,SA4C3B,CAAC;AAGF,eAAO,MAAM,cAAc,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAWjD,CAAC"}
package/dist/data/mock.js CHANGED
@@ -7,11 +7,15 @@ export const mockRecapData = {
7
7
  businessName: 'RICHYO ENTERPRISES',
8
8
  days: 259,
9
9
  streak: 47,
10
- revenue: 22594123,
10
+ revenue: 22594,
11
11
  orders: 487,
12
12
  firstTimeBuyers: 234,
13
13
  repeatBuyers: 65,
14
14
  topCustomerName: 'Micheal Scoffy',
15
+ currency: 'GBP',
16
+ year: 2025,
17
+ introHeadline: 'You Be New Face OOO....',
18
+ introSubtitle: 'Come back for 6 days time, we dey for you 😉',
15
19
  topProducts: [
16
20
  {
17
21
  name: 'Vanilla Yoghurt',
@@ -39,7 +43,7 @@ export const mockRecapData = {
39
43
  productImage: 'https://images.unsplash.com/photo-1447078806655-40579c2520d6?auto=format&fit=crop&w=400&q=80'
40
44
  }
41
45
  ],
42
- businessCategory: BUSINESS_CATEGORIES.THRIVING,
46
+ businessCategory: BUSINESS_CATEGORIES.NEW_USER,
43
47
  busiestMonth: 'Oct',
44
48
  videoUrl: 'https://katajereassets.blob.core.windows.net/sp-list-assets/mocksite_walkthrough_a75c98dd-47ef-4f2c-a97c-ab2b3c3c97a5_2315a6b2d671d142f34e08cad43929c5.mp4',
45
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'
@@ -9,7 +9,7 @@ export const recapCopy = {
9
9
  not_thriving: {
10
10
  introHeadline: 'Omoor! We See Your Hustle, But….',
11
11
  introSubtitle: 'Make we talk small 🤫',
12
- introVariant: 'struggling',
12
+ introVariant: 'default',
13
13
  revenueFooter: 'Consistency go pay, we dey your back.',
14
14
  yearHeadline: 'This year rough, but you are the real MVP'
15
15
  },
@@ -3,7 +3,8 @@ interface Slide10FinalProps {
3
3
  videoUrl: string;
4
4
  downloadUrl: string;
5
5
  onReplay: () => void;
6
+ year?: number;
6
7
  }
7
- declare function Slide10Final({ videoUrl, downloadUrl, onReplay }: Slide10FinalProps): import("react/jsx-runtime").JSX.Element;
8
+ declare function Slide10Final({ videoUrl, downloadUrl, onReplay, year }: Slide10FinalProps): import("react/jsx-runtime").JSX.Element;
8
9
  export default Slide10Final;
9
10
  //# sourceMappingURL=Slide10Final.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Slide10Final.d.ts","sourceRoot":"","sources":["../../src/slides/Slide10Final.tsx"],"names":[],"mappings":"AACA,OAAO,oBAAoB,CAAC;AAE5B,UAAU,iBAAiB;IACzB,QAAQ,EAAE,MAAM,CAAC;IACjB,WAAW,EAAE,MAAM,CAAC;IACpB,QAAQ,EAAE,MAAM,IAAI,CAAC;CACtB;AAED,iBAAS,YAAY,CAAC,EAAE,QAAQ,EAAE,WAAW,EAAE,QAAQ,EAAE,EAAE,iBAAiB,2CA6F3E;AAED,eAAe,YAAY,CAAC"}
1
+ {"version":3,"file":"Slide10Final.d.ts","sourceRoot":"","sources":["../../src/slides/Slide10Final.tsx"],"names":[],"mappings":"AACA,OAAO,oBAAoB,CAAC;AAE5B,UAAU,iBAAiB;IACzB,QAAQ,EAAE,MAAM,CAAC;IACjB,WAAW,EAAE,MAAM,CAAC;IACpB,QAAQ,EAAE,MAAM,IAAI,CAAC;IACrB,IAAI,CAAC,EAAE,MAAM,CAAC;CACf;AAED,iBAAS,YAAY,CAAC,EAAE,QAAQ,EAAE,WAAW,EAAE,QAAQ,EAAE,IAAI,EAAE,EAAE,iBAAiB,2CA+FjF;AAED,eAAe,YAAY,CAAC"}
@@ -1,6 +1,7 @@
1
- import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
1
+ import { jsxs as _jsxs, jsx as _jsx } from "react/jsx-runtime";
2
2
  import './Slide10Final.css';
3
- function Slide10Final({ videoUrl, downloadUrl, onReplay }) {
3
+ function Slide10Final({ videoUrl, downloadUrl, onReplay, year }) {
4
+ const displayYear = year ?? 2025;
4
5
  const handleShare = async () => {
5
6
  try {
6
7
  // Fetch the media as a blob
@@ -9,7 +10,7 @@ function Slide10Final({ videoUrl, downloadUrl, onReplay }) {
9
10
  // Determine the file type (video/image)
10
11
  const fileExtension = videoUrl.split('.').pop()?.toLowerCase() || 'mp4';
11
12
  const mimeType = fileExtension === 'mp4' ? 'video/mp4' : 'image/jpeg';
12
- const fileName = `huxxle-wrapped-2025.${fileExtension}`;
13
+ const fileName = `huxxle-wrapped-${displayYear}.${fileExtension}`;
13
14
  // Create a File object (required for WhatsApp Status)
14
15
  const file = new File([blob], fileName, {
15
16
  type: mimeType
@@ -25,7 +26,7 @@ function Slide10Final({ videoUrl, downloadUrl, onReplay }) {
25
26
  await navigator.share({
26
27
  files: [file],
27
28
  title: 'My Huxxle Recap',
28
- text: 'Check out my Wrapped 2025 highlights! 🎉'
29
+ text: `Check out my Wrapped ${displayYear} highlights! 🎉`
29
30
  });
30
31
  return;
31
32
  }
@@ -33,7 +34,7 @@ function Slide10Final({ videoUrl, downloadUrl, onReplay }) {
33
34
  if (typeof navigator !== 'undefined' && navigator.share) {
34
35
  await navigator.share({
35
36
  title: 'My Huxxle Recap',
36
- text: 'Check out my Wrapped 2025 highlights! 🎉',
37
+ text: `Check out my Wrapped ${displayYear} highlights! 🎉`,
37
38
  url: videoUrl
38
39
  });
39
40
  return;
@@ -54,7 +55,7 @@ function Slide10Final({ videoUrl, downloadUrl, onReplay }) {
54
55
  const handleDownload = () => {
55
56
  const anchor = document.createElement('a');
56
57
  anchor.href = downloadUrl;
57
- anchor.download = 'huxxle-wrapped-2025.mp4';
58
+ anchor.download = `huxxle-wrapped-${displayYear}.mp4`;
58
59
  anchor.target = '_blank';
59
60
  document.body.appendChild(anchor);
60
61
  anchor.click();
@@ -63,6 +64,6 @@ function Slide10Final({ videoUrl, downloadUrl, onReplay }) {
63
64
  const handleLearnMore = () => {
64
65
  window.open('https://www.huxxle.com', '_blank', 'noopener');
65
66
  };
66
- return (_jsxs("div", { className: "slide10-final", children: [_jsx("div", { className: "slide10-final__badge", children: "WRAPPED 2025" }), _jsx("div", { className: "slide10-final__title", children: "Your#1 AI Business Assistant" }), _jsxs("div", { className: "slide10-final__button-group", children: [_jsx("button", { className: "slide10-final__button slide10-final__button--replay", onClick: onReplay, children: "Replay" }), _jsx("button", { className: "slide10-final__button", onClick: handleShare, children: "Share Your Wrapped" }), _jsx("button", { className: "slide10-final__button", onClick: handleDownload, children: "Download Cards" }), _jsx("button", { className: "slide10-final__button", onClick: handleLearnMore, children: "Learn More on Huxxle" })] })] }));
67
+ return (_jsxs("div", { className: "slide10-final", children: [_jsxs("div", { className: "slide10-final__badge", children: ["WRAPPED ", displayYear] }), _jsx("div", { className: "slide10-final__title", children: "Your#1 AI Business Assistant" }), _jsxs("div", { className: "slide10-final__button-group", children: [_jsx("button", { className: "slide10-final__button slide10-final__button--replay", onClick: onReplay, children: "Replay" }), _jsx("button", { className: "slide10-final__button", onClick: handleShare, children: "Share Your Wrapped" }), _jsx("button", { className: "slide10-final__button", onClick: handleDownload, children: "Download Cards" }), _jsx("button", { className: "slide10-final__button", onClick: handleLearnMore, children: "Learn More on Huxxle" })] })] }));
67
68
  }
68
69
  export default Slide10Final;
@@ -233,3 +233,47 @@
233
233
  top: clamp(420px, 70dvh, 520px);
234
234
  } */
235
235
  }
236
+
237
+ /* New User CTA Button */
238
+ .slide1-intro__cta-button {
239
+ position: absolute;
240
+ left: 0;
241
+ right: 0;
242
+ bottom: calc(32px + env(safe-area-inset-bottom));
243
+ margin: 0 auto;
244
+ width: min(320px, calc(100% - 32px));
245
+ padding: 14px 20px;
246
+ text-align: center;
247
+ background: linear-gradient(90deg, #4F4CD8 0%, #3F3DAD 100%);
248
+ border: none;
249
+ /* border-radius: 12px; */
250
+ font-family: 'Lora', serif;
251
+ font-weight: 600;
252
+ font-size: clamp(16px, 4.1vw, 18px);
253
+ color: #FFFFFF;
254
+ cursor: pointer;
255
+ z-index: 10;
256
+ box-shadow: 0 4px 12px rgba(63, 61, 173, 0.3);
257
+ transition: all 0.3s ease;
258
+ white-space: nowrap;
259
+ }
260
+
261
+ .slide1-intro__cta-button:hover {
262
+ transform: translateX(-50%) translateY(-2px);
263
+ box-shadow: 0 6px 16px rgba(63, 61, 173, 0.4);
264
+ }
265
+
266
+ .slide1-intro__cta-button:active {
267
+ transform: translateX(-50%) translateY(0);
268
+ box-shadow: 0 2px 8px rgba(63, 61, 173, 0.3);
269
+ }
270
+
271
+ .slide1-intro--new-user .slide1-intro__cta-button {
272
+ background: linear-gradient(90deg, #E6E5F9 0%, #CDCCF4 100%);
273
+ color: #2A2872;
274
+ box-shadow: 0 4px 12px rgba(230, 229, 249, 0.3);
275
+ }
276
+
277
+ .slide1-intro--new-user .slide1-intro__cta-button:hover {
278
+ box-shadow: 0 6px 16px rgba(230, 229, 249, 0.4);
279
+ }
@@ -3,11 +3,13 @@ import './Slide1Intro.css';
3
3
  interface Slide1IntroProps {
4
4
  businessName: string;
5
5
  businessCategory: BusinessCategory;
6
+ introHeadline?: string;
7
+ introSubtitle?: string;
6
8
  onDurationCalculated?: (duration: number) => void;
7
9
  }
8
10
  /**
9
11
  * Slide1Intro - Identity slide with business name and category-based messaging
10
12
  */
11
- declare function Slide1Intro({ businessName, businessCategory, onDurationCalculated }: Slide1IntroProps): import("react/jsx-runtime").JSX.Element;
13
+ declare function Slide1Intro({ businessName, businessCategory, introHeadline, introSubtitle, onDurationCalculated }: Slide1IntroProps): import("react/jsx-runtime").JSX.Element;
12
14
  export default Slide1Intro;
13
15
  //# 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,oBAAoB,CAAC,EAAE,CAAC,QAAQ,EAAE,MAAM,KAAK,IAAI,CAAC;CACnD;AAED;;GAEG;AACH,iBAAS,WAAW,CAAC,EAAE,YAAY,EAAE,gBAAgB,EAAE,oBAAoB,EAAE,EAAE,gBAAgB,2CA0H9F;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;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"}
@@ -8,10 +8,11 @@ import './Slide1Intro.css';
8
8
  /**
9
9
  * Slide1Intro - Identity slide with business name and category-based messaging
10
10
  */
11
- function Slide1Intro({ businessName, businessCategory, onDurationCalculated }) {
12
- // Dynamic messaging based on category
11
+ function Slide1Intro({ businessName, businessCategory, introHeadline, introSubtitle, onDurationCalculated }) {
12
+ // Dynamic messaging: use props if provided, otherwise fall back to recapCopy
13
13
  const copy = recapCopy[businessCategory] ?? recapCopy[BUSINESS_CATEGORIES.THRIVING];
14
- const headline = copy.introHeadline;
14
+ const headline = introHeadline ?? copy.introHeadline;
15
+ const subtitle = introSubtitle ?? copy.introSubtitle;
15
16
  const [brandWidth, setBrandWidth] = useState(0);
16
17
  const [headlineWidth, setHeadlineWidth] = useState(0);
17
18
  const brandRef = useRef(null);
@@ -56,6 +57,12 @@ function Slide1Intro({ businessName, businessCategory, onDurationCalculated }) {
56
57
  }
57
58
  }, [dynamicSlideDuration, brandWidth, headlineWidth, onDurationCalculated]);
58
59
  const slideClass = `slide1-intro slide1-intro--${copy.introVariant}`;
59
- return (_jsxs("div", { className: slideClass, children: [_jsxs("div", { className: "slide1-intro__brand-container", children: [_jsx("div", { className: "slide1-intro__bg-text", children: "HEY" }), _jsx(motion.div, { className: "slide1-intro__brand", ref: brandRef, animate: { x: [0, -brandShift] }, transition: { duration: brandAnimationDuration, repeat: 0, ease: 'linear' }, children: businessName })] }), _jsxs(motion.div, { className: "slide1-intro__frames-top", animate: { x: [-30, 30] }, transition: { duration: 15, repeat: Infinity, repeatType: 'reverse', ease: 'linear' }, children: [_jsx("div", { className: "frame-rect" }), _jsx("div", { className: "frame-rect" }), _jsx("div", { className: "frame-rect" })] }), _jsxs(motion.div, { className: "slide1-intro__text", variants: delayedFadeIn(0.5), initial: "initial", animate: "animate", children: [_jsx(motion.h2, { className: "slide1-intro__headline", ref: headlineRef, animate: { x: [0, -headlineShift] }, transition: { duration: headlineAnimationDuration, repeat: 1, repeatType: 'reverse', ease: 'linear' }, children: headline }), _jsx("p", { className: "slide1-intro__subtitle", children: copy.introSubtitle })] }), _jsxs(motion.div, { className: "slide1-intro__frames-bottom", animate: { x: [-30, 30] }, transition: { duration: 15, repeat: Infinity, repeatType: 'reverse', ease: 'linear' }, children: [_jsx("div", { className: "frame-rect" }), _jsx("div", { className: "frame-rect" }), _jsx("div", { className: "frame-rect" })] })] }));
60
+ const isNewUser = businessCategory === BUSINESS_CATEGORIES.NEW_USER;
61
+ const handleContinue = () => {
62
+ if (typeof window !== 'undefined') {
63
+ window.location.href = 'https://vendor.huxxle.com';
64
+ }
65
+ };
66
+ return (_jsxs("div", { className: slideClass, children: [_jsxs("div", { className: "slide1-intro__brand-container", children: [_jsx("div", { className: "slide1-intro__bg-text", children: "HEY" }), _jsx(motion.div, { className: "slide1-intro__brand", ref: brandRef, animate: { x: [0, -brandShift] }, transition: { duration: brandAnimationDuration, repeat: 0, ease: 'linear' }, children: businessName })] }), _jsxs(motion.div, { className: "slide1-intro__frames-top", animate: { x: [-30, 30] }, transition: { duration: 15, repeat: Infinity, repeatType: 'reverse', ease: 'linear' }, children: [_jsx("div", { className: "frame-rect" }), _jsx("div", { className: "frame-rect" }), _jsx("div", { className: "frame-rect" })] }), _jsxs(motion.div, { className: "slide1-intro__text", variants: delayedFadeIn(0.5), initial: "initial", animate: "animate", children: [_jsx(motion.h2, { className: "slide1-intro__headline", ref: headlineRef, animate: { x: [0, -headlineShift] }, transition: { duration: headlineAnimationDuration, repeat: 1, repeatType: 'reverse', ease: 'linear' }, children: headline }), _jsx("p", { className: "slide1-intro__subtitle", children: subtitle })] }), _jsxs(motion.div, { className: "slide1-intro__frames-bottom", animate: { x: [-30, 30] }, transition: { duration: 15, repeat: Infinity, repeatType: 'reverse', ease: 'linear' }, children: [_jsx("div", { className: "frame-rect" }), _jsx("div", { className: "frame-rect" }), _jsx("div", { className: "frame-rect" })] }), 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" }))] }));
60
67
  }
61
68
  export default Slide1Intro;
@@ -3,10 +3,11 @@ import './Slide3Revenue.css';
3
3
  interface Slide3RevenueProps {
4
4
  revenue: number;
5
5
  businessCategory: BusinessCategory;
6
+ currency?: string;
6
7
  }
7
8
  /**
8
9
  * Slide3Revenue - Revenue display with money rain overlay
9
10
  */
10
- declare function Slide3Revenue({ revenue, businessCategory }: Slide3RevenueProps): import("react/jsx-runtime").JSX.Element;
11
+ declare function Slide3Revenue({ revenue, businessCategory, currency }: Slide3RevenueProps): import("react/jsx-runtime").JSX.Element;
11
12
  export default Slide3Revenue;
12
13
  //# sourceMappingURL=Slide3Revenue.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Slide3Revenue.d.ts","sourceRoot":"","sources":["../../src/slides/Slide3Revenue.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAuB,gBAAgB,EAAE,MAAM,UAAU,CAAC;AAEjE,OAAO,qBAAqB,CAAC;AAI7B,UAAU,kBAAkB;IAC1B,OAAO,EAAE,MAAM,CAAC;IAChB,gBAAgB,EAAE,gBAAgB,CAAC;CACpC;AAED;;GAEG;AACH,iBAAS,aAAa,CAAC,EAAE,OAAO,EAAE,gBAAgB,EAAE,EAAE,kBAAkB,2CAwDvE;AAED,eAAe,aAAa,CAAC"}
1
+ {"version":3,"file":"Slide3Revenue.d.ts","sourceRoot":"","sources":["../../src/slides/Slide3Revenue.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAuB,gBAAgB,EAAE,MAAM,UAAU,CAAC;AAEjE,OAAO,qBAAqB,CAAC;AAI7B,UAAU,kBAAkB;IAC1B,OAAO,EAAE,MAAM,CAAC;IAChB,gBAAgB,EAAE,gBAAgB,CAAC;IACnC,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB;AAED;;GAEG;AACH,iBAAS,aAAa,CAAC,EAAE,OAAO,EAAE,gBAAgB,EAAE,QAAQ,EAAE,EAAE,kBAAkB,2CAwDjF;AAED,eAAe,aAAa,CAAC"}
@@ -8,9 +8,9 @@ import moneyRainGif from '../assets/raining-money.gif';
8
8
  /**
9
9
  * Slide3Revenue - Revenue display with money rain overlay
10
10
  */
11
- function Slide3Revenue({ revenue, businessCategory }) {
11
+ function Slide3Revenue({ revenue, businessCategory, currency }) {
12
12
  const copy = recapCopy[businessCategory] ?? recapCopy[BUSINESS_CATEGORIES.THRIVING];
13
13
  const footerText = copy.revenueFooter;
14
- return (_jsxs("div", { className: "slide3-revenue", children: [_jsx("div", { className: "slide3-revenue__overlay", style: { backgroundImage: `url(${moneyRainGif})` }, "aria-hidden": "true" }), _jsxs("div", { className: "slide3-revenue__content", children: [_jsx(motion.h2, { className: "slide3-revenue__title gradient-text", initial: { opacity: 0, y: 20 }, animate: { opacity: 1, y: 0 }, transition: { duration: 0.5 }, children: "You don make" }), _jsx(motion.div, { className: "slide3-revenue__amount gradient-text", initial: { opacity: 0, scale: 0.9 }, animate: { opacity: 1, scale: 1 }, transition: { duration: 0.8, delay: 0.3 }, children: formatCurrency(revenue) }), _jsx(motion.p, { className: "slide3-revenue__subline gradient-text", initial: { opacity: 0, y: 20 }, animate: { opacity: 1, y: 0 }, transition: { duration: 0.5, delay: 0.6 }, children: "Walahi you no small rara" })] }), _jsx(motion.div, { className: "slide3-revenue__footer gradient-text", initial: { opacity: 0, y: 20 }, animate: { opacity: 1, y: 0 }, transition: { duration: 0.5, delay: 0.9 }, children: footerText })] }));
14
+ return (_jsxs("div", { className: "slide3-revenue", children: [_jsx("div", { className: "slide3-revenue__overlay", style: { backgroundImage: `url(${moneyRainGif})` }, "aria-hidden": "true" }), _jsxs("div", { className: "slide3-revenue__content", children: [_jsx(motion.h2, { className: "slide3-revenue__title gradient-text", initial: { opacity: 0, y: 20 }, animate: { opacity: 1, y: 0 }, transition: { duration: 0.5 }, children: "You don make" }), _jsx(motion.div, { className: "slide3-revenue__amount gradient-text", initial: { opacity: 0, scale: 0.9 }, animate: { opacity: 1, scale: 1 }, transition: { duration: 0.8, delay: 0.3 }, children: formatCurrency(revenue, currency) }), _jsx(motion.p, { className: "slide3-revenue__subline gradient-text", initial: { opacity: 0, y: 20 }, animate: { opacity: 1, y: 0 }, transition: { duration: 0.5, delay: 0.6 }, children: "Walahi you no small rara" })] }), _jsx(motion.div, { className: "slide3-revenue__footer gradient-text", initial: { opacity: 0, y: 20 }, animate: { opacity: 1, y: 0 }, transition: { duration: 0.5, delay: 0.9 }, children: footerText })] }));
15
15
  }
16
16
  export default Slide3Revenue;
@@ -2,7 +2,8 @@ import './Slide9Year.css';
2
2
  import type { BusinessCategory } from '../types';
3
3
  interface Slide9YearProps {
4
4
  businessCategory: BusinessCategory;
5
+ year?: number;
5
6
  }
6
- declare function Slide9Year({ businessCategory }: Slide9YearProps): import("react/jsx-runtime").JSX.Element;
7
+ declare function Slide9Year({ businessCategory, year }: Slide9YearProps): import("react/jsx-runtime").JSX.Element;
7
8
  export default Slide9Year;
8
9
  //# sourceMappingURL=Slide9Year.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Slide9Year.d.ts","sourceRoot":"","sources":["../../src/slides/Slide9Year.tsx"],"names":[],"mappings":"AACA,OAAO,kBAAkB,CAAC;AAG1B,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,UAAU,CAAC;AAEjD,UAAU,eAAe;IACvB,gBAAgB,EAAE,gBAAgB,CAAC;CACpC;AAED,iBAAS,UAAU,CAAC,EAAE,gBAAgB,EAAE,EAAE,eAAe,2CAsBxD;AAED,eAAe,UAAU,CAAC"}
1
+ {"version":3,"file":"Slide9Year.d.ts","sourceRoot":"","sources":["../../src/slides/Slide9Year.tsx"],"names":[],"mappings":"AACA,OAAO,kBAAkB,CAAC;AAG1B,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,UAAU,CAAC;AAEjD,UAAU,eAAe;IACvB,gBAAgB,EAAE,gBAAgB,CAAC;IACnC,IAAI,CAAC,EAAE,MAAM,CAAC;CACf;AAED,iBAAS,UAAU,CAAC,EAAE,gBAAgB,EAAE,IAAI,EAAE,EAAE,eAAe,2CAwB9D;AAED,eAAe,UAAU,CAAC"}
@@ -2,8 +2,10 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
2
  import './Slide9Year.css';
3
3
  import { recapCopy } from '../data/recapCopy';
4
4
  import { BUSINESS_CATEGORIES } from '../types';
5
- function Slide9Year({ businessCategory }) {
5
+ function Slide9Year({ businessCategory, year }) {
6
6
  const copy = recapCopy[businessCategory] ?? recapCopy[BUSINESS_CATEGORIES.THRIVING];
7
- return (_jsxs("div", { className: "slide9-year", children: [_jsx("div", { className: "slide9-year__message", children: copy.yearHeadline }), _jsx("div", { className: "slide9-year__title", children: "2026 na your year" }), _jsx("div", { className: "slide9-year__crown", children: "\uD83D\uDC51" }), _jsxs("div", { className: "slide9-year__rect-layer slide9-year__rect-layer--top", children: [_jsx("span", { className: "slide9-year__rect slide9-year__rect--top-1 top-group" }), _jsx("span", { className: "slide9-year__rect slide9-year__rect--top-2 top-group" }), _jsx("span", { className: "slide9-year__rect slide9-year__rect--top-3 top-group" })] }), _jsxs("div", { className: "slide9-year__rect-layer slide9-year__rect-layer--bottom", children: [_jsx("span", { className: "slide9-year__rect slide9-year__rect--bottom-1 bottom-group" }), _jsx("span", { className: "slide9-year__rect slide9-year__rect--bottom-2 bottom-group" }), _jsx("span", { className: "slide9-year__rect slide9-year__rect--bottom-3 bottom-group" })] })] }));
7
+ const baseYear = year ?? 2025;
8
+ const nextYear = baseYear + 1;
9
+ return (_jsxs("div", { className: "slide9-year", children: [_jsx("div", { className: "slide9-year__message", children: copy.yearHeadline }), _jsxs("div", { className: "slide9-year__title", children: [nextYear, " na your year"] }), _jsx("div", { className: "slide9-year__crown", children: "\uD83D\uDC51" }), _jsxs("div", { className: "slide9-year__rect-layer slide9-year__rect-layer--top", children: [_jsx("span", { className: "slide9-year__rect slide9-year__rect--top-1 top-group" }), _jsx("span", { className: "slide9-year__rect slide9-year__rect--top-2 top-group" }), _jsx("span", { className: "slide9-year__rect slide9-year__rect--top-3 top-group" })] }), _jsxs("div", { className: "slide9-year__rect-layer slide9-year__rect-layer--bottom", children: [_jsx("span", { className: "slide9-year__rect slide9-year__rect--bottom-1 bottom-group" }), _jsx("span", { className: "slide9-year__rect slide9-year__rect--bottom-2 bottom-group" }), _jsx("span", { className: "slide9-year__rect slide9-year__rect--bottom-3 bottom-group" })] })] }));
8
10
  }
9
11
  export default Slide9Year;
package/dist/types.d.ts CHANGED
@@ -14,6 +14,10 @@ export interface RecapData {
14
14
  busiestMonth: string;
15
15
  videoUrl: string;
16
16
  downloadUrl: string;
17
+ currency?: string;
18
+ year?: number;
19
+ introHeadline?: string;
20
+ introSubtitle?: string;
17
21
  }
18
22
  export interface ProductSummary {
19
23
  name: string;
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAEA,MAAM,MAAM,QAAQ,GAAG,OAAO,GAAG,KAAK,GAAG,OAAO,CAAC;AAEjD,MAAM,MAAM,gBAAgB,GAAG,UAAU,GAAG,cAAc,GAAG,UAAU,CAAC;AAExE,MAAM,WAAW,SAAS;IACxB,YAAY,EAAE,MAAM,CAAC;IACrB,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,MAAM,CAAC;IACf,OAAO,EAAE,MAAM,CAAC;IAChB,MAAM,EAAE,MAAM,CAAC;IACf,eAAe,EAAE,MAAM,CAAC;IACxB,YAAY,EAAE,MAAM,CAAC;IACrB,eAAe,EAAE,MAAM,CAAC;IACxB,gBAAgB,EAAE,gBAAgB,CAAC;IACnC,WAAW,EAAE,KAAK,CAAC,cAAc,CAAC,CAAC;IACnC,YAAY,EAAE,MAAM,CAAC;IACrB,QAAQ,EAAE,MAAM,CAAC;IACjB,WAAW,EAAE,MAAM,CAAC;CACrB;AAED,MAAM,WAAW,cAAc;IAC7B,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;IACd,YAAY,EAAE,MAAM,CAAC;CACtB;AAED,eAAO,MAAM,UAAU;WACH,QAAQ;SACZ,QAAQ;WACJ,QAAQ;CAC3B,CAAC;AAEF,eAAO,MAAM,mBAAmB;cACN,gBAAgB;kBACR,gBAAgB;cACxB,gBAAgB;CACzC,CAAC"}
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAEA,MAAM,MAAM,QAAQ,GAAG,OAAO,GAAG,KAAK,GAAG,OAAO,CAAC;AAEjD,MAAM,MAAM,gBAAgB,GAAG,UAAU,GAAG,cAAc,GAAG,UAAU,CAAC;AAExE,MAAM,WAAW,SAAS;IACxB,YAAY,EAAE,MAAM,CAAC;IACrB,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,MAAM,CAAC;IACf,OAAO,EAAE,MAAM,CAAC;IAChB,MAAM,EAAE,MAAM,CAAC;IACf,eAAe,EAAE,MAAM,CAAC;IACxB,YAAY,EAAE,MAAM,CAAC;IACrB,eAAe,EAAE,MAAM,CAAC;IACxB,gBAAgB,EAAE,gBAAgB,CAAC;IACnC,WAAW,EAAE,KAAK,CAAC,cAAc,CAAC,CAAC;IACnC,YAAY,EAAE,MAAM,CAAC;IACrB,QAAQ,EAAE,MAAM,CAAC;IACjB,WAAW,EAAE,MAAM,CAAC;IACpB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,aAAa,CAAC,EAAE,MAAM,CAAC;CACxB;AAED,MAAM,WAAW,cAAc;IAC7B,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;IACd,YAAY,EAAE,MAAM,CAAC;CACtB;AAED,eAAO,MAAM,UAAU;WACH,QAAQ;SACZ,QAAQ;WACJ,QAAQ;CAC3B,CAAC;AAEF,eAAO,MAAM,mBAAmB;cACN,gBAAgB;kBACR,gBAAgB;cACxB,gBAAgB;CACzC,CAAC"}
@@ -1,7 +1,10 @@
1
1
  /**
2
- * Format a number as Nigerian Naira currency
2
+ * Format a number as currency
3
+ * @param amount - The amount to format
4
+ * @param currency - Currency code (default: 'NGN')
5
+ * @param locale - Locale string (default: 'en-NG')
3
6
  */
4
- export declare function formatCurrency(amount: number): string;
7
+ export declare function formatCurrency(amount: number, currency?: string, locale?: string): string;
5
8
  /**
6
9
  * Format a number with thousand separators
7
10
  */
@@ -1 +1 @@
1
- {"version":3,"file":"format.d.ts","sourceRoot":"","sources":["../../src/utils/format.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,wBAAgB,cAAc,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,CAOrD;AAED;;GAEG;AACH,wBAAgB,YAAY,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAEhD"}
1
+ {"version":3,"file":"format.d.ts","sourceRoot":"","sources":["../../src/utils/format.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,wBAAgB,cAAc,CAAC,MAAM,EAAE,MAAM,EAAE,QAAQ,GAAE,MAAc,EAAE,MAAM,GAAE,MAAgB,GAAG,MAAM,CAOzG;AAED;;GAEG;AACH,wBAAgB,YAAY,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAEhD"}
@@ -1,10 +1,13 @@
1
1
  /**
2
- * Format a number as Nigerian Naira currency
2
+ * Format a number as currency
3
+ * @param amount - The amount to format
4
+ * @param currency - Currency code (default: 'NGN')
5
+ * @param locale - Locale string (default: 'en-NG')
3
6
  */
4
- export function formatCurrency(amount) {
5
- return new Intl.NumberFormat('en-NG', {
7
+ export function formatCurrency(amount, currency = 'NGN', locale = 'en-NG') {
8
+ return new Intl.NumberFormat(locale, {
6
9
  style: 'currency',
7
- currency: 'NGN',
10
+ currency: currency,
8
11
  minimumFractionDigits: 0,
9
12
  maximumFractionDigits: 0
10
13
  }).format(amount);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@katajere/recap",
3
- "version": "1.0.10",
3
+ "version": "1.0.13",
4
4
  "description": "Vendor Year in Review Experience - Recap your business metrics for 2025",
5
5
  "private": false,
6
6
  "publishConfig": {
@@ -146,6 +146,8 @@ function RecapStory({ recapData }: RecapStoryProps) {
146
146
  <Slide1Intro
147
147
  businessName={recapData.businessName}
148
148
  businessCategory={recapData.businessCategory}
149
+ introHeadline={recapData.introHeadline}
150
+ introSubtitle={recapData.introSubtitle}
149
151
  onDurationCalculated={handleIntroDurationCalculated}
150
152
  />
151
153
  );
@@ -160,6 +162,7 @@ function RecapStory({ recapData }: RecapStoryProps) {
160
162
  return (
161
163
  <Slide3Revenue
162
164
  revenue={recapData.revenue}
165
+ currency={recapData.currency}
163
166
  businessCategory={recapData.businessCategory}
164
167
  />
165
168
  );
@@ -190,13 +193,17 @@ function RecapStory({ recapData }: RecapStoryProps) {
190
193
  );
191
194
  case 'year':
192
195
  return (
193
- <Slide9Year businessCategory={recapData.businessCategory} />
196
+ <Slide9Year
197
+ businessCategory={recapData.businessCategory}
198
+ year={recapData.year}
199
+ />
194
200
  );
195
201
  case 'final':
196
202
  return (
197
203
  <Slide10Final
198
204
  videoUrl={recapData.videoUrl}
199
205
  downloadUrl={recapData.downloadUrl}
206
+ year={recapData.year}
200
207
  onReplay={handleReplay}
201
208
  />
202
209
  );
@@ -209,9 +216,13 @@ function RecapStory({ recapData }: RecapStoryProps) {
209
216
  <div className="recap-story">
210
217
  {/* Top group: Header + Progress */}
211
218
  <div className="recap-story__top-group">
212
- {/* Header with Huxxle logo and Recap 25' badge */}
219
+ {/* Header with Huxxle logo and Recap badge */}
213
220
  <div className="recap-story__header-wrapper">
214
- <Header showRecapBadge={true} badgeVariant={isNewUser ? 'new-user' : 'default'} />
221
+ <Header
222
+ showRecapBadge={true}
223
+ badgeVariant={isNewUser ? 'new-user' : 'default'}
224
+ year={recapData.year}
225
+ />
215
226
  </div>
216
227
 
217
228
  {/* Progress bars with sound toggle */}
@@ -7,18 +7,20 @@ import huxxleBlueLogo from '../assets/huxxle-blue-logo.svg';
7
7
  interface HeaderProps {
8
8
  showRecapBadge?: boolean;
9
9
  badgeVariant?: 'default' | 'new-user';
10
+ year?: number; // e.g., 2025
10
11
  }
11
12
 
12
13
  /**
13
14
  * Header - Top navigation with logo and optional Recap 25' badge
14
15
  * Uses different logos for login/OTP screens vs recap slides
15
16
  */
16
- function Header({ showRecapBadge = false, badgeVariant = 'default' }: HeaderProps) {
17
+ function Header({ showRecapBadge = false, badgeVariant = 'default', year = 2025 }: HeaderProps) {
17
18
  const logoSrc = showRecapBadge
18
19
  ? badgeVariant === 'new-user'
19
20
  ? huxxleBlueLogo
20
21
  : slideLogo
21
22
  : loginLogo;
23
+ const shortYear = year.toString().slice(-2);
22
24
 
23
25
  const headerClasses = ['header'];
24
26
  if (showRecapBadge) {
@@ -32,7 +34,7 @@ function Header({ showRecapBadge = false, badgeVariant = 'default' }: HeaderProp
32
34
  <header className={headerClasses.join(' ')}>
33
35
  <img src={logoSrc} alt="Huxxle" className="header__logo" />
34
36
  {showRecapBadge && (
35
- <div className="header__badge">Recap 25'</div>
37
+ <div className="header__badge">Recap {shortYear}'</div>
36
38
  )}
37
39
  </header>
38
40
  );
package/src/data/mock.ts CHANGED
@@ -9,11 +9,15 @@ export const mockRecapData: RecapData = {
9
9
  businessName: 'RICHYO ENTERPRISES',
10
10
  days: 259,
11
11
  streak: 47,
12
- revenue: 22594123,
12
+ revenue: 22594,
13
13
  orders: 487,
14
14
  firstTimeBuyers: 234,
15
15
  repeatBuyers: 65,
16
16
  topCustomerName: 'Micheal Scoffy',
17
+ currency: 'GBP',
18
+ year: 2025,
19
+ introHeadline: 'You Be New Face OOO....',
20
+ introSubtitle: 'Come back for 6 days time, we dey for you 😉',
17
21
  topProducts: [
18
22
  {
19
23
  name: 'Vanilla Yoghurt',
@@ -41,7 +45,7 @@ export const mockRecapData: RecapData = {
41
45
  productImage: 'https://images.unsplash.com/photo-1447078806655-40579c2520d6?auto=format&fit=crop&w=400&q=80'
42
46
  }
43
47
  ],
44
- businessCategory: BUSINESS_CATEGORIES.THRIVING,
48
+ businessCategory: BUSINESS_CATEGORIES.NEW_USER,
45
49
  busiestMonth: 'Oct',
46
50
  videoUrl: 'https://katajereassets.blob.core.windows.net/sp-list-assets/mocksite_walkthrough_a75c98dd-47ef-4f2c-a97c-ab2b3c3c97a5_2315a6b2d671d142f34e08cad43929c5.mp4',
47
51
  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'
@@ -19,7 +19,7 @@ export const recapCopy: Record<BusinessCategory, RecapSlideCopy> = {
19
19
  not_thriving: {
20
20
  introHeadline: 'Omoor! We See Your Hustle, But….',
21
21
  introSubtitle: 'Make we talk small 🤫',
22
- introVariant: 'struggling',
22
+ introVariant: 'default',
23
23
  revenueFooter: 'Consistency go pay, we dey your back.',
24
24
  yearHeadline: 'This year rough, but you are the real MVP'
25
25
  },
@@ -5,9 +5,12 @@ interface Slide10FinalProps {
5
5
  videoUrl: string;
6
6
  downloadUrl: string;
7
7
  onReplay: () => void;
8
+ year?: number;
8
9
  }
9
10
 
10
- function Slide10Final({ videoUrl, downloadUrl, onReplay }: Slide10FinalProps) {
11
+ function Slide10Final({ videoUrl, downloadUrl, onReplay, year }: Slide10FinalProps) {
12
+ const displayYear = year ?? 2025;
13
+
11
14
  const handleShare = async () => {
12
15
  try {
13
16
  // Fetch the media as a blob
@@ -17,7 +20,7 @@ function Slide10Final({ videoUrl, downloadUrl, onReplay }: Slide10FinalProps) {
17
20
  // Determine the file type (video/image)
18
21
  const fileExtension = videoUrl.split('.').pop()?.toLowerCase() || 'mp4';
19
22
  const mimeType = fileExtension === 'mp4' ? 'video/mp4' : 'image/jpeg';
20
- const fileName = `huxxle-wrapped-2025.${fileExtension}`;
23
+ const fileName = `huxxle-wrapped-${displayYear}.${fileExtension}`;
21
24
 
22
25
  // Create a File object (required for WhatsApp Status)
23
26
  const file = new File([blob], fileName, {
@@ -36,7 +39,7 @@ function Slide10Final({ videoUrl, downloadUrl, onReplay }: Slide10FinalProps) {
36
39
  await navigator.share({
37
40
  files: [file],
38
41
  title: 'My Huxxle Recap',
39
- text: 'Check out my Wrapped 2025 highlights! 🎉'
42
+ text: `Check out my Wrapped ${displayYear} highlights! 🎉`
40
43
  });
41
44
  return;
42
45
  }
@@ -45,7 +48,7 @@ function Slide10Final({ videoUrl, downloadUrl, onReplay }: Slide10FinalProps) {
45
48
  if (typeof navigator !== 'undefined' && navigator.share) {
46
49
  await navigator.share({
47
50
  title: 'My Huxxle Recap',
48
- text: 'Check out my Wrapped 2025 highlights! 🎉',
51
+ text: `Check out my Wrapped ${displayYear} highlights! 🎉`,
49
52
  url: videoUrl
50
53
  });
51
54
  return;
@@ -68,7 +71,7 @@ function Slide10Final({ videoUrl, downloadUrl, onReplay }: Slide10FinalProps) {
68
71
  const handleDownload = () => {
69
72
  const anchor = document.createElement('a');
70
73
  anchor.href = downloadUrl;
71
- anchor.download = 'huxxle-wrapped-2025.mp4';
74
+ anchor.download = `huxxle-wrapped-${displayYear}.mp4`;
72
75
  anchor.target = '_blank';
73
76
  document.body.appendChild(anchor);
74
77
  anchor.click();
@@ -81,7 +84,7 @@ function Slide10Final({ videoUrl, downloadUrl, onReplay }: Slide10FinalProps) {
81
84
 
82
85
  return (
83
86
  <div className="slide10-final">
84
- <div className="slide10-final__badge">WRAPPED 2025</div>
87
+ <div className="slide10-final__badge">WRAPPED {displayYear}</div>
85
88
  <div className="slide10-final__title">Your#1 AI Business Assistant</div>
86
89
 
87
90
  <div className="slide10-final__button-group">
@@ -233,3 +233,47 @@
233
233
  top: clamp(420px, 70dvh, 520px);
234
234
  } */
235
235
  }
236
+
237
+ /* New User CTA Button */
238
+ .slide1-intro__cta-button {
239
+ position: absolute;
240
+ left: 0;
241
+ right: 0;
242
+ bottom: calc(32px + env(safe-area-inset-bottom));
243
+ margin: 0 auto;
244
+ width: min(320px, calc(100% - 32px));
245
+ padding: 14px 20px;
246
+ text-align: center;
247
+ background: linear-gradient(90deg, #4F4CD8 0%, #3F3DAD 100%);
248
+ border: none;
249
+ /* border-radius: 12px; */
250
+ font-family: 'Lora', serif;
251
+ font-weight: 600;
252
+ font-size: clamp(16px, 4.1vw, 18px);
253
+ color: #FFFFFF;
254
+ cursor: pointer;
255
+ z-index: 10;
256
+ box-shadow: 0 4px 12px rgba(63, 61, 173, 0.3);
257
+ transition: all 0.3s ease;
258
+ white-space: nowrap;
259
+ }
260
+
261
+ .slide1-intro__cta-button:hover {
262
+ transform: translateX(-50%) translateY(-2px);
263
+ box-shadow: 0 6px 16px rgba(63, 61, 173, 0.4);
264
+ }
265
+
266
+ .slide1-intro__cta-button:active {
267
+ transform: translateX(-50%) translateY(0);
268
+ box-shadow: 0 2px 8px rgba(63, 61, 173, 0.3);
269
+ }
270
+
271
+ .slide1-intro--new-user .slide1-intro__cta-button {
272
+ background: linear-gradient(90deg, #E6E5F9 0%, #CDCCF4 100%);
273
+ color: #2A2872;
274
+ box-shadow: 0 4px 12px rgba(230, 229, 249, 0.3);
275
+ }
276
+
277
+ .slide1-intro--new-user .slide1-intro__cta-button:hover {
278
+ box-shadow: 0 6px 16px rgba(230, 229, 249, 0.4);
279
+ }
@@ -8,16 +8,19 @@ import './Slide1Intro.css';
8
8
  interface Slide1IntroProps {
9
9
  businessName: string;
10
10
  businessCategory: BusinessCategory;
11
+ introHeadline?: string;
12
+ introSubtitle?: string;
11
13
  onDurationCalculated?: (duration: number) => void;
12
14
  }
13
15
 
14
16
  /**
15
17
  * Slide1Intro - Identity slide with business name and category-based messaging
16
18
  */
17
- function Slide1Intro({ businessName, businessCategory, onDurationCalculated }: Slide1IntroProps) {
18
- // Dynamic messaging based on category
19
+ function Slide1Intro({ businessName, businessCategory, introHeadline, introSubtitle, onDurationCalculated }: Slide1IntroProps) {
20
+ // Dynamic messaging: use props if provided, otherwise fall back to recapCopy
19
21
  const copy = recapCopy[businessCategory] ?? recapCopy[BUSINESS_CATEGORIES.THRIVING];
20
- const headline = copy.introHeadline;
22
+ const headline = introHeadline ?? copy.introHeadline;
23
+ const subtitle = introSubtitle ?? copy.introSubtitle;
21
24
  const [brandWidth, setBrandWidth] = useState(0);
22
25
  const [headlineWidth, setHeadlineWidth] = useState(0);
23
26
  const brandRef = useRef<HTMLDivElement | null>(null);
@@ -76,6 +79,13 @@ function Slide1Intro({ businessName, businessCategory, onDurationCalculated }: S
76
79
  }, [dynamicSlideDuration, brandWidth, headlineWidth, onDurationCalculated]);
77
80
 
78
81
  const slideClass = `slide1-intro slide1-intro--${copy.introVariant}`;
82
+ const isNewUser = businessCategory === BUSINESS_CATEGORIES.NEW_USER;
83
+
84
+ const handleContinue = () => {
85
+ if (typeof window !== 'undefined') {
86
+ window.location.href = 'https://vendor.huxxle.com';
87
+ }
88
+ };
79
89
 
80
90
  return (
81
91
  <div className={slideClass}>
@@ -121,7 +131,7 @@ function Slide1Intro({ businessName, businessCategory, onDurationCalculated }: S
121
131
  >
122
132
  {headline}
123
133
  </motion.h2>
124
- <p className="slide1-intro__subtitle">{copy.introSubtitle}</p>
134
+ <p className="slide1-intro__subtitle">{subtitle}</p>
125
135
  </motion.div>
126
136
 
127
137
  {/* Bottom floating frames (slow horizontal drift) */}
@@ -134,6 +144,19 @@ function Slide1Intro({ businessName, businessCategory, onDurationCalculated }: S
134
144
  <div className="frame-rect" />
135
145
  <div className="frame-rect" />
136
146
  </motion.div>
147
+
148
+ {/* New User CTA Button - Animated from bottom */}
149
+ {isNewUser && (
150
+ <motion.button
151
+ className="slide1-intro__cta-button"
152
+ onClick={handleContinue}
153
+ initial={{ y: 100, opacity: 0 }}
154
+ animate={{ y: 0, opacity: 1 }}
155
+ transition={{ duration: 0.8, delay: 2.0, ease: 'easeOut' }}
156
+ >
157
+ Continue on Huxxle
158
+ </motion.button>
159
+ )}
137
160
  </div>
138
161
  );
139
162
  }
@@ -10,12 +10,13 @@ import moneyRainGif from '../assets/raining-money.gif';
10
10
  interface Slide3RevenueProps {
11
11
  revenue: number;
12
12
  businessCategory: BusinessCategory;
13
+ currency?: string;
13
14
  }
14
15
 
15
16
  /**
16
17
  * Slide3Revenue - Revenue display with money rain overlay
17
18
  */
18
- function Slide3Revenue({ revenue, businessCategory }: Slide3RevenueProps) {
19
+ function Slide3Revenue({ revenue, businessCategory, currency }: Slide3RevenueProps) {
19
20
  const copy = recapCopy[businessCategory] ?? recapCopy[BUSINESS_CATEGORIES.THRIVING];
20
21
  const footerText = copy.revenueFooter;
21
22
 
@@ -46,7 +47,7 @@ function Slide3Revenue({ revenue, businessCategory }: Slide3RevenueProps) {
46
47
  animate={{ opacity: 1, scale: 1 }}
47
48
  transition={{ duration: 0.8, delay: 0.3 }}
48
49
  >
49
- {formatCurrency(revenue)}
50
+ {formatCurrency(revenue, currency)}
50
51
  </motion.div>
51
52
 
52
53
  {/* Subline */}
@@ -6,15 +6,18 @@ import type { BusinessCategory } from '../types';
6
6
 
7
7
  interface Slide9YearProps {
8
8
  businessCategory: BusinessCategory;
9
+ year?: number;
9
10
  }
10
11
 
11
- function Slide9Year({ businessCategory }: Slide9YearProps) {
12
+ function Slide9Year({ businessCategory, year }: Slide9YearProps) {
12
13
  const copy = recapCopy[businessCategory] ?? recapCopy[BUSINESS_CATEGORIES.THRIVING];
14
+ const baseYear = year ?? 2025;
15
+ const nextYear = baseYear + 1;
13
16
 
14
17
  return (
15
18
  <div className="slide9-year">
16
19
  <div className="slide9-year__message">{copy.yearHeadline}</div>
17
- <div className="slide9-year__title">2026 na your year</div>
20
+ <div className="slide9-year__title">{nextYear} na your year</div>
18
21
  <div className="slide9-year__crown">👑</div>
19
22
 
20
23
  <div className="slide9-year__rect-layer slide9-year__rect-layer--top">
package/src/types.ts CHANGED
@@ -18,6 +18,10 @@ export interface RecapData {
18
18
  busiestMonth: string;
19
19
  videoUrl: string;
20
20
  downloadUrl: string;
21
+ currency?: string; // e.g., 'NGN', 'USD'
22
+ year?: number; // e.g., 2025
23
+ introHeadline?: string; // Custom intro headline from backend
24
+ introSubtitle?: string; // Custom intro subtitle from backend
21
25
  }
22
26
 
23
27
  export interface ProductSummary {
@@ -1,10 +1,13 @@
1
1
  /**
2
- * Format a number as Nigerian Naira currency
2
+ * Format a number as currency
3
+ * @param amount - The amount to format
4
+ * @param currency - Currency code (default: 'NGN')
5
+ * @param locale - Locale string (default: 'en-NG')
3
6
  */
4
- export function formatCurrency(amount: number): string {
5
- return new Intl.NumberFormat('en-NG', {
7
+ export function formatCurrency(amount: number, currency: string = 'NGN', locale: string = 'en-NG'): string {
8
+ return new Intl.NumberFormat(locale, {
6
9
  style: 'currency',
7
- currency: 'NGN',
10
+ currency: currency,
8
11
  minimumFractionDigits: 0,
9
12
  maximumFractionDigits: 0
10
13
  }).format(amount);