@katajere/recap 1.0.3 → 1.0.10

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 (65) hide show
  1. package/dist/App.css +156 -156
  2. package/dist/FloatingFrames.css +55 -55
  3. package/dist/LoginScreen.css +146 -146
  4. package/dist/OtpScreen.css +133 -133
  5. package/dist/RecapStory.css +105 -105
  6. package/dist/StoryProgress.css +47 -47
  7. package/dist/assets/huxxle-blue-logo.svg +14 -14
  8. package/dist/assets/login-logo.svg +14 -14
  9. package/dist/assets/slide-logo.svg +14 -14
  10. package/dist/components/Header.css +46 -46
  11. package/dist/slides/Slide10Final.css +101 -101
  12. package/dist/slides/Slide1Intro.css +235 -235
  13. package/dist/slides/Slide2Days.css +209 -209
  14. package/dist/slides/Slide3Revenue.css +89 -89
  15. package/dist/slides/Slide4Orders.css +135 -135
  16. package/dist/slides/Slide5Buyers.css +140 -140
  17. package/dist/slides/Slide6Customer.css +92 -92
  18. package/dist/slides/Slide7Products.css +144 -144
  19. package/dist/slides/Slide8Months.css +148 -148
  20. package/dist/slides/Slide9Year.css +93 -93
  21. package/package.json +1 -1
  22. package/src/App.css +156 -156
  23. package/src/FloatingFrames.css +55 -55
  24. package/src/FloatingFrames.tsx +27 -27
  25. package/src/LoginScreen.css +146 -146
  26. package/src/LoginScreen.tsx +70 -70
  27. package/src/OtpScreen.css +133 -133
  28. package/src/OtpScreen.tsx +109 -109
  29. package/src/RecapApp.tsx +34 -34
  30. package/src/RecapStory.css +105 -105
  31. package/src/RecapStory.tsx +269 -269
  32. package/src/StoryProgress.css +47 -47
  33. package/src/StoryProgress.tsx +60 -60
  34. package/src/assets.d.ts +41 -41
  35. package/src/components/Header.css +46 -46
  36. package/src/components/Header.tsx +41 -41
  37. package/src/data/mock.ts +62 -62
  38. package/src/data/recapCopy.ts +33 -33
  39. package/src/hooks/useBackgroundMusic.ts +79 -79
  40. package/src/index.ts +70 -70
  41. package/src/react-app-env.d.ts +26 -26
  42. package/src/slides/Slide10Final.css +101 -101
  43. package/src/slides/Slide10Final.tsx +105 -105
  44. package/src/slides/Slide1Intro.css +235 -235
  45. package/src/slides/Slide1Intro.tsx +141 -141
  46. package/src/slides/Slide2Days.css +209 -209
  47. package/src/slides/Slide2Days.tsx +92 -92
  48. package/src/slides/Slide3Revenue.css +89 -89
  49. package/src/slides/Slide3Revenue.tsx +76 -76
  50. package/src/slides/Slide4Orders.css +135 -135
  51. package/src/slides/Slide4Orders.tsx +63 -63
  52. package/src/slides/Slide5Buyers.css +140 -140
  53. package/src/slides/Slide5Buyers.tsx +74 -74
  54. package/src/slides/Slide6Customer.css +92 -92
  55. package/src/slides/Slide6Customer.tsx +27 -27
  56. package/src/slides/Slide7Products.css +144 -144
  57. package/src/slides/Slide7Products.tsx +81 -81
  58. package/src/slides/Slide8Months.css +148 -148
  59. package/src/slides/Slide8Months.tsx +63 -63
  60. package/src/slides/Slide9Year.css +93 -93
  61. package/src/slides/Slide9Year.tsx +35 -35
  62. package/src/types.ts +39 -39
  63. package/src/utils/format.ts +18 -18
  64. package/src/utils/index.ts +3 -3
  65. package/src/utils/motion.ts +89 -89
