@katajere/recap 1.0.2 → 1.0.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (68) hide show
  1. package/README.md +27 -1
  2. package/dist/App.css +156 -120
  3. package/dist/FloatingFrames.css +55 -55
  4. package/dist/LoginScreen.css +146 -146
  5. package/dist/OtpScreen.css +133 -133
  6. package/dist/RecapStory.css +105 -105
  7. package/dist/StoryProgress.css +47 -47
  8. package/dist/assets/huxxle-blue-logo.svg +14 -14
  9. package/dist/assets/login-logo.svg +14 -14
  10. package/dist/assets/slide-logo.svg +14 -14
  11. package/dist/components/Header.css +46 -46
  12. package/dist/index.d.ts +2 -2
  13. package/dist/index.js +2 -2
  14. package/dist/slides/Slide10Final.css +101 -101
  15. package/dist/slides/Slide1Intro.css +235 -261
  16. package/dist/slides/Slide2Days.css +209 -209
  17. package/dist/slides/Slide3Revenue.css +89 -89
  18. package/dist/slides/Slide4Orders.css +135 -135
  19. package/dist/slides/Slide5Buyers.css +140 -140
  20. package/dist/slides/Slide6Customer.css +92 -92
  21. package/dist/slides/Slide7Products.css +144 -144
  22. package/dist/slides/Slide8Months.css +148 -148
  23. package/dist/slides/Slide9Year.css +93 -93
  24. package/package.json +17 -32
  25. package/src/App.css +156 -120
  26. package/src/FloatingFrames.css +55 -55
  27. package/src/FloatingFrames.tsx +27 -27
  28. package/src/LoginScreen.css +146 -146
  29. package/src/LoginScreen.tsx +70 -70
  30. package/src/OtpScreen.css +133 -133
  31. package/src/OtpScreen.tsx +109 -109
  32. package/src/RecapApp.tsx +34 -34
  33. package/src/RecapStory.css +105 -105
  34. package/src/RecapStory.tsx +269 -269
  35. package/src/StoryProgress.css +47 -47
  36. package/src/StoryProgress.tsx +60 -60
  37. package/src/assets.d.ts +41 -41
  38. package/src/components/Header.css +46 -46
  39. package/src/components/Header.tsx +41 -41
  40. package/src/data/mock.ts +62 -62
  41. package/src/data/recapCopy.ts +33 -33
  42. package/src/hooks/useBackgroundMusic.ts +79 -79
  43. package/src/index.ts +70 -70
  44. package/src/react-app-env.d.ts +26 -26
  45. package/src/slides/Slide10Final.css +101 -101
  46. package/src/slides/Slide10Final.tsx +105 -105
  47. package/src/slides/Slide1Intro.css +235 -261
  48. package/src/slides/Slide1Intro.tsx +141 -141
  49. package/src/slides/Slide2Days.css +209 -209
  50. package/src/slides/Slide2Days.tsx +92 -92
  51. package/src/slides/Slide3Revenue.css +89 -89
  52. package/src/slides/Slide3Revenue.tsx +76 -76
  53. package/src/slides/Slide4Orders.css +135 -135
  54. package/src/slides/Slide4Orders.tsx +63 -63
  55. package/src/slides/Slide5Buyers.css +140 -140
  56. package/src/slides/Slide5Buyers.tsx +74 -74
  57. package/src/slides/Slide6Customer.css +92 -92
  58. package/src/slides/Slide6Customer.tsx +27 -27
  59. package/src/slides/Slide7Products.css +144 -144
  60. package/src/slides/Slide7Products.tsx +81 -81
  61. package/src/slides/Slide8Months.css +148 -148
  62. package/src/slides/Slide8Months.tsx +63 -63
  63. package/src/slides/Slide9Year.css +93 -93
  64. package/src/slides/Slide9Year.tsx +35 -35
  65. package/src/types.ts +39 -39
  66. package/src/utils/format.ts +18 -18
  67. package/src/utils/index.ts +3 -3
  68. package/src/utils/motion.ts +89 -89
