@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.
- package/dist/App.css +156 -156
- package/dist/FloatingFrames.css +55 -55
- package/dist/LoginScreen.css +146 -146
- package/dist/OtpScreen.css +133 -133
- package/dist/RecapStory.css +105 -105
- package/dist/StoryProgress.css +47 -47
- package/dist/assets/huxxle-blue-logo.svg +14 -14
- package/dist/assets/login-logo.svg +14 -14
- package/dist/assets/slide-logo.svg +14 -14
- package/dist/components/Header.css +46 -46
- package/dist/slides/Slide10Final.css +101 -101
- package/dist/slides/Slide1Intro.css +235 -235
- package/dist/slides/Slide2Days.css +209 -209
- package/dist/slides/Slide3Revenue.css +89 -89
- package/dist/slides/Slide4Orders.css +135 -135
- package/dist/slides/Slide5Buyers.css +140 -140
- package/dist/slides/Slide6Customer.css +92 -92
- package/dist/slides/Slide7Products.css +144 -144
- package/dist/slides/Slide8Months.css +148 -148
- package/dist/slides/Slide9Year.css +93 -93
- package/package.json +1 -1
- package/src/App.css +156 -156
- package/src/FloatingFrames.css +55 -55
- package/src/FloatingFrames.tsx +27 -27
- package/src/LoginScreen.css +146 -146
- package/src/LoginScreen.tsx +70 -70
- package/src/OtpScreen.css +133 -133
- package/src/OtpScreen.tsx +109 -109
- package/src/RecapApp.tsx +34 -34
- package/src/RecapStory.css +105 -105
- package/src/RecapStory.tsx +269 -269
- package/src/StoryProgress.css +47 -47
- package/src/StoryProgress.tsx +60 -60
- package/src/assets.d.ts +41 -41
- package/src/components/Header.css +46 -46
- package/src/components/Header.tsx +41 -41
- package/src/data/mock.ts +62 -62
- package/src/data/recapCopy.ts +33 -33
- package/src/hooks/useBackgroundMusic.ts +79 -79
- package/src/index.ts +70 -70
- package/src/react-app-env.d.ts +26 -26
- package/src/slides/Slide10Final.css +101 -101
- package/src/slides/Slide10Final.tsx +105 -105
- package/src/slides/Slide1Intro.css +235 -235
- package/src/slides/Slide1Intro.tsx +141 -141
- package/src/slides/Slide2Days.css +209 -209
- package/src/slides/Slide2Days.tsx +92 -92
- package/src/slides/Slide3Revenue.css +89 -89
- package/src/slides/Slide3Revenue.tsx +76 -76
- package/src/slides/Slide4Orders.css +135 -135
- package/src/slides/Slide4Orders.tsx +63 -63
- package/src/slides/Slide5Buyers.css +140 -140
- package/src/slides/Slide5Buyers.tsx +74 -74
- package/src/slides/Slide6Customer.css +92 -92
- package/src/slides/Slide6Customer.tsx +27 -27
- package/src/slides/Slide7Products.css +144 -144
- package/src/slides/Slide7Products.tsx +81 -81
- package/src/slides/Slide8Months.css +148 -148
- package/src/slides/Slide8Months.tsx +63 -63
- package/src/slides/Slide9Year.css +93 -93
- package/src/slides/Slide9Year.tsx +35 -35
- package/src/types.ts +39 -39
- package/src/utils/format.ts +18 -18
- package/src/utils/index.ts +3 -3
- package/src/utils/motion.ts +89 -89
package/src/App.css
CHANGED
|
@@ -1,156 +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
|
-
}
|
|
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
|
+
/* 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
|
+
}
|
package/src/FloatingFrames.css
CHANGED
|
@@ -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
|
+
}
|
package/src/FloatingFrames.tsx
CHANGED
|
@@ -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;
|