@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
package/src/App.css CHANGED
@@ -1,120 +1,156 @@
1
- /* Global styles and story shell */
2
-
3
- :root {
4
- --frame-ar-num: 9;
5
- --frame-ar-den: 19.5;
6
- --frame-ar: 9 / 19.5;
7
- /* Responsive base font size */
8
- --base-font-size: clamp(14px, 3.6vw, 16px);
9
- }
10
-
11
- * {
12
- box-sizing: border-box;
13
- margin: 0;
14
- padding: 0;
15
- }
16
-
17
- body {
18
- margin: 0;
19
- font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
20
- 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',
21
- sans-serif;
22
- -webkit-font-smoothing: antialiased;
23
- -moz-osx-font-smoothing: grayscale;
24
- overflow: hidden;
25
- }
26
-
27
- #root {
28
- width: 100%;
29
- height: 100%;
30
- overflow: hidden;
31
- }
32
-
33
- /* Main app container - responsive shell */
34
- .app {
35
- position: relative;
36
- width: 100%;
37
- height: 100%;
38
- display: flex;
39
- align-items: center;
40
- justify-content: center;
41
- background: #1a1a2e;
42
- overflow: hidden;
43
- font-size: var(--base-font-size);
44
- }
45
-
46
- /* Desktop backdrop blur effect */
47
- .app__backdrop {
48
- position: absolute;
49
- top: 0;
50
- left: 0;
51
- width: 100%;
52
- height: 100%;
53
- background: radial-gradient(circle at center, rgba(63, 61, 173, 0.3) 0%, rgba(204, 98, 64, 0.3) 100%);
54
- filter: blur(80px);
55
- opacity: 0.6;
56
- pointer-events: none;
57
- z-index: 0;
58
- }
59
-
60
- /* Story shell - maintains 9:19.5 aspect ratio at any size */
61
- .app__shell {
62
- aspect-ratio: var(--frame-ar);
63
- width: clamp(280px, 90vw, 560px);
64
- height: auto;
65
- background: linear-gradient(180deg, #3F3DAD 0%, #CC6240 100%);
66
- overflow: hidden;
67
- box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
68
- z-index: 1;
69
- position: relative;
70
- margin: 0 auto;
71
- border-radius: 24px;
72
- }
73
-
74
- /* Fallback for browsers without aspect-ratio support */
75
- @supports not (aspect-ratio: 9 / 19.5) {
76
- .app__shell {
77
- width: clamp(280px, 90vw, 560px);
78
- height: calc(clamp(280px, 90vw, 560px) / 0.462);
79
- }
80
- }
81
-
82
- /* Mobile - fullscreen */
83
- @media (max-width: 600px) {
84
- .app {
85
- background: linear-gradient(180deg, #3F3DAD 0%, #CC6240 100%);
86
- }
87
-
88
- .app__backdrop {
89
- display: none;
90
- }
91
-
92
- .app__shell {
93
- width: 100vw;
94
- height: 100vh;
95
- max-width: none;
96
- border-radius: 0;
97
- box-shadow: none;
98
- }
99
- }
100
-
101
- /* Desktop optimization */
102
- @media (min-width: 768px) {
103
- .app {
104
- padding: 20px;
105
- }
106
- }
107
-
108
- /* Gradient text utility class */
109
- .gradient-text {
110
- background: linear-gradient(90deg, #FFFFFF 0%, #FFCC80 100%);
111
- -webkit-background-clip: text;
112
- -webkit-text-fill-color: transparent;
113
- background-clip: text;
114
- }
115
-
116
- /* Prevent text selection on interactive elements */
117
- button, .story-progress {
118
- -webkit-user-select: none;
119
- user-select: none;
120
- }
1
+ /* Global styles and story shell */
2
+
3
+ :root {
4
+ --frame-ar-num: 9;
5
+ --frame-ar-den: 19.5;
6
+ --frame-ar: 9 / 19.5;
7
+ }
8
+
9
+ * {
10
+ box-sizing: border-box;
11
+ margin: 0;
12
+ padding: 0;
13
+ }
14
+
15
+ body {
16
+ margin: 0;
17
+ font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
18
+ 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',
19
+ sans-serif;
20
+ -webkit-font-smoothing: antialiased;
21
+ -moz-osx-font-smoothing: grayscale;
22
+ overflow: hidden;
23
+ }
24
+
25
+ #root {
26
+ width: 100vw;
27
+ height: 100dvh;
28
+ overflow: hidden;
29
+ }
30
+
31
+ /* Main app container */
32
+ .app {
33
+ position: relative;
34
+ width: 100%;
35
+ height: 100%;
36
+ display: flex;
37
+ align-items: center;
38
+ justify-content: center;
39
+ background: #1a1a2e;
40
+ overflow: hidden;
41
+ /* padding: clamp(0px, 2vh, 20px); */
42
+ }
43
+
44
+ /* Desktop backdrop blur effect */
45
+ .app__backdrop {
46
+ position: absolute;
47
+ top: 0;
48
+ left: 0;
49
+ width: 100%;
50
+ height: 100%;
51
+ background: radial-gradient(circle at center, rgba(63, 61, 173, 0.3) 0%, rgba(204, 98, 64, 0.3) 100%);
52
+ filter: blur(80px);
53
+ opacity: 0.6;
54
+ pointer-events: none;
55
+ z-index: 0;
56
+ }
57
+
58
+ /* Story shell - 9:19.5 aspect ratio container */
59
+ .app__shell {
60
+ aspect-ratio: var(--frame-ar);
61
+ width: min(100%, calc(100dvh * var(--frame-ar-num) / var(--frame-ar-den)));
62
+ height: min(100dvh, calc(100vw * var(--frame-ar-den) / var(--frame-ar-num)));
63
+ max-width: 430px;
64
+ max-height: 932px;
65
+ background: linear-gradient(180deg, #3F3DAD 0%, #CC6240 100%);
66
+ /* border-radius: clamp(0px, 2vw, 24px); */
67
+ overflow: hidden;
68
+ box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
69
+ z-index: 1;
70
+ position: relative;
71
+ margin: 0 auto;
72
+ }
73
+
74
+ /* Fallback for browsers without aspect-ratio support */
75
+ @supports not (aspect-ratio: 9 / 19.5) {
76
+ .app__shell {
77
+ width: 100vw;
78
+ height: calc(100vw * var(--frame-ar-den) / var(--frame-ar-num));
79
+ max-height: 100dvh;
80
+ }
81
+
82
+ @media (min-aspect-ratio: 9/19.5) {
83
+ .app__shell {
84
+ width: calc(100dvh * var(--frame-ar-num) / var(--frame-ar-den));
85
+ height: 100dvh;
86
+ }
87
+ }
88
+ }
89
+
90
+ /* Mobile - remove border radius and shadow */
91
+ @media (max-width: 420px) {
92
+ .app {
93
+ background: linear-gradient(180deg, #3F3DAD 0%, #CC6240 100%);
94
+ padding: 0;
95
+ }
96
+
97
+ .app__backdrop {
98
+ display: none;
99
+ }
100
+
101
+ .app__shell {
102
+ /* border-radius: 0; */
103
+ box-shadow: none;
104
+ width: 100%;
105
+ height: 100dvh;
106
+ max-width: none;
107
+ max-height: none;
108
+ }
109
+ }
110
+
111
+ /* Short screens */
112
+ @media (max-height: 720px) {
113
+ .app {
114
+ padding: 0;
115
+ }
116
+
117
+ .app__shell {
118
+ /* border-radius: 0; */
119
+ box-shadow: none;
120
+ }
121
+ }
122
+
123
+ /* Landscape orientation on mobile */
124
+ @media (orientation: landscape) and (max-height: 600px) {
125
+ .app {
126
+ padding: 0;
127
+ }
128
+
129
+ .app__shell {
130
+ /* border-radius: 0; */
131
+ box-shadow: none;
132
+ width: auto;
133
+ height: 100dvh;
134
+ }
135
+ }
136
+
137
+ /* Desktop optimization */
138
+ @media (min-width: 768px) {
139
+ .app {
140
+ padding: clamp(20px, 3vh, 40px);
141
+ }
142
+ }
143
+
144
+ /* Gradient text utility class */
145
+ .gradient-text {
146
+ background: linear-gradient(90deg, #FFFFFF 0%, #FFCC80 100%);
147
+ -webkit-background-clip: text;
148
+ -webkit-text-fill-color: transparent;
149
+ background-clip: text;
150
+ }
151
+
152
+ /* Prevent text selection on interactive elements */
153
+ button, .story-progress {
154
+ -webkit-user-select: none;
155
+ user-select: none;
156
+ }
@@ -1,55 +1,55 @@
1
- .floating-frames {
2
- position: absolute;
3
- display: flex;
4
- gap: clamp(6px, 2vw, 8px);
5
- left: 50%;
6
- transform: translateX(-50%);
7
- z-index: 1;
8
- pointer-events: none;
9
- }
10
-
11
- .floating-frames--top {
12
- top: clamp(80px, 16.5dvh, 140px);
13
- }
14
-
15
- .floating-frames--bottom {
16
- bottom: clamp(100px, 21.3dvh, 180px);
17
- }
18
-
19
- .floating-frame {
20
- width: clamp(70px, 28.2vw, 110px);
21
- height: clamp(280px, 52.1dvh, 440px);
22
- border: 1px solid rgba(255, 255, 255, 0.2);
23
- border-radius: 4px;
24
- background: transparent;
25
- }
26
-
27
- @media (max-width: 420px) {
28
- .floating-frame {
29
- width: clamp(70px, 23vw, 90px);
30
- height: clamp(280px, 45dvh, 380px);
31
- }
32
-
33
- .floating-frames--top {
34
- top: clamp(80px, 14.2dvh, 120px);
35
- }
36
-
37
- .floating-frames--bottom {
38
- bottom: clamp(100px, 18.9dvh, 160px);
39
- }
40
- }
41
-
42
- @media (max-height: 720px), (orientation: landscape) {
43
- .floating-frames--top {
44
- top: clamp(60px, 10dvh, 100px);
45
- }
46
-
47
- .floating-frames--bottom {
48
- bottom: clamp(80px, 12dvh, 120px);
49
- }
50
-
51
- .floating-frame {
52
- width: clamp(60px, 20vw, 90px);
53
- height: clamp(200px, 35dvh, 320px);
54
- }
55
- }
1
+ .floating-frames {
2
+ position: absolute;
3
+ display: flex;
4
+ gap: clamp(6px, 2vw, 8px);
5
+ left: 50%;
6
+ transform: translateX(-50%);
7
+ z-index: 1;
8
+ pointer-events: none;
9
+ }
10
+
11
+ .floating-frames--top {
12
+ top: clamp(80px, 16.5dvh, 140px);
13
+ }
14
+
15
+ .floating-frames--bottom {
16
+ bottom: clamp(100px, 21.3dvh, 180px);
17
+ }
18
+
19
+ .floating-frame {
20
+ width: clamp(70px, 28.2vw, 110px);
21
+ height: clamp(280px, 52.1dvh, 440px);
22
+ border: 1px solid rgba(255, 255, 255, 0.2);
23
+ border-radius: 4px;
24
+ background: transparent;
25
+ }
26
+
27
+ @media (max-width: 420px) {
28
+ .floating-frame {
29
+ width: clamp(70px, 23vw, 90px);
30
+ height: clamp(280px, 45dvh, 380px);
31
+ }
32
+
33
+ .floating-frames--top {
34
+ top: clamp(80px, 14.2dvh, 120px);
35
+ }
36
+
37
+ .floating-frames--bottom {
38
+ bottom: clamp(100px, 18.9dvh, 160px);
39
+ }
40
+ }
41
+
42
+ @media (max-height: 720px), (orientation: landscape) {
43
+ .floating-frames--top {
44
+ top: clamp(60px, 10dvh, 100px);
45
+ }
46
+
47
+ .floating-frames--bottom {
48
+ bottom: clamp(80px, 12dvh, 120px);
49
+ }
50
+
51
+ .floating-frame {
52
+ width: clamp(60px, 20vw, 90px);
53
+ height: clamp(200px, 35dvh, 320px);
54
+ }
55
+ }
@@ -1,27 +1,27 @@
1
- import React from 'react';
2
- import { motion } from 'framer-motion';
3
- import { floatingAnimation } from './utils';
4
- import './FloatingFrames.css';
5
-
6
- interface FloatingFramesProps {
7
- variant?: 'top' | 'bottom';
8
- }
9
-
10
- /**
11
- * FloatingFrames - Decorative animated rectangles
12
- * Displays 3 vertical rectangles with gentle horizontal motion
13
- */
14
- function FloatingFrames({ variant = 'top' }: FloatingFramesProps) {
15
- return (
16
- <motion.div
17
- className={`floating-frames floating-frames--${variant}`}
18
- animate={floatingAnimation}
19
- >
20
- <div className="floating-frame" />
21
- <div className="floating-frame" />
22
- <div className="floating-frame" />
23
- </motion.div>
24
- );
25
- }
26
-
27
- export default FloatingFrames;
1
+ import React from 'react';
2
+ import { motion } from 'framer-motion';
3
+ import { floatingAnimation } from './utils';
4
+ import './FloatingFrames.css';
5
+
6
+ interface FloatingFramesProps {
7
+ variant?: 'top' | 'bottom';
8
+ }
9
+
10
+ /**
11
+ * FloatingFrames - Decorative animated rectangles
12
+ * Displays 3 vertical rectangles with gentle horizontal motion
13
+ */
14
+ function FloatingFrames({ variant = 'top' }: FloatingFramesProps) {
15
+ return (
16
+ <motion.div
17
+ className={`floating-frames floating-frames--${variant}`}
18
+ animate={floatingAnimation}
19
+ >
20
+ <div className="floating-frame" />
21
+ <div className="floating-frame" />
22
+ <div className="floating-frame" />
23
+ </motion.div>
24
+ );
25
+ }
26
+
27
+ export default FloatingFrames;