@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
@@ -0,0 +1,9 @@
1
+ /**
2
+ * Format a number as Nigerian Naira currency
3
+ */
4
+ export declare function formatCurrency(amount: number): string;
5
+ /**
6
+ * Format a number with thousand separators
7
+ */
8
+ export declare function formatNumber(num: number): string;
9
+ //# sourceMappingURL=format.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"format.d.ts","sourceRoot":"","sources":["../../src/utils/format.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,wBAAgB,cAAc,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,CAOrD;AAED;;GAEG;AACH,wBAAgB,YAAY,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAEhD"}
@@ -0,0 +1,17 @@
1
+ /**
2
+ * Format a number as Nigerian Naira currency
3
+ */
4
+ export function formatCurrency(amount) {
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
+ * Format a number with thousand separators
14
+ */
15
+ export function formatNumber(num) {
16
+ return new Intl.NumberFormat('en-US').format(num);
17
+ }
@@ -0,0 +1,3 @@
1
+ export * from './motion';
2
+ export * from './format';
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/utils/index.ts"],"names":[],"mappings":"AACA,cAAc,UAAU,CAAC;AACzB,cAAc,UAAU,CAAC"}
@@ -0,0 +1,3 @@
1
+ // Barrel export for utils
2
+ export * from './motion';
3
+ export * from './format';
@@ -0,0 +1,19 @@
1
+ import { Variants } from 'framer-motion';
2
+ /**
3
+ * Common Framer Motion variants and animation configs
4
+ */
5
+ export declare const slideVariants: Variants;
6
+ export declare const fadeInFromTop: Variants;
7
+ export declare const scaleIn: Variants;
8
+ export declare const slideUp: Variants;
9
+ export declare const pulse: Variants;
10
+ export declare const delayedFadeIn: (delay?: number) => Variants;
11
+ export declare const floatingAnimation: {
12
+ x: number[];
13
+ transition: {
14
+ duration: number;
15
+ repeat: number;
16
+ ease: "linear";
17
+ };
18
+ };
19
+ //# sourceMappingURL=motion.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"motion.d.ts","sourceRoot":"","sources":["../../src/utils/motion.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AAEzC;;GAEG;AAGH,eAAO,MAAM,aAAa,EAAE,QAqB3B,CAAC;AAGF,eAAO,MAAM,aAAa,EAAE,QAO3B,CAAC;AAGF,eAAO,MAAM,OAAO,EAAE,QAOrB,CAAC;AAGF,eAAO,MAAM,OAAO,EAAE,QAOrB,CAAC;AAGF,eAAO,MAAM,KAAK,EAAE,QAOnB,CAAC;AAGF,eAAO,MAAM,aAAa,GAAI,QAAO,MAAY,KAAG,QAOlD,CAAC;AAGH,eAAO,MAAM,iBAAiB;;;;;;;CAO7B,CAAC"}
@@ -0,0 +1,80 @@
1
+ /**
2
+ * Common Framer Motion variants and animation configs
3
+ */
4
+ // Slide transition variants
5
+ export const slideVariants = {
6
+ initial: {
7
+ opacity: 0,
8
+ y: 40
9
+ },
10
+ animate: {
11
+ opacity: 1,
12
+ y: 0,
13
+ transition: {
14
+ duration: 0.4,
15
+ ease: 'easeOut'
16
+ }
17
+ },
18
+ exit: {
19
+ opacity: 0,
20
+ y: -40,
21
+ transition: {
22
+ duration: 0.4,
23
+ ease: 'easeIn'
24
+ }
25
+ }
26
+ };
27
+ // Fade in from top (for logo)
28
+ export const fadeInFromTop = {
29
+ initial: { opacity: 0, y: -20 },
30
+ animate: {
31
+ opacity: 1,
32
+ y: 0,
33
+ transition: { duration: 0.5, ease: 'easeOut' }
34
+ }
35
+ };
36
+ // Scale in (for titles)
37
+ export const scaleIn = {
38
+ initial: { opacity: 0, scale: 0.9 },
39
+ animate: {
40
+ opacity: 1,
41
+ scale: 1,
42
+ transition: { duration: 0.5, ease: 'easeOut' }
43
+ }
44
+ };
45
+ // Slide up (for forms)
46
+ export const slideUp = {
47
+ initial: { opacity: 0, y: 30 },
48
+ animate: {
49
+ opacity: 1,
50
+ y: 0,
51
+ transition: { duration: 0.6, ease: 'easeOut', delay: 0.2 }
52
+ }
53
+ };
54
+ // Pulse animation (for OTP boxes)
55
+ export const pulse = {
56
+ initial: { scale: 0.95, opacity: 0 },
57
+ animate: {
58
+ scale: 1,
59
+ opacity: 1,
60
+ transition: { duration: 0.3, ease: 'easeOut' }
61
+ }
62
+ };
63
+ // Delayed fade in (for secondary text)
64
+ export const delayedFadeIn = (delay = 0.5) => ({
65
+ initial: { opacity: 0, x: 12 },
66
+ animate: {
67
+ opacity: 1,
68
+ x: 0,
69
+ transition: { duration: 0.5, ease: 'easeOut', delay }
70
+ }
71
+ });
72
+ // Floating animation (for decorative frames)
73
+ export const floatingAnimation = {
74
+ x: [-30, 30, -30],
75
+ transition: {
76
+ duration: 24,
77
+ repeat: Infinity,
78
+ ease: 'linear'
79
+ }
80
+ };
package/package.json ADDED
@@ -0,0 +1,98 @@
1
+ {
2
+ "name": "@katajere/recap",
3
+ "version": "1.0.2",
4
+ "description": "Vendor Year in Review Experience - Recap your business metrics for 2025",
5
+ "private": false,
6
+ "publishConfig": {
7
+ "registry": "https://registry.npmjs.org"
8
+ },
9
+ "main": "dist/index.js",
10
+ "types": "dist/index.d.ts",
11
+ "files": [
12
+ "dist",
13
+ "src/**/*.tsx",
14
+ "src/**/*.ts",
15
+ "src/**/*.css",
16
+ "public/assets"
17
+ ],
18
+ "exports": {
19
+ ".": {
20
+ "import": "./dist/index.js",
21
+ "require": "./dist/index.js",
22
+ "types": "./dist/index.d.ts"
23
+ },
24
+ "./RecapStory": {
25
+ "import": "./src/RecapStory.tsx",
26
+ "types": "./src/RecapStory.tsx"
27
+ },
28
+ "./types": {
29
+ "import": "./src/types.ts",
30
+ "types": "./src/types.ts"
31
+ },
32
+ "./styles": "./src/RecapStory.css"
33
+ },
34
+ "keywords": [
35
+ "recap",
36
+ "vendor",
37
+ "metrics",
38
+ "business",
39
+ "react",
40
+ "katajere"
41
+ ],
42
+ "author": "Huxxle Team",
43
+ "license": "MIT",
44
+ "repository": {
45
+ "type": "git",
46
+ "url": "https://github.com/Katajere/Recap.git"
47
+ },
48
+ "peerDependencies": {
49
+ "react": "^18.0.0 || ^19.0.0",
50
+ "react-dom": "^18.0.0 || ^19.0.0",
51
+ "framer-motion": "^12.0.0"
52
+ },
53
+ "dependencies": {
54
+ "@testing-library/dom": "^10.4.1",
55
+ "@testing-library/jest-dom": "^6.9.1",
56
+ "@testing-library/react": "^16.3.0",
57
+ "@testing-library/user-event": "^13.5.0",
58
+ "@types/jest": "^30.0.0",
59
+ "@types/node": "^24.10.1",
60
+ "@types/react": "^19.2.7",
61
+ "@types/react-dom": "^19.2.3",
62
+ "framer-motion": "^12.23.25",
63
+ "react": "^19.2.0",
64
+ "react-dom": "^19.2.0",
65
+ "react-scripts": "5.0.1",
66
+ "typescript": "^5.9.3",
67
+ "web-vitals": "^2.1.4"
68
+ },
69
+ "scripts": {
70
+ "start": "react-scripts start",
71
+ "build": "npm run build:lib && npm run build:standalone",
72
+ "build:lib": "tsc --project tsconfig.lib.json && npm run copy-css",
73
+ "copy-css": "node scripts/copy-css.js",
74
+ "build:standalone": "react-scripts build",
75
+ "test": "react-scripts test",
76
+ "eject": "react-scripts eject",
77
+ "dev": "react-scripts start",
78
+ "prepublishOnly": "npm run build:lib"
79
+ },
80
+ "eslintConfig": {
81
+ "extends": [
82
+ "react-app",
83
+ "react-app/jest"
84
+ ]
85
+ },
86
+ "browserslist": {
87
+ "production": [
88
+ ">0.2%",
89
+ "not dead",
90
+ "not op_mini all"
91
+ ],
92
+ "development": [
93
+ "last 1 chrome version",
94
+ "last 1 firefox version",
95
+ "last 1 safari version"
96
+ ]
97
+ }
98
+ }
package/src/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
+ }
package/src/App.tsx ADDED
@@ -0,0 +1,73 @@
1
+ import React, { useState } from 'react';
2
+ import { AnimatePresence } from 'framer-motion';
3
+ import LoginScreen from './LoginScreen';
4
+ import OtpScreen from './OtpScreen';
5
+ import RecapStory from './RecapStory';
6
+ import { AUTH_STEPS, AuthStep } from './types';
7
+ import { mockRecapData } from './data/mock';
8
+ import './App.css';
9
+
10
+ /**
11
+ * Main App component
12
+ * Manages auth state machine: login → otp → recap
13
+ */
14
+ function App() {
15
+ const [authStep, setAuthStep] = useState<AuthStep>(AUTH_STEPS.LOGIN);
16
+ const [identifier, setIdentifier] = useState<string>('');
17
+
18
+ // Handle login submission
19
+ const handleLogin = (value: string) => {
20
+ setIdentifier(value);
21
+ setAuthStep(AUTH_STEPS.OTP);
22
+ };
23
+
24
+ // Handle OTP submission
25
+ const handleOtpSubmit = (otp: string) => {
26
+ // In production, verify OTP with backend here
27
+ console.log('OTP submitted:', otp);
28
+ setAuthStep(AUTH_STEPS.RECAP);
29
+ };
30
+
31
+ // Handle back from OTP to login
32
+ const handleBackToLogin = () => {
33
+ setAuthStep(AUTH_STEPS.LOGIN);
34
+ setIdentifier('');
35
+ };
36
+
37
+ return (
38
+ <div className="app">
39
+ {/* Desktop backdrop blur */}
40
+ <div className="app__backdrop" />
41
+
42
+ {/* Story shell (390x844 phone frame) */}
43
+ <div className="app__shell">
44
+ <AnimatePresence mode="wait">
45
+ {authStep === AUTH_STEPS.LOGIN && (
46
+ <LoginScreen
47
+ key="login"
48
+ onSubmit={handleLogin}
49
+ />
50
+ )}
51
+
52
+ {authStep === AUTH_STEPS.OTP && (
53
+ <OtpScreen
54
+ key="otp"
55
+ identifier={identifier}
56
+ onSubmit={handleOtpSubmit}
57
+ onBack={handleBackToLogin}
58
+ />
59
+ )}
60
+
61
+ {authStep === AUTH_STEPS.RECAP && (
62
+ <RecapStory
63
+ key="recap"
64
+ recapData={mockRecapData}
65
+ />
66
+ )}
67
+ </AnimatePresence>
68
+ </div>
69
+ </div>
70
+ );
71
+ }
72
+
73
+ export default App;
@@ -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,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;
@@ -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
+ }