@katajere/recap 1.0.2

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 (149) hide show
  1. package/README.md +39 -0
  2. package/dist/App.css +120 -0
  3. package/dist/FloatingFrames.css +55 -0
  4. package/dist/FloatingFrames.d.ts +11 -0
  5. package/dist/FloatingFrames.d.ts.map +1 -0
  6. package/dist/FloatingFrames.js +12 -0
  7. package/dist/LoginScreen.css +146 -0
  8. package/dist/OtpScreen.css +133 -0
  9. package/dist/RecapApp.d.ts +17 -0
  10. package/dist/RecapApp.d.ts.map +1 -0
  11. package/dist/RecapApp.js +7 -0
  12. package/dist/RecapStory.css +105 -0
  13. package/dist/RecapStory.d.ts +11 -0
  14. package/dist/RecapStory.d.ts.map +1 -0
  15. package/dist/RecapStory.js +150 -0
  16. package/dist/StoryProgress.css +47 -0
  17. package/dist/StoryProgress.d.ts +15 -0
  18. package/dist/StoryProgress.d.ts.map +1 -0
  19. package/dist/StoryProgress.js +23 -0
  20. package/dist/assets/huxxle-blue-logo.png +0 -0
  21. package/dist/assets/huxxle-blue-logo.svg +14 -0
  22. package/dist/assets/huxxle-logo.png +0 -0
  23. package/dist/assets/huxxle_star_final.gif +0 -0
  24. package/dist/assets/login-logo.png +0 -0
  25. package/dist/assets/login-logo.svg +14 -0
  26. package/dist/assets/money-rain.png +0 -0
  27. package/dist/assets/raining-money.gif +0 -0
  28. package/dist/assets/recap-music.mp3 +0 -0
  29. package/dist/assets/sketch_draw.gif +0 -0
  30. package/dist/assets/slide-logo.png +0 -0
  31. package/dist/assets/slide-logo.svg +14 -0
  32. package/dist/assets/sound-off.svg +4 -0
  33. package/dist/assets/sound-on.svg +5 -0
  34. package/dist/components/Header.css +46 -0
  35. package/dist/components/Header.d.ts +12 -0
  36. package/dist/components/Header.d.ts.map +1 -0
  37. package/dist/components/Header.js +25 -0
  38. package/dist/data/mock.d.ts +8 -0
  39. package/dist/data/mock.d.ts.map +1 -0
  40. package/dist/data/mock.js +59 -0
  41. package/dist/data/recapCopy.d.ts +10 -0
  42. package/dist/data/recapCopy.d.ts.map +1 -0
  43. package/dist/data/recapCopy.js +23 -0
  44. package/dist/hooks/useBackgroundMusic.d.ts +20 -0
  45. package/dist/hooks/useBackgroundMusic.d.ts.map +1 -0
  46. package/dist/hooks/useBackgroundMusic.js +62 -0
  47. package/dist/index.css +13 -0
  48. package/dist/index.d.ts +30 -0
  49. package/dist/index.d.ts.map +1 -0
  50. package/dist/index.js +40 -0
  51. package/dist/slides/Slide10Final.css +101 -0
  52. package/dist/slides/Slide10Final.d.ts +9 -0
  53. package/dist/slides/Slide10Final.d.ts.map +1 -0
  54. package/dist/slides/Slide10Final.js +68 -0
  55. package/dist/slides/Slide1Intro.css +261 -0
  56. package/dist/slides/Slide1Intro.d.ts +13 -0
  57. package/dist/slides/Slide1Intro.d.ts.map +1 -0
  58. package/dist/slides/Slide1Intro.js +61 -0
  59. package/dist/slides/Slide2Days.css +209 -0
  60. package/dist/slides/Slide2Days.d.ts +11 -0
  61. package/dist/slides/Slide2Days.d.ts.map +1 -0
  62. package/dist/slides/Slide2Days.js +11 -0
  63. package/dist/slides/Slide3Revenue.css +89 -0
  64. package/dist/slides/Slide3Revenue.d.ts +12 -0
  65. package/dist/slides/Slide3Revenue.d.ts.map +1 -0
  66. package/dist/slides/Slide3Revenue.js +16 -0
  67. package/dist/slides/Slide4Orders.css +135 -0
  68. package/dist/slides/Slide4Orders.d.ts +10 -0
  69. package/dist/slides/Slide4Orders.d.ts.map +1 -0
  70. package/dist/slides/Slide4Orders.js +16 -0
  71. package/dist/slides/Slide5Buyers.css +140 -0
  72. package/dist/slides/Slide5Buyers.d.ts +11 -0
  73. package/dist/slides/Slide5Buyers.d.ts.map +1 -0
  74. package/dist/slides/Slide5Buyers.js +12 -0
  75. package/dist/slides/Slide6Customer.css +92 -0
  76. package/dist/slides/Slide6Customer.d.ts +10 -0
  77. package/dist/slides/Slide6Customer.d.ts.map +1 -0
  78. package/dist/slides/Slide6Customer.js +10 -0
  79. package/dist/slides/Slide7Products.css +144 -0
  80. package/dist/slides/Slide7Products.d.ts +11 -0
  81. package/dist/slides/Slide7Products.d.ts.map +1 -0
  82. package/dist/slides/Slide7Products.js +29 -0
  83. package/dist/slides/Slide8Months.css +148 -0
  84. package/dist/slides/Slide8Months.d.ts +7 -0
  85. package/dist/slides/Slide8Months.d.ts.map +1 -0
  86. package/dist/slides/Slide8Months.js +31 -0
  87. package/dist/slides/Slide9Year.css +93 -0
  88. package/dist/slides/Slide9Year.d.ts +8 -0
  89. package/dist/slides/Slide9Year.d.ts.map +1 -0
  90. package/dist/slides/Slide9Year.js +9 -0
  91. package/dist/types.d.ts +33 -0
  92. package/dist/types.d.ts.map +1 -0
  93. package/dist/types.js +11 -0
  94. package/dist/utils/format.d.ts +9 -0
  95. package/dist/utils/format.d.ts.map +1 -0
  96. package/dist/utils/format.js +17 -0
  97. package/dist/utils/index.d.ts +3 -0
  98. package/dist/utils/index.d.ts.map +1 -0
  99. package/dist/utils/index.js +3 -0
  100. package/dist/utils/motion.d.ts +19 -0
  101. package/dist/utils/motion.d.ts.map +1 -0
  102. package/dist/utils/motion.js +80 -0
  103. package/package.json +98 -0
  104. package/src/App.css +120 -0
  105. package/src/App.tsx +73 -0
  106. package/src/FloatingFrames.css +55 -0
  107. package/src/FloatingFrames.tsx +27 -0
  108. package/src/LoginScreen.css +146 -0
  109. package/src/LoginScreen.tsx +70 -0
  110. package/src/OtpScreen.css +133 -0
  111. package/src/OtpScreen.tsx +109 -0
  112. package/src/RecapApp.tsx +34 -0
  113. package/src/RecapStory.css +105 -0
  114. package/src/RecapStory.tsx +269 -0
  115. package/src/StoryProgress.css +47 -0
  116. package/src/StoryProgress.tsx +60 -0
  117. package/src/assets.d.ts +41 -0
  118. package/src/components/Header.css +46 -0
  119. package/src/components/Header.tsx +41 -0
  120. package/src/data/mock.ts +62 -0
  121. package/src/data/recapCopy.ts +33 -0
  122. package/src/hooks/useBackgroundMusic.ts +79 -0
  123. package/src/index.css +13 -0
  124. package/src/index.ts +70 -0
  125. package/src/react-app-env.d.ts +26 -0
  126. package/src/slides/Slide10Final.css +101 -0
  127. package/src/slides/Slide10Final.tsx +105 -0
  128. package/src/slides/Slide1Intro.css +261 -0
  129. package/src/slides/Slide1Intro.tsx +141 -0
  130. package/src/slides/Slide2Days.css +209 -0
  131. package/src/slides/Slide2Days.tsx +92 -0
  132. package/src/slides/Slide3Revenue.css +89 -0
  133. package/src/slides/Slide3Revenue.tsx +76 -0
  134. package/src/slides/Slide4Orders.css +135 -0
  135. package/src/slides/Slide4Orders.tsx +63 -0
  136. package/src/slides/Slide5Buyers.css +140 -0
  137. package/src/slides/Slide5Buyers.tsx +74 -0
  138. package/src/slides/Slide6Customer.css +92 -0
  139. package/src/slides/Slide6Customer.tsx +27 -0
  140. package/src/slides/Slide7Products.css +144 -0
  141. package/src/slides/Slide7Products.tsx +81 -0
  142. package/src/slides/Slide8Months.css +148 -0
  143. package/src/slides/Slide8Months.tsx +63 -0
  144. package/src/slides/Slide9Year.css +93 -0
  145. package/src/slides/Slide9Year.tsx +35 -0
  146. package/src/types.ts +39 -0
  147. package/src/utils/format.ts +18 -0
  148. package/src/utils/index.ts +3 -0
  149. package/src/utils/motion.ts +89 -0
