@katajere/recap 1.0.3 → 1.0.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/App.css +156 -156
- package/dist/FloatingFrames.css +55 -55
- package/dist/LoginScreen.css +146 -146
- package/dist/OtpScreen.css +133 -133
- package/dist/RecapStory.css +105 -105
- package/dist/StoryProgress.css +47 -47
- package/dist/assets/huxxle-blue-logo.svg +14 -14
- package/dist/assets/login-logo.svg +14 -14
- package/dist/assets/slide-logo.svg +14 -14
- package/dist/components/Header.css +46 -46
- package/dist/slides/Slide10Final.css +101 -101
- package/dist/slides/Slide1Intro.css +235 -235
- package/dist/slides/Slide2Days.css +209 -209
- package/dist/slides/Slide3Revenue.css +89 -89
- package/dist/slides/Slide4Orders.css +135 -135
- package/dist/slides/Slide5Buyers.css +140 -140
- package/dist/slides/Slide6Customer.css +92 -92
- package/dist/slides/Slide7Products.css +144 -144
- package/dist/slides/Slide8Months.css +148 -148
- package/dist/slides/Slide9Year.css +93 -93
- package/package.json +1 -1
- package/src/App.css +156 -156
- package/src/FloatingFrames.css +55 -55
- package/src/FloatingFrames.tsx +27 -27
- package/src/LoginScreen.css +146 -146
- package/src/LoginScreen.tsx +70 -70
- package/src/OtpScreen.css +133 -133
- package/src/OtpScreen.tsx +109 -109
- package/src/RecapApp.tsx +34 -34
- package/src/RecapStory.css +105 -105
- package/src/RecapStory.tsx +269 -269
- package/src/StoryProgress.css +47 -47
- package/src/StoryProgress.tsx +60 -60
- package/src/assets.d.ts +41 -41
- package/src/components/Header.css +46 -46
- package/src/components/Header.tsx +41 -41
- package/src/data/mock.ts +62 -62
- package/src/data/recapCopy.ts +33 -33
- package/src/hooks/useBackgroundMusic.ts +79 -79
- package/src/index.ts +70 -70
- package/src/react-app-env.d.ts +26 -26
- package/src/slides/Slide10Final.css +101 -101
- package/src/slides/Slide10Final.tsx +105 -105
- package/src/slides/Slide1Intro.css +235 -235
- package/src/slides/Slide1Intro.tsx +141 -141
- package/src/slides/Slide2Days.css +209 -209
- package/src/slides/Slide2Days.tsx +92 -92
- package/src/slides/Slide3Revenue.css +89 -89
- package/src/slides/Slide3Revenue.tsx +76 -76
- package/src/slides/Slide4Orders.css +135 -135
- package/src/slides/Slide4Orders.tsx +63 -63
- package/src/slides/Slide5Buyers.css +140 -140
- package/src/slides/Slide5Buyers.tsx +74 -74
- package/src/slides/Slide6Customer.css +92 -92
- package/src/slides/Slide6Customer.tsx +27 -27
- package/src/slides/Slide7Products.css +144 -144
- package/src/slides/Slide7Products.tsx +81 -81
- package/src/slides/Slide8Months.css +148 -148
- package/src/slides/Slide8Months.tsx +63 -63
- package/src/slides/Slide9Year.css +93 -93
- package/src/slides/Slide9Year.tsx +35 -35
- package/src/types.ts +39 -39
- package/src/utils/format.ts +18 -18
- package/src/utils/index.ts +3 -3
- package/src/utils/motion.ts +89 -89
package/src/types.ts
CHANGED
|
@@ -1,39 +1,39 @@
|
|
|
1
|
-
// Type definitions for the Huxxle Recap app
|
|
2
|
-
|
|
3
|
-
export type AuthStep = 'login' | 'otp' | 'recap';
|
|
4
|
-
|
|
5
|
-
export type BusinessCategory = 'thriving' | 'not_thriving' | 'new_user';
|
|
6
|
-
|
|
7
|
-
export interface RecapData {
|
|
8
|
-
businessName: string;
|
|
9
|
-
days: number;
|
|
10
|
-
streak: number;
|
|
11
|
-
revenue: number;
|
|
12
|
-
orders: number;
|
|
13
|
-
firstTimeBuyers: number;
|
|
14
|
-
repeatBuyers: number;
|
|
15
|
-
topCustomerName: string;
|
|
16
|
-
businessCategory: BusinessCategory;
|
|
17
|
-
topProducts: Array<ProductSummary>;
|
|
18
|
-
busiestMonth: string;
|
|
19
|
-
videoUrl: string;
|
|
20
|
-
downloadUrl: string;
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
export interface ProductSummary {
|
|
24
|
-
name: string;
|
|
25
|
-
units: number;
|
|
26
|
-
productImage: string;
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
export const AUTH_STEPS = {
|
|
30
|
-
LOGIN: 'login' as AuthStep,
|
|
31
|
-
OTP: 'otp' as AuthStep,
|
|
32
|
-
RECAP: 'recap' as AuthStep
|
|
33
|
-
};
|
|
34
|
-
|
|
35
|
-
export const BUSINESS_CATEGORIES = {
|
|
36
|
-
THRIVING: 'thriving' as BusinessCategory,
|
|
37
|
-
NOT_THRIVING: 'not_thriving' as BusinessCategory,
|
|
38
|
-
NEW_USER: 'new_user' as BusinessCategory
|
|
39
|
-
};
|
|
1
|
+
// Type definitions for the Huxxle Recap app
|
|
2
|
+
|
|
3
|
+
export type AuthStep = 'login' | 'otp' | 'recap';
|
|
4
|
+
|
|
5
|
+
export type BusinessCategory = 'thriving' | 'not_thriving' | 'new_user';
|
|
6
|
+
|
|
7
|
+
export interface RecapData {
|
|
8
|
+
businessName: string;
|
|
9
|
+
days: number;
|
|
10
|
+
streak: number;
|
|
11
|
+
revenue: number;
|
|
12
|
+
orders: number;
|
|
13
|
+
firstTimeBuyers: number;
|
|
14
|
+
repeatBuyers: number;
|
|
15
|
+
topCustomerName: string;
|
|
16
|
+
businessCategory: BusinessCategory;
|
|
17
|
+
topProducts: Array<ProductSummary>;
|
|
18
|
+
busiestMonth: string;
|
|
19
|
+
videoUrl: string;
|
|
20
|
+
downloadUrl: string;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
export interface ProductSummary {
|
|
24
|
+
name: string;
|
|
25
|
+
units: number;
|
|
26
|
+
productImage: string;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
export const AUTH_STEPS = {
|
|
30
|
+
LOGIN: 'login' as AuthStep,
|
|
31
|
+
OTP: 'otp' as AuthStep,
|
|
32
|
+
RECAP: 'recap' as AuthStep
|
|
33
|
+
};
|
|
34
|
+
|
|
35
|
+
export const BUSINESS_CATEGORIES = {
|
|
36
|
+
THRIVING: 'thriving' as BusinessCategory,
|
|
37
|
+
NOT_THRIVING: 'not_thriving' as BusinessCategory,
|
|
38
|
+
NEW_USER: 'new_user' as BusinessCategory
|
|
39
|
+
};
|
package/src/utils/format.ts
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Format a number as Nigerian Naira currency
|
|
3
|
-
*/
|
|
4
|
-
export function formatCurrency(amount: number): string {
|
|
5
|
-
return new Intl.NumberFormat('en-NG', {
|
|
6
|
-
style: 'currency',
|
|
7
|
-
currency: 'NGN',
|
|
8
|
-
minimumFractionDigits: 0,
|
|
9
|
-
maximumFractionDigits: 0
|
|
10
|
-
}).format(amount);
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
/**
|
|
14
|
-
* Format a number with thousand separators
|
|
15
|
-
*/
|
|
16
|
-
export function formatNumber(num: number): string {
|
|
17
|
-
return new Intl.NumberFormat('en-US').format(num);
|
|
18
|
-
}
|
|
1
|
+
/**
|
|
2
|
+
* Format a number as Nigerian Naira currency
|
|
3
|
+
*/
|
|
4
|
+
export function formatCurrency(amount: number): string {
|
|
5
|
+
return new Intl.NumberFormat('en-NG', {
|
|
6
|
+
style: 'currency',
|
|
7
|
+
currency: 'NGN',
|
|
8
|
+
minimumFractionDigits: 0,
|
|
9
|
+
maximumFractionDigits: 0
|
|
10
|
+
}).format(amount);
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
/**
|
|
14
|
+
* Format a number with thousand separators
|
|
15
|
+
*/
|
|
16
|
+
export function formatNumber(num: number): string {
|
|
17
|
+
return new Intl.NumberFormat('en-US').format(num);
|
|
18
|
+
}
|
package/src/utils/index.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
// Barrel export for utils
|
|
2
|
-
export * from './motion';
|
|
3
|
-
export * from './format';
|
|
1
|
+
// Barrel export for utils
|
|
2
|
+
export * from './motion';
|
|
3
|
+
export * from './format';
|
package/src/utils/motion.ts
CHANGED
|
@@ -1,89 +1,89 @@
|
|
|
1
|
-
import { Variants } from 'framer-motion';
|
|
2
|
-
|
|
3
|
-
/**
|
|
4
|
-
* Common Framer Motion variants and animation configs
|
|
5
|
-
*/
|
|
6
|
-
|
|
7
|
-
// Slide transition variants
|
|
8
|
-
export const slideVariants: Variants = {
|
|
9
|
-
initial: {
|
|
10
|
-
opacity: 0,
|
|
11
|
-
y: 40
|
|
12
|
-
},
|
|
13
|
-
animate: {
|
|
14
|
-
opacity: 1,
|
|
15
|
-
y: 0,
|
|
16
|
-
transition: {
|
|
17
|
-
duration: 0.4,
|
|
18
|
-
ease: 'easeOut'
|
|
19
|
-
}
|
|
20
|
-
},
|
|
21
|
-
exit: {
|
|
22
|
-
opacity: 0,
|
|
23
|
-
y: -40,
|
|
24
|
-
transition: {
|
|
25
|
-
duration: 0.4,
|
|
26
|
-
ease: 'easeIn'
|
|
27
|
-
}
|
|
28
|
-
}
|
|
29
|
-
};
|
|
30
|
-
|
|
31
|
-
// Fade in from top (for logo)
|
|
32
|
-
export const fadeInFromTop: Variants = {
|
|
33
|
-
initial: { opacity: 0, y: -20 },
|
|
34
|
-
animate: {
|
|
35
|
-
opacity: 1,
|
|
36
|
-
y: 0,
|
|
37
|
-
transition: { duration: 0.5, ease: 'easeOut' }
|
|
38
|
-
}
|
|
39
|
-
};
|
|
40
|
-
|
|
41
|
-
// Scale in (for titles)
|
|
42
|
-
export const scaleIn: Variants = {
|
|
43
|
-
initial: { opacity: 0, scale: 0.9 },
|
|
44
|
-
animate: {
|
|
45
|
-
opacity: 1,
|
|
46
|
-
scale: 1,
|
|
47
|
-
transition: { duration: 0.5, ease: 'easeOut' }
|
|
48
|
-
}
|
|
49
|
-
};
|
|
50
|
-
|
|
51
|
-
// Slide up (for forms)
|
|
52
|
-
export const slideUp: Variants = {
|
|
53
|
-
initial: { opacity: 0, y: 30 },
|
|
54
|
-
animate: {
|
|
55
|
-
opacity: 1,
|
|
56
|
-
y: 0,
|
|
57
|
-
transition: { duration: 0.6, ease: 'easeOut', delay: 0.2 }
|
|
58
|
-
}
|
|
59
|
-
};
|
|
60
|
-
|
|
61
|
-
// Pulse animation (for OTP boxes)
|
|
62
|
-
export const pulse: Variants = {
|
|
63
|
-
initial: { scale: 0.95, opacity: 0 },
|
|
64
|
-
animate: {
|
|
65
|
-
scale: 1,
|
|
66
|
-
opacity: 1,
|
|
67
|
-
transition: { duration: 0.3, ease: 'easeOut' }
|
|
68
|
-
}
|
|
69
|
-
};
|
|
70
|
-
|
|
71
|
-
// Delayed fade in (for secondary text)
|
|
72
|
-
export const delayedFadeIn = (delay: number = 0.5): Variants => ({
|
|
73
|
-
initial: { opacity: 0, x: 12 },
|
|
74
|
-
animate: {
|
|
75
|
-
opacity: 1,
|
|
76
|
-
x: 0,
|
|
77
|
-
transition: { duration: 0.5, ease: 'easeOut', delay }
|
|
78
|
-
}
|
|
79
|
-
});
|
|
80
|
-
|
|
81
|
-
// Floating animation (for decorative frames)
|
|
82
|
-
export const floatingAnimation = {
|
|
83
|
-
x: [-30, 30, -30],
|
|
84
|
-
transition: {
|
|
85
|
-
duration: 24,
|
|
86
|
-
repeat: Infinity,
|
|
87
|
-
ease: 'linear' as const
|
|
88
|
-
}
|
|
89
|
-
};
|
|
1
|
+
import { Variants } from 'framer-motion';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Common Framer Motion variants and animation configs
|
|
5
|
+
*/
|
|
6
|
+
|
|
7
|
+
// Slide transition variants
|
|
8
|
+
export const slideVariants: Variants = {
|
|
9
|
+
initial: {
|
|
10
|
+
opacity: 0,
|
|
11
|
+
y: 40
|
|
12
|
+
},
|
|
13
|
+
animate: {
|
|
14
|
+
opacity: 1,
|
|
15
|
+
y: 0,
|
|
16
|
+
transition: {
|
|
17
|
+
duration: 0.4,
|
|
18
|
+
ease: 'easeOut'
|
|
19
|
+
}
|
|
20
|
+
},
|
|
21
|
+
exit: {
|
|
22
|
+
opacity: 0,
|
|
23
|
+
y: -40,
|
|
24
|
+
transition: {
|
|
25
|
+
duration: 0.4,
|
|
26
|
+
ease: 'easeIn'
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
};
|
|
30
|
+
|
|
31
|
+
// Fade in from top (for logo)
|
|
32
|
+
export const fadeInFromTop: Variants = {
|
|
33
|
+
initial: { opacity: 0, y: -20 },
|
|
34
|
+
animate: {
|
|
35
|
+
opacity: 1,
|
|
36
|
+
y: 0,
|
|
37
|
+
transition: { duration: 0.5, ease: 'easeOut' }
|
|
38
|
+
}
|
|
39
|
+
};
|
|
40
|
+
|
|
41
|
+
// Scale in (for titles)
|
|
42
|
+
export const scaleIn: Variants = {
|
|
43
|
+
initial: { opacity: 0, scale: 0.9 },
|
|
44
|
+
animate: {
|
|
45
|
+
opacity: 1,
|
|
46
|
+
scale: 1,
|
|
47
|
+
transition: { duration: 0.5, ease: 'easeOut' }
|
|
48
|
+
}
|
|
49
|
+
};
|
|
50
|
+
|
|
51
|
+
// Slide up (for forms)
|
|
52
|
+
export const slideUp: Variants = {
|
|
53
|
+
initial: { opacity: 0, y: 30 },
|
|
54
|
+
animate: {
|
|
55
|
+
opacity: 1,
|
|
56
|
+
y: 0,
|
|
57
|
+
transition: { duration: 0.6, ease: 'easeOut', delay: 0.2 }
|
|
58
|
+
}
|
|
59
|
+
};
|
|
60
|
+
|
|
61
|
+
// Pulse animation (for OTP boxes)
|
|
62
|
+
export const pulse: Variants = {
|
|
63
|
+
initial: { scale: 0.95, opacity: 0 },
|
|
64
|
+
animate: {
|
|
65
|
+
scale: 1,
|
|
66
|
+
opacity: 1,
|
|
67
|
+
transition: { duration: 0.3, ease: 'easeOut' }
|
|
68
|
+
}
|
|
69
|
+
};
|
|
70
|
+
|
|
71
|
+
// Delayed fade in (for secondary text)
|
|
72
|
+
export const delayedFadeIn = (delay: number = 0.5): Variants => ({
|
|
73
|
+
initial: { opacity: 0, x: 12 },
|
|
74
|
+
animate: {
|
|
75
|
+
opacity: 1,
|
|
76
|
+
x: 0,
|
|
77
|
+
transition: { duration: 0.5, ease: 'easeOut', delay }
|
|
78
|
+
}
|
|
79
|
+
});
|
|
80
|
+
|
|
81
|
+
// Floating animation (for decorative frames)
|
|
82
|
+
export const floatingAnimation = {
|
|
83
|
+
x: [-30, 30, -30],
|
|
84
|
+
transition: {
|
|
85
|
+
duration: 24,
|
|
86
|
+
repeat: Infinity,
|
|
87
|
+
ease: 'linear' as const
|
|
88
|
+
}
|
|
89
|
+
};
|