@@ -1,146 +1,146 @@
1
- /* LoginScreen.css */
2
- .login-screen {
3
- position: relative;
4
- width: 100%;
5
- height: 100%;
6
- /* background: linear-gradient(180deg, #3F3DAD 0%, #CC6240 100%); */
7
- overflow: hidden;
8
- display: flex;
9
- flex-direction: column;
10
- padding: clamp(20px, 3dvh, 32px) clamp(16px, 4.1vw, 20px) calc(clamp(32px, 5dvh, 48px) + env(safe-area-inset-bottom));
11
- box-sizing: border-box;
12
- }
13
-
14
- /* Top logo area - 3% margin from top via padding */
15
- .login-screen__header {
16
- flex: none;
17
- width: 100%;
18
- height: 3.79%;
19
- min-height: 32px;
20
- margin-bottom: 6%;
21
- }
22
-
23
- /* Middle hero section - grows to fill space */
24
- .login-screen__hero {
25
- flex: 1;
26
- display: flex;
27
- flex-direction: column;
28
- align-items: flex-start;
29
- justify-content: center;
30
- gap: 1.9%;
31
- width: 100%;
32
- }
33
-
34
- .login-screen__title {
35
- width: 100%;
36
- font-family: 'Lora', serif;
37
- font-style: normal;
38
- font-weight: 700;
39
- font-size: clamp(48px, 18.46vw, 72px);
40
- line-height: 1.28;
41
- text-transform: capitalize;
42
- background: linear-gradient(90deg, #FFFFFF 0%, #FFCC80 100%);
43
- -webkit-background-clip: text;
44
- -webkit-text-fill-color: transparent;
45
- background-clip: text;
46
- margin: 0;
47
- white-space: normal;
48
- word-wrap: break-word;
49
- }
50
-
51
- .login-screen__subtitle {
52
- width: 100%;
53
- font-family: 'Lora', serif;
54
- font-style: normal;
55
- font-weight: 400;
56
- font-size: clamp(14px, 4.1vw, 16px);
57
- line-height: 1.2;
58
- background: linear-gradient(90deg, #FFFFFF 0%, #FFCC80 100%);
59
- -webkit-background-clip: text;
60
- -webkit-text-fill-color: transparent;
61
- background-clip: text;
62
- margin: 0;
63
- }
64
-
65
- /* Bottom form section - 5% margin from bottom via parent padding */
66
- .login-screen__form {
67
- flex: none;
68
- display: flex;
69
- flex-direction: column;
70
- align-items: flex-start;
71
- gap: 16px;
72
- width: 100%;
73
- }
74
-
75
- .form-group {
76
- display: flex;
77
- flex-direction: column;
78
- align-items: flex-start;
79
- gap: 8px;
80
- width: 100%;
81
- }
82
-
83
- .form-label {
84
- width: 100%;
85
- font-family: 'Lora', serif;
86
- font-style: normal;
87
- font-weight: 400;
88
- font-size: clamp(10px, 3.08vw, 12px);
89
- line-height: 120%;
90
- color: #FCFCFC;
91
- opacity: 0.89;
92
- }
93
-
94
- .form-input {
95
- box-sizing: border-box;
96
- display: flex;
97
- flex-direction: row;
98
- align-items: center;
99
- padding: 1.42% 4.1%;
100
- width: 100%;
101
- height: 5.69%;
102
- min-height: 48px;
103
- background: transparent;
104
- border: 1px solid #FCFCFC;
105
- font-family: 'Lora', serif;
106
- font-style: normal;
107
- font-weight: 400;
108
- font-size: clamp(14px, 4.1vw, 16px);
109
- line-height: 120%;
110
- color: #FCFCFC;
111
- outline: none;
112
- }
113
-
114
- .form-input::placeholder {
115
- color: #FCFCFC;
116
- opacity: 0.7;
117
- }
118
-
119
- .btn-primary {
120
- display: flex;
121
- flex-direction: row;
122
- justify-content: center;
123
- align-items: center;
124
- padding: 1.42% 4.1%;
125
- width: 100%;
126
- height: 5.69%;
127
- min-height: 48px;
128
- background: #FCFCFC;
129
- border: none;
130
- font-family: 'Lora', serif;
131
- font-style: normal;
132
- font-weight: 600;
133
- font-size: clamp(14px, 4.1vw, 16px);
134
- line-height: 120%;
135
- color: #4F4CD8;
136
- cursor: pointer;
137
- transition: opacity 0.2s;
138
- }
139
-
140
- .btn-primary:hover {
141
- opacity: 0.9;
142
- }
143
-
144
- .btn-primary:active {
145
- opacity: 0.8;
146
- }
1
+ /* LoginScreen.css */
2
+ .login-screen {
3
+ position: relative;
4
+ width: 100%;
5
+ height: 100%;
6
+ /* background: linear-gradient(180deg, #3F3DAD 0%, #CC6240 100%); */
7
+ overflow: hidden;
8
+ display: flex;
9
+ flex-direction: column;
10
+ padding: clamp(20px, 3dvh, 32px) clamp(16px, 4.1vw, 20px) calc(clamp(32px, 5dvh, 48px) + env(safe-area-inset-bottom));
11
+ box-sizing: border-box;
12
+ }
13
+
14
+ /* Top logo area - 3% margin from top via padding */
15
+ .login-screen__header {
16
+ flex: none;
17
+ width: 100%;
18
+ height: 3.79%;
19
+ min-height: 32px;
20
+ margin-bottom: 6%;
21
+ }
22
+
23
+ /* Middle hero section - grows to fill space */
24
+ .login-screen__hero {
25
+ flex: 1;
26
+ display: flex;
27
+ flex-direction: column;
28
+ align-items: flex-start;
29
+ justify-content: center;
30
+ gap: 1.9%;
31
+ width: 100%;
32
+ }
33
+
34
+ .login-screen__title {
35
+ width: 100%;
36
+ font-family: 'Lora', serif;
37
+ font-style: normal;
38
+ font-weight: 700;
39
+ font-size: clamp(48px, 18.46vw, 72px);
40
+ line-height: 1.28;
41
+ text-transform: capitalize;
42
+ background: linear-gradient(90deg, #FFFFFF 0%, #FFCC80 100%);
43
+ -webkit-background-clip: text;
44
+ -webkit-text-fill-color: transparent;
45
+ background-clip: text;
46
+ margin: 0;
47
+ white-space: normal;
48
+ word-wrap: break-word;
49
+ }
50
+
51
+ .login-screen__subtitle {
52
+ width: 100%;
53
+ font-family: 'Lora', serif;
54
+ font-style: normal;
55
+ font-weight: 400;
56
+ font-size: clamp(14px, 4.1vw, 16px);
57
+ line-height: 1.2;
58
+ background: linear-gradient(90deg, #FFFFFF 0%, #FFCC80 100%);
59
+ -webkit-background-clip: text;
60
+ -webkit-text-fill-color: transparent;
61
+ background-clip: text;
62
+ margin: 0;
63
+ }
64
+
65
+ /* Bottom form section - 5% margin from bottom via parent padding */
66
+ .login-screen__form {
67
+ flex: none;
68
+ display: flex;
69
+ flex-direction: column;
70
+ align-items: flex-start;
71
+ gap: 16px;
72
+ width: 100%;
73
+ }
74
+
75
+ .form-group {
76
+ display: flex;
77
+ flex-direction: column;
78
+ align-items: flex-start;
79
+ gap: 8px;
80
+ width: 100%;
81
+ }
82
+
83
+ .form-label {
84
+ width: 100%;
85
+ font-family: 'Lora', serif;
86
+ font-style: normal;
87
+ font-weight: 400;
88
+ font-size: clamp(10px, 3.08vw, 12px);
89
+ line-height: 120%;
90
+ color: #FCFCFC;
91
+ opacity: 0.89;
92
+ }
93
+
94
+ .form-input {
95
+ box-sizing: border-box;
96
+ display: flex;
97
+ flex-direction: row;
98
+ align-items: center;
99
+ padding: 1.42% 4.1%;
100
+ width: 100%;
101
+ height: 5.69%;
102
+ min-height: 48px;
103
+ background: transparent;
104
+ border: 1px solid #FCFCFC;
105
+ font-family: 'Lora', serif;
106
+ font-style: normal;
107
+ font-weight: 400;
108
+ font-size: clamp(14px, 4.1vw, 16px);
109
+ line-height: 120%;
110
+ color: #FCFCFC;
111
+ outline: none;
112
+ }
113
+
114
+ .form-input::placeholder {
115
+ color: #FCFCFC;
116
+ opacity: 0.7;
117
+ }
118
+
119
+ .btn-primary {
120
+ display: flex;
121
+ flex-direction: row;
122
+ justify-content: center;
123
+ align-items: center;
124
+ padding: 1.42% 4.1%;
125
+ width: 100%;
126
+ height: 5.69%;
127
+ min-height: 48px;
128
+ background: #FCFCFC;
129
+ border: none;
130
+ font-family: 'Lora', serif;
131
+ font-style: normal;
132
+ font-weight: 600;
133
+ font-size: clamp(14px, 4.1vw, 16px);
134
+ line-height: 120%;
135
+ color: #4F4CD8;
136
+ cursor: pointer;
137
+ transition: opacity 0.2s;
138
+ }
139
+
140
+ .btn-primary:hover {
141
+ opacity: 0.9;
142
+ }
143
+
144
+ .btn-primary:active {
145
+ opacity: 0.8;
146
+ }
@@ -1,70 +1,70 @@
1
- import React, { useState } from 'react';
2
- import { motion } from 'framer-motion';
3
- import { scaleIn, slideUp } from './utils';
4
- import Header from './components/Header';
5
- import './LoginScreen.css';
6
-
7
- interface LoginScreenProps {
8
- onSubmit: (identifier: string) => void;
9
- }
10
-
11
- /**
12
- * LoginScreen - Landing/login page with animations
13
- */
14
- function LoginScreen({ onSubmit }: LoginScreenProps) {
15
- const [identifier, setIdentifier] = useState('');
16
-
17
- const handleSubmit = (e: React.FormEvent) => {
18
- e.preventDefault();
19
- if (identifier.trim()) {
20
- onSubmit(identifier);
21
- }
22
- };
23
-
24
- return (
25
- <div className="login-screen">
26
- {/* Top logo area */}
27
- <div className="login-screen__header">
28
- <Header />
29
- </div>
30
-
31
- {/* Middle hero section */}
32
- <motion.div
33
- className="login-screen__hero"
34
- variants={scaleIn}
35
- initial="initial"
36
- animate="animate"
37
- >
38
- <h1 className="login-screen__title">Recap 25'</h1>
39
- <p className="login-screen__subtitle">Welcome, Log in to Get Started</p>
40
- </motion.div>
41
-
42
- {/* Bottom form section */}
43
- <motion.form
44
- className="login-screen__form"
45
- onSubmit={handleSubmit}
46
- variants={slideUp}
47
- initial="initial"
48
- animate="animate"
49
- >
50
- <div className="form-group">
51
- <label htmlFor="identifier" className="form-label">Email or Phone Number</label>
52
- <input
53
- id="identifier"
54
- type="text"
55
- placeholder="Enter email or phone"
56
- value={identifier}
57
- onChange={(e) => setIdentifier(e.target.value)}
58
- className="form-input"
59
- />
60
- </div>
61
-
62
- <button type="submit" className="btn-primary">
63
- Log In
64
- </button>
65
- </motion.form>
66
- </div>
67
- );
68
- }
69
-
70
- export default LoginScreen;
1
+ import React, { useState } from 'react';
2
+ import { motion } from 'framer-motion';
3
+ import { scaleIn, slideUp } from './utils';
4
+ import Header from './components/Header';
5
+ import './LoginScreen.css';
6
+
7
+ interface LoginScreenProps {
8
+ onSubmit: (identifier: string) => void;
9
+ }
10
+
11
+ /**
12
+ * LoginScreen - Landing/login page with animations
13
+ */
14
+ function LoginScreen({ onSubmit }: LoginScreenProps) {
15
+ const [identifier, setIdentifier] = useState('');
16
+
17
+ const handleSubmit = (e: React.FormEvent) => {
18
+ e.preventDefault();
19
+ if (identifier.trim()) {
20
+ onSubmit(identifier);
21
+ }
22
+ };
23
+
24
+ return (
25
+ <div className="login-screen">
26
+ {/* Top logo area */}
27
+ <div className="login-screen__header">
28
+ <Header />
29
+ </div>
30
+
31
+ {/* Middle hero section */}
32
+ <motion.div
33
+ className="login-screen__hero"
34
+ variants={scaleIn}
35
+ initial="initial"
36
+ animate="animate"
37
+ >
38
+ <h1 className="login-screen__title">Recap 25'</h1>
39
+ <p className="login-screen__subtitle">Welcome, Log in to Get Started</p>
40
+ </motion.div>
41
+
42
+ {/* Bottom form section */}
43
+ <motion.form
44
+ className="login-screen__form"
45
+ onSubmit={handleSubmit}
46
+ variants={slideUp}
47
+ initial="initial"
48
+ animate="animate"
49
+ >
50
+ <div className="form-group">
51
+ <label htmlFor="identifier" className="form-label">Email or Phone Number</label>
52
+ <input
53
+ id="identifier"
54
+ type="text"
55
+ placeholder="Enter email or phone"
56
+ value={identifier}
57
+ onChange={(e) => setIdentifier(e.target.value)}
58
+ className="form-input"
59
+ />
60
+ </div>
61
+
62
+ <button type="submit" className="btn-primary">
63
+ Log In
64
+ </button>
65
+ </motion.form>
66
+ </div>
67
+ );
68
+ }
69
+
70
+ export default LoginScreen;