package/README.md ADDED
@@ -0,0 +1,39 @@
1
+ # Huxxle Recap 25’ — Animated Story Experience
2
+
3
+ This project is the foundation for the **Huxxle Recap 25’** experience — an animated, story-driven annual recap inspired by platforms like Spotify Wrapped, Instagram Stories, and WhatsApp Status.
4
+
5
+ The goal is to generate a cinematic, mobile-first highlight reel for Huxxle businesses, using smooth transitions, animated text, kinetic backgrounds, and playful Nigerian-centric copy.
6
+
7
+ ---
8
+
9
+ ## 🎬 Project Overview
10
+
11
+ This React application sets up:
12
+ - A mobile-sized story container (390×844)
13
+ - Multi-step story navigation with animated progress bars
14
+ - Slide-to-slide transitions using **Framer Motion**
15
+ - Foundation components for:
16
+ - Animated text reveals
17
+ - Drifting decorative frames
18
+ - Background gradients
19
+ - Metric-focused recap slides
20
+
21
+ The UI and animation patterns closely follow the Figma design direction for Huxxle Recap 25’.
22
+
23
+ ---
24
+
25
+ ## 🛠️ Tech Stack
26
+
27
+ - **React**
28
+ - **Vite** (or CRA, depending on your setup)
29
+ - **Framer Motion** — animations & transitions
30
+ - **CSS** for layout, gradient system, and component styling
31
+
32
+ ---
33
+
34
+ ## 📦 Installation
35
+
36
+ Clone the repository and install dependencies:
37
+
38
+ ```bash
39
+ npm install
package/dist/App.css ADDED
@@ -0,0 +1,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
+ /* 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
+ }
@@ -0,0 +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
+ }
@@ -0,0 +1,11 @@
1
+ import './FloatingFrames.css';
2
+ interface FloatingFramesProps {
3
+ variant?: 'top' | 'bottom';
4
+ }
5
+ /**
6
+ * FloatingFrames - Decorative animated rectangles
7
+ * Displays 3 vertical rectangles with gentle horizontal motion
8
+ */
9
+ declare function FloatingFrames({ variant }: FloatingFramesProps): import("react/jsx-runtime").JSX.Element;
10
+ export default FloatingFrames;
11
+ //# sourceMappingURL=FloatingFrames.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"FloatingFrames.d.ts","sourceRoot":"","sources":["../src/FloatingFrames.tsx"],"names":[],"mappings":"AAGA,OAAO,sBAAsB,CAAC;AAE9B,UAAU,mBAAmB;IAC3B,OAAO,CAAC,EAAE,KAAK,GAAG,QAAQ,CAAC;CAC5B;AAED;;;GAGG;AACH,iBAAS,cAAc,CAAC,EAAE,OAAe,EAAE,EAAE,mBAAmB,2CAW/D;AAED,eAAe,cAAc,CAAC"}
@@ -0,0 +1,12 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import { motion } from 'framer-motion';
3
+ import { floatingAnimation } from './utils';
4
+ import './FloatingFrames.css';
5
+ /**
6
+ * FloatingFrames - Decorative animated rectangles
7
+ * Displays 3 vertical rectangles with gentle horizontal motion
8
+ */
9
+ function FloatingFrames({ variant = 'top' }) {
10
+ return (_jsxs(motion.div, { className: `floating-frames floating-frames--${variant}`, animate: floatingAnimation, children: [_jsx("div", { className: "floating-frame" }), _jsx("div", { className: "floating-frame" }), _jsx("div", { className: "floating-frame" })] }));
11
+ }
12
+ export default FloatingFrames;
@@ -0,0 +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
+ }
@@ -0,0 +1,133 @@
1
+ /* OtpScreen.css */
2
+ .otp-screen {
3
+ position: relative;
4
+ width: 100%;
5
+ height: 100%;
6
+ overflow: hidden;
7
+ display: flex;
8
+ flex-direction: column;
9
+ padding: clamp(20px, 3dvh, 32px) clamp(16px, 4.1vw, 20px) calc(clamp(32px, 5dvh, 48px) + env(safe-area-inset-bottom));
10
+ box-sizing: border-box;
11
+ }
12
+
13
+ /* Top logo area - 3% margin from top via padding */
14
+ .otp-screen__header {
15
+ flex: none;
16
+ width: 100%;
17
+ height: 3.79%;
18
+ min-height: 32px;
19
+ margin-bottom: 6%;
20
+ }
21
+
22
+ /* Middle hero section - grows to fill space */
23
+ .otp-screen__hero {
24
+ flex: 1;
25
+ display: flex;
26
+ flex-direction: column;
27
+ align-items: flex-start;
28
+ justify-content: center;
29
+ gap: 1.9%;
30
+ width: 100%;
31
+ }
32
+
33
+ .otp-screen__title {
34
+ width: 100%;
35
+ font-family: 'Lora', serif;
36
+ font-style: normal;
37
+ font-weight: 700;
38
+ font-size: clamp(48px, 18.46vw, 72px);
39
+ line-height: 1.28;
40
+ text-transform: capitalize;
41
+ background: linear-gradient(90deg, #FFFFFF 0%, #FFCC80 100%);
42
+ -webkit-background-clip: text;
43
+ -webkit-text-fill-color: transparent;
44
+ background-clip: text;
45
+ margin: 0;
46
+ white-space: normal;
47
+ word-wrap: break-word;
48
+ }
49
+
50
+ .otp-screen__subtitle {
51
+ width: 100%;
52
+ font-family: 'Lora', serif;
53
+ font-style: normal;
54
+ font-weight: 400;
55
+ font-size: clamp(14px, 4.1vw, 16px);
56
+ line-height: 1.2;
57
+ background: linear-gradient(90deg, #FFFFFF 0%, #FFCC80 100%);
58
+ -webkit-background-clip: text;
59
+ -webkit-text-fill-color: transparent;
60
+ background-clip: text;
61
+ margin: 0;
62
+ }
63
+
64
+ /* OTP Inputs */
65
+ .otp-inputs {
66
+ display: flex;
67
+ flex-direction: row;
68
+ align-items: flex-start;
69
+ gap: 0.95%;
70
+ width: 100%;
71
+ height: 5.69%;
72
+ min-height: 48px;
73
+ }
74
+
75
+ .otp-input {
76
+ box-sizing: border-box;
77
+ display: flex;
78
+ flex-direction: row;
79
+ justify-content: center;
80
+ align-items: center;
81
+ padding: 1.42% 4.1%;
82
+ flex: 1;
83
+ height: 100%;
84
+ border: 1px solid #FCFCFC;
85
+ background: transparent;
86
+ font-family: 'Lora', serif;
87
+ font-style: normal;
88
+ font-weight: 600;
89
+ font-size: clamp(14px, 4.1vw, 16px);
90
+ line-height: 120%;
91
+ color: #FCFCFC;
92
+ text-align: center;
93
+ outline: none;
94
+ width: 5.69%;
95
+ }
96
+
97
+ .otp-input::placeholder {
98
+ color: #FCFCFC;
99
+ opacity: 0.7;
100
+ }
101
+
102
+ .otp-input:focus {
103
+ opacity: 1;
104
+ }
105
+
106
+ .btn-primary {
107
+ display: flex;
108
+ flex-direction: row;
109
+ justify-content: center;
110
+ align-items: center;
111
+ padding: 1.42% 4.1%;
112
+ width: 100%;
113
+ height: 5.69%;
114
+ min-height: 48px;
115
+ background: #FCFCFC;
116
+ border: none;
117
+ font-family: 'Lora', serif;
118
+ font-style: normal;
119
+ font-weight: 600;
120
+ font-size: clamp(14px, 4.1vw, 16px);
121
+ line-height: 120%;
122
+ color: #4F4CD8;
123
+ cursor: pointer;
124
+ transition: opacity 0.2s;
125
+ }
126
+
127
+ .btn-primary:hover {
128
+ opacity: 0.9;
129
+ }
130
+
131
+ .btn-primary:active {
132
+ opacity: 0.8;
133
+ }
@@ -0,0 +1,17 @@
1
+ import { RecapData } from './types';
2
+ import './App.css';
3
+ /**
4
+ * RecapApp - Wrapper component that provides the app shell structure
5
+ * Used in WebApp integration to match standalone design
6
+ *
7
+ * Provides:
8
+ * - .app container
9
+ * - .app__backdrop (desktop blur effect)
10
+ * - .app__shell (390x844 phone frame)
11
+ */
12
+ interface RecapAppProps {
13
+ recapData: RecapData;
14
+ }
15
+ declare function RecapApp({ recapData }: RecapAppProps): import("react/jsx-runtime").JSX.Element;
16
+ export default RecapApp;
17
+ //# sourceMappingURL=RecapApp.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"RecapApp.d.ts","sourceRoot":"","sources":["../src/RecapApp.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AACpC,OAAO,WAAW,CAAC;AAEnB;;;;;;;;GAQG;AAEH,UAAU,aAAa;IACrB,SAAS,EAAE,SAAS,CAAC;CACtB;AAED,iBAAS,QAAQ,CAAC,EAAE,SAAS,EAAE,EAAE,aAAa,2CAY7C;AAED,eAAe,QAAQ,CAAC"}
@@ -0,0 +1,7 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import RecapStory from './RecapStory';
3
+ import './App.css';
4
+ function RecapApp({ recapData }) {
5
+ return (_jsxs("div", { className: "app", children: [_jsx("div", { className: "app__backdrop" }), _jsx("div", { className: "app__shell", children: _jsx(RecapStory, { recapData: recapData }) })] }));
6
+ }
7
+ export default RecapApp;
@@ -0,0 +1,105 @@
1
+ .recap-story {
2
+ position: relative;
3
+ width: 100%;
4
+ height: 100%;
5
+ display: flex;
6
+ flex-direction: column;
7
+ overflow: hidden;
8
+ }
9
+
10
+ /* Top group: Header + Progress */
11
+ .recap-story__top-group {
12
+ position: relative;
13
+ flex: none;
14
+ display: flex;
15
+ flex-direction: column;
16
+ gap: clamp(6px, 1%, 8px);
17
+ margin: clamp(16px, 3%, 24px) clamp(12px, 3%, 16px) 0;
18
+ z-index: 10;
19
+ }
20
+
21
+ .recap-story__header-wrapper {
22
+ flex: none;
23
+ width: 100%;
24
+ display: flex;
25
+ align-items: center;
26
+ justify-content: space-between;
27
+ }
28
+
29
+ .recap-story__progress {
30
+ flex: 1;
31
+ min-width: 0;
32
+ }
33
+
34
+ .recap-story__progress-wrap {
35
+ position: relative;
36
+ width: 100%;
37
+ display: flex;
38
+ align-items: center;
39
+ gap: clamp(3px, 0.5%, 5px);
40
+ }
41
+
42
+ .recap-story__sound-toggle {
43
+ width: clamp(32px, 8%, 40px);
44
+ height: clamp(32px, 8%, 40px);
45
+ display: inline-flex;
46
+ align-items: center;
47
+ justify-content: center;
48
+ border: 1px solid rgba(255, 255, 255, 0.28);
49
+ border-radius: clamp(8px, 2%, 12px);
50
+ background: rgba(22, 32, 90, 0.35);
51
+ backdrop-filter: blur(6px);
52
+ color: #ffcc80;
53
+ cursor: pointer;
54
+ padding: clamp(6px, 1.5%, 8px);
55
+ transition: transform 0.15s ease, opacity 0.15s ease;
56
+ -webkit-tap-highlight-color: transparent;
57
+ flex-shrink: 0;
58
+ }
59
+
60
+ .recap-story__sound-toggle:hover {
61
+ transform: translateY(-1px) scale(1.02);
62
+ }
63
+
64
+ .recap-story__sound-toggle:active {
65
+ transform: scale(0.98);
66
+ }
67
+
68
+ .recap-story__sound-icon {
69
+ width: 100%;
70
+ height: 100%;
71
+ }
72
+
73
+ .recap-story__sound-icon path {
74
+ fill: currentColor;
75
+ stroke: currentColor;
76
+ }
77
+
78
+ /* Slides container - positioned at the very top */
79
+ .recap-story__slides {
80
+ position: absolute;
81
+ top: 0;
82
+ left: 0;
83
+ width: 100%;
84
+ height: 100%;
85
+ overflow: hidden;
86
+ cursor: pointer;
87
+ user-select: none;
88
+ -webkit-user-select: none;
89
+ -webkit-tap-highlight-color: transparent;
90
+ }
91
+
92
+ @media (max-height: 720px), (orientation: landscape) {
93
+ .recap-story__top-group {
94
+ margin-top: calc(clamp(16px, 3dvh, 24px) + env(safe-area-inset-top));
95
+ gap: clamp(12px, 2dvh, 16px);
96
+ }
97
+ }
98
+
99
+ .recap-story__slide {
100
+ position: absolute;
101
+ top: 0;
102
+ left: 0;
103
+ width: 100%;
104
+ height: 100%;
105
+ }
@@ -0,0 +1,11 @@
1
+ import { RecapData } from './types';
2
+ import './RecapStory.css';
3
+ interface RecapStoryProps {
4
+ recapData: RecapData;
5
+ }
6
+ /**
7
+ * RecapStory - Story container with header, progress bars, and slide transitions
8
+ */
9
+ declare function RecapStory({ recapData }: RecapStoryProps): import("react/jsx-runtime").JSX.Element;
10
+ export default RecapStory;
11
+ //# sourceMappingURL=RecapStory.d.ts.map
@@ -0,0 +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"}