@@ -1,209 +1,209 @@
1
- /* Slide2Days - Figma exact specifications */
2
-
3
- .slide2-days {
4
- position: relative;
5
- width: 100%;
6
- height: 100%;
7
- overflow: hidden;
8
- }
9
-
10
- /* Top heading - "Make we look the numbers" */
11
- .slide2-days__heading {
12
- position: absolute;
13
- width: 91.79%;
14
- /* left: 4.1%;
15
- top: 10.66%; */
16
- font-family: 'Lora', serif;
17
- font-style: normal;
18
- font-weight: 400;
19
- color: white;
20
- /* margin: 0 0 4.74% 0; */
21
- margin: calc(108px + env(safe-area-inset-top)) calc(16px + env(safe-area-inset-left)) 0 calc(16px + env(safe-area-inset-right));
22
- text-align: left;
23
- z-index: 3;
24
- }
25
-
26
- /* Floating rectangles under heading */
27
- .slide2-days__frames {
28
- display: flex;
29
- flex-direction: row;
30
- justify-content: center;
31
- align-items: center;
32
- padding: 0;
33
- gap: clamp(8px, 3.08vw, 12px);
34
- position: absolute;
35
- width: 100%;
36
- /* height: 28.4vh; */
37
- left: 0;
38
- top: 21.68vh;
39
- /* margin: calc(183px + env(safe-area-inset-top)) calc(16px + env(safe-area-inset-left)) 0 calc(16px + env(safe-area-inset-right)); */
40
- z-index: 2;
41
- }
42
-
43
- .slide2-days__frames .frame-rect {
44
- box-sizing: border-box;
45
- width: clamp(140px, 46.15vw, 180px);
46
- height: 28.4vh;
47
- /* aspect-ratio: 180 / 240; */
48
- border: 1px solid #FFFFFF;
49
- flex: none;
50
- /* flex-grow: 0; */
51
- }
52
-
53
- /* Days stats section */
54
- .slide2-days__stats-section {
55
- display: flex;
56
- flex-direction: column;
57
- align-items: flex-start;
58
- padding: 0;
59
- /* gap: 40px; */
60
- position: absolute;
61
- width: 91.79%;
62
- /* left: 4.1vh;
63
- top: 56.75vh; */
64
- margin: calc(56.75vh + env(safe-area-inset-top)) calc(16px + env(safe-area-inset-left)) 0 calc(16px + env(safe-area-inset-right));
65
- z-index: 3;
66
- }
67
-
68
- .stats-label {
69
- width: 100%;
70
- font-family: 'Lora', serif;
71
- font-style: normal;
72
- font-weight: 500;
73
- font-size: 2.8vh;
74
- /* line-height: 72px; */
75
- background: linear-gradient(90deg, #FFFFFF 0%, #FFCC80 100%);
76
- -webkit-background-clip: text;
77
- -webkit-text-fill-color: transparent;
78
- background-clip: text;
79
- margin: 0;
80
- flex: none;
81
- order: 0;
82
- align-self: stretch;
83
- flex-grow: 0;
84
- }
85
-
86
- .stats-container {
87
- display: flex;
88
- flex-direction: column;
89
- align-items: flex-start;
90
- padding: 0;
91
- /* gap: 20px; */
92
- width: 100%;
93
- flex: none;
94
- order: 1;
95
- align-self: stretch;
96
- flex-grow: 0;
97
- }
98
-
99
- .stats-number {
100
- width: 100%;
101
- font-family: 'Lora', serif;
102
- font-style: normal;
103
- font-weight: 700;
104
- font-size: 10.37vh;
105
- /* line-height: 115px; */
106
- background: linear-gradient(90deg, #FFFFFF 0%, #FFCC80 100%);
107
- -webkit-background-clip: text;
108
- -webkit-text-fill-color: transparent;
109
- background-clip: text;
110
- margin: 0;
111
- flex: none;
112
- order: 0;
113
- align-self: stretch;
114
- flex-grow: 0;
115
- }
116
-
117
- .stats-sublabel {
118
- width: 100%;
119
- font-family: 'Lora', serif;
120
- font-style: normal;
121
- font-weight: 400;
122
- font-size: clamp(14px, 4.1vw, 16px);
123
- /* line-height: 72px; */
124
- background: linear-gradient(90deg, #FFFFFF 0%, #FFCC80 100%);
125
- -webkit-background-clip: text;
126
- -webkit-text-fill-color: transparent;
127
- background-clip: text;
128
- margin: 0;
129
- flex: none;
130
- order: 1;
131
- align-self: stretch;
132
- flex-grow: 0;
133
- }
134
-
135
- /* Divider line */
136
- .slide2-days__divider {
137
- position: absolute;
138
- width: 74.1%;
139
- height: 0;
140
- left: 25.9%;
141
- top: 79.86vh;
142
- opacity: 0.4;
143
- border: 0.24vh solid #FFFFFF;
144
- transform-origin: left;
145
- z-index: 3;
146
- }
147
-
148
- /* @media (min-height: 720px) {
149
- .slide2-days__divider {
150
- top: 79.86%;
151
- bottom: auto;
152
- }
153
- } */
154
-
155
- /* Streak section */
156
- .slide2-days__streak-section {
157
- display: flex;
158
- flex-direction: column;
159
- align-items: flex-end;
160
- padding: 0;
161
- /* gap: 40px; */
162
- position: absolute;
163
- width: 91.79%;
164
- left: 4.1%;
165
- top: 82.23vh;
166
- z-index: 3;
167
- }
168
-
169
- /* @media (min-height: 720px) {
170
- .slide2-days__streak-section {
171
- top: 82.23%;
172
- bottom: auto;
173
- }
174
- } */
175
-
176
- .streak-number {
177
- width: 100%;
178
- font-family: 'Lora', serif;
179
- font-style: normal;
180
- font-weight: 700;
181
- font-size: 6.64vh;
182
- /* line-height: 115px; */
183
- text-align: right;
184
- background: linear-gradient(90deg, #FFFFFF 0%, #FFCC80 100%);
185
- -webkit-background-clip: text;
186
- -webkit-text-fill-color: transparent;
187
- background-clip: text;
188
- margin: 0;
189
- flex: none;
190
- order: 0;
191
- align-self: stretch;
192
- flex-grow: 0;
193
- }
194
-
195
- .streak-label {
196
- width: 100%;
197
- font-family: 'Lora', serif;
198
- font-style: normal;
199
- font-weight: 400;
200
- font-size: clamp(14px, 4.1vw, 16px);
201
- /* line-height: 72px; */
202
- text-align: right;
203
- flex: none;
204
- order: 1;
205
- align-self: stretch;
206
- flex-grow: 0;
207
- color: white;
208
- margin: 0 0 4.74% 0;
209
- }
1
+ /* Slide2Days - Figma exact specifications */
2
+
3
+ .slide2-days {
4
+ position: relative;
5
+ width: 100%;
6
+ height: 100%;
7
+ overflow: hidden;
8
+ }
9
+
10
+ /* Top heading - "Make we look the numbers" */
11
+ .slide2-days__heading {
12
+ position: absolute;
13
+ width: 91.79%;
14
+ /* left: 4.1%;
15
+ top: 10.66%; */
16
+ font-family: 'Lora', serif;
17
+ font-style: normal;
18
+ font-weight: 400;
19
+ color: white;
20
+ /* margin: 0 0 4.74% 0; */
21
+ margin: calc(108px + env(safe-area-inset-top)) calc(16px + env(safe-area-inset-left)) 0 calc(16px + env(safe-area-inset-right));
22
+ text-align: left;
23
+ z-index: 3;
24
+ }
25
+
26
+ /* Floating rectangles under heading */
27
+ .slide2-days__frames {
28
+ display: flex;
29
+ flex-direction: row;
30
+ justify-content: center;
31
+ align-items: center;
32
+ padding: 0;
33
+ gap: clamp(8px, 3.08vw, 12px);
34
+ position: absolute;
35
+ width: 100%;
36
+ /* height: 28.4vh; */
37
+ left: 0;
38
+ top: 21.68vh;
39
+ /* margin: calc(183px + env(safe-area-inset-top)) calc(16px + env(safe-area-inset-left)) 0 calc(16px + env(safe-area-inset-right)); */
40
+ z-index: 2;
41
+ }
42
+
43
+ .slide2-days__frames .frame-rect {
44
+ box-sizing: border-box;
45
+ width: clamp(140px, 46.15vw, 180px);
46
+ height: 28.4vh;
47
+ /* aspect-ratio: 180 / 240; */
48
+ border: 1px solid #FFFFFF;
49
+ flex: none;
50
+ /* flex-grow: 0; */
51
+ }
52
+
53
+ /* Days stats section */
54
+ .slide2-days__stats-section {
55
+ display: flex;
56
+ flex-direction: column;
57
+ align-items: flex-start;
58
+ padding: 0;
59
+ /* gap: 40px; */
60
+ position: absolute;
61
+ width: 91.79%;
62
+ /* left: 4.1vh;
63
+ top: 56.75vh; */
64
+ margin: calc(56.75vh + env(safe-area-inset-top)) calc(16px + env(safe-area-inset-left)) 0 calc(16px + env(safe-area-inset-right));
65
+ z-index: 3;
66
+ }
67
+
68
+ .stats-label {
69
+ width: 100%;
70
+ font-family: 'Lora', serif;
71
+ font-style: normal;
72
+ font-weight: 500;
73
+ font-size: 2.8vh;
74
+ /* line-height: 72px; */
75
+ background: linear-gradient(90deg, #FFFFFF 0%, #FFCC80 100%);
76
+ -webkit-background-clip: text;
77
+ -webkit-text-fill-color: transparent;
78
+ background-clip: text;
79
+ margin: 0;
80
+ flex: none;
81
+ order: 0;
82
+ align-self: stretch;
83
+ flex-grow: 0;
84
+ }
85
+
86
+ .stats-container {
87
+ display: flex;
88
+ flex-direction: column;
89
+ align-items: flex-start;
90
+ padding: 0;
91
+ /* gap: 20px; */
92
+ width: 100%;
93
+ flex: none;
94
+ order: 1;
95
+ align-self: stretch;
96
+ flex-grow: 0;
97
+ }
98
+
99
+ .stats-number {
100
+ width: 100%;
101
+ font-family: 'Lora', serif;
102
+ font-style: normal;
103
+ font-weight: 700;
104
+ font-size: 10.37vh;
105
+ /* line-height: 115px; */
106
+ background: linear-gradient(90deg, #FFFFFF 0%, #FFCC80 100%);
107
+ -webkit-background-clip: text;
108
+ -webkit-text-fill-color: transparent;
109
+ background-clip: text;
110
+ margin: 0;
111
+ flex: none;
112
+ order: 0;
113
+ align-self: stretch;
114
+ flex-grow: 0;
115
+ }
116
+
117
+ .stats-sublabel {
118
+ width: 100%;
119
+ font-family: 'Lora', serif;
120
+ font-style: normal;
121
+ font-weight: 400;
122
+ font-size: clamp(14px, 4.1vw, 16px);
123
+ /* line-height: 72px; */
124
+ background: linear-gradient(90deg, #FFFFFF 0%, #FFCC80 100%);
125
+ -webkit-background-clip: text;
126
+ -webkit-text-fill-color: transparent;
127
+ background-clip: text;
128
+ margin: 0;
129
+ flex: none;
130
+ order: 1;
131
+ align-self: stretch;
132
+ flex-grow: 0;
133
+ }
134
+
135
+ /* Divider line */
136
+ .slide2-days__divider {
137
+ position: absolute;
138
+ width: 74.1%;
139
+ height: 0;
140
+ left: 25.9%;
141
+ top: 79.86vh;
142
+ opacity: 0.4;
143
+ border: 0.24vh solid #FFFFFF;
144
+ transform-origin: left;
145
+ z-index: 3;
146
+ }
147
+
148
+ /* @media (min-height: 720px) {
149
+ .slide2-days__divider {
150
+ top: 79.86%;
151
+ bottom: auto;
152
+ }
153
+ } */
154
+
155
+ /* Streak section */
156
+ .slide2-days__streak-section {
157
+ display: flex;
158
+ flex-direction: column;
159
+ align-items: flex-end;
160
+ padding: 0;
161
+ /* gap: 40px; */
162
+ position: absolute;
163
+ width: 91.79%;
164
+ left: 4.1%;
165
+ top: 82.23vh;
166
+ z-index: 3;
167
+ }
168
+
169
+ /* @media (min-height: 720px) {
170
+ .slide2-days__streak-section {
171
+ top: 82.23%;
172
+ bottom: auto;
173
+ }
174
+ } */
175
+
176
+ .streak-number {
177
+ width: 100%;
178
+ font-family: 'Lora', serif;
179
+ font-style: normal;
180
+ font-weight: 700;
181
+ font-size: 6.64vh;
182
+ /* line-height: 115px; */
183
+ text-align: right;
184
+ background: linear-gradient(90deg, #FFFFFF 0%, #FFCC80 100%);
185
+ -webkit-background-clip: text;
186
+ -webkit-text-fill-color: transparent;
187
+ background-clip: text;
188
+ margin: 0;
189
+ flex: none;
190
+ order: 0;
191
+ align-self: stretch;
192
+ flex-grow: 0;
193
+ }
194
+
195
+ .streak-label {
196
+ width: 100%;
197
+ font-family: 'Lora', serif;
198
+ font-style: normal;
199
+ font-weight: 400;
200
+ font-size: clamp(14px, 4.1vw, 16px);
201
+ /* line-height: 72px; */
202
+ text-align: right;
203
+ flex: none;
204
+ order: 1;
205
+ align-self: stretch;
206
+ flex-grow: 0;
207
+ color: white;
208
+ margin: 0 0 4.74% 0;
209
+ }
@@ -1,89 +1,89 @@
1
- .slide3-revenue {
2
- position: relative;
3
- width: 100%;
4
- min-height: 100%;
5
- overflow: hidden;
6
- display: flex;
7
- align-items: center;
8
- justify-content: center;
9
- padding: 9.48% 6.15% 7.11%;
10
- }
11
-
12
- @media (max-height: 720px), (orientation: landscape) {
13
- .slide3-revenue {
14
- padding: clamp(24px, 5vh, 40px) 6.15% clamp(24px, 4vh, 32px);
15
- }
16
- }
17
-
18
- .slide3-revenue__overlay {
19
- position: absolute;
20
- inset: 0;
21
- background-size: cover;
22
- background-repeat: no-repeat;
23
- background-position: center;
24
- opacity: 0.05;
25
- mix-blend-mode: screen;
26
- z-index: 0;
27
- filter: brightness(0.75);
28
- }
29
-
30
- .slide3-revenue__content {
31
- position: relative;
32
- z-index: 1;
33
- width: 100%;
34
- display: flex;
35
- flex-direction: column;
36
- align-items: center;
37
- justify-content: center;
38
- gap: 2.84vh;
39
- text-align: center;
40
- }
41
-
42
- .gradient-text {
43
- background: linear-gradient(90deg, #FFFFFF 0%, #FFCC80 100%);
44
- -webkit-background-clip: text;
45
- -webkit-text-fill-color: transparent;
46
- background-clip: text;
47
- color: transparent;
48
- }
49
-
50
- .slide3-revenue__title {
51
- font-family: 'Lora', 'Georgia', serif;
52
- font-size: 2.84vh;
53
- font-weight: 500;
54
- letter-spacing: 0.04em;
55
- margin: 0;
56
- }
57
-
58
- .slide3-revenue__amount {
59
- font-family: 'Lora', 'Georgia', serif;
60
- font-size: 7.58vh;
61
- font-weight: 700;
62
- line-height: 1;
63
- margin: 0;
64
- }
65
-
66
- .slide3-revenue__subline {
67
- font-family: 'Lora', 'Georgia', serif;
68
- font-size: 1.9vh;
69
- font-weight: 400;
70
- margin: 0;
71
- }
72
-
73
- .slide3-revenue__footer {
74
- position: absolute;
75
- bottom: 4.74%;
76
- left: 4.1%;
77
- transform: translateX(0);
78
- font-family: 'Lora', 'Georgia', serif;
79
- font-size: clamp(14px, 4.1vw, 16px);
80
- font-weight: 400;
81
- letter-spacing: 0.03em;
82
- z-index: 1;
83
- }
84
-
85
- @media (max-width: 480px) {
86
- .slide3-revenue {
87
- padding: 7.11% 4.1% 5.69%;
88
- }
89
- }
1
+ .slide3-revenue {
2
+ position: relative;
3
+ width: 100%;
4
+ min-height: 100%;
5
+ overflow: hidden;
6
+ display: flex;
7
+ align-items: center;
8
+ justify-content: center;
9
+ padding: 9.48% 6.15% 7.11%;
10
+ }
11
+
12
+ @media (max-height: 720px), (orientation: landscape) {
13
+ .slide3-revenue {
14
+ padding: clamp(24px, 5vh, 40px) 6.15% clamp(24px, 4vh, 32px);
15
+ }
16
+ }
17
+
18
+ .slide3-revenue__overlay {
19
+ position: absolute;
20
+ inset: 0;
21
+ background-size: cover;
22
+ background-repeat: no-repeat;
23
+ background-position: center;
24
+ opacity: 0.05;
25
+ mix-blend-mode: screen;
26
+ z-index: 0;
27
+ filter: brightness(0.75);
28
+ }
29
+
30
+ .slide3-revenue__content {
31
+ position: relative;
32
+ z-index: 1;
33
+ width: 100%;
34
+ display: flex;
35
+ flex-direction: column;
36
+ align-items: center;
37
+ justify-content: center;
38
+ gap: 2.84vh;
39
+ text-align: center;
40
+ }
41
+
42
+ .gradient-text {
43
+ background: linear-gradient(90deg, #FFFFFF 0%, #FFCC80 100%);
44
+ -webkit-background-clip: text;
45
+ -webkit-text-fill-color: transparent;
46
+ background-clip: text;
47
+ color: transparent;
48
+ }
49
+
50
+ .slide3-revenue__title {
51
+ font-family: 'Lora', 'Georgia', serif;
52
+ font-size: 2.84vh;
53
+ font-weight: 500;
54
+ letter-spacing: 0.04em;
55
+ margin: 0;
56
+ }
57
+
58
+ .slide3-revenue__amount {
59
+ font-family: 'Lora', 'Georgia', serif;
60
+ font-size: 7.58vh;
61
+ font-weight: 700;
62
+ line-height: 1;
63
+ margin: 0;
64
+ }
65
+
66
+ .slide3-revenue__subline {
67
+ font-family: 'Lora', 'Georgia', serif;
68
+ font-size: 1.9vh;
69
+ font-weight: 400;
70
+ margin: 0;
71
+ }
72
+
73
+ .slide3-revenue__footer {
74
+ position: absolute;
75
+ bottom: 4.74%;
76
+ left: 4.1%;
77
+ transform: translateX(0);
78
+ font-family: 'Lora', 'Georgia', serif;
79
+ font-size: clamp(14px, 4.1vw, 16px);
80
+ font-weight: 400;
81
+ letter-spacing: 0.03em;
82
+ z-index: 1;
83
+ }
84
+
85
+ @media (max-width: 480px) {
86
+ .slide3-revenue {
87
+ padding: 7.11% 4.1% 5.69%;
88
+ }
89
+ }