@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,140 @@
1
+ .slide5-buyers {
2
+ position: relative;
3
+ width: 100%;
4
+ min-height: 100%;
5
+ display: flex;
6
+ align-items: center;
7
+ justify-content: center;
8
+ padding: 9.48% 6.15% 7.11%;
9
+ overflow: hidden;
10
+ }
11
+
12
+ @media (max-height: 720px), (orientation: landscape) {
13
+ .slide5-buyers {
14
+ padding: clamp(24px, 5vh, 40px) 6.15% clamp(24px, 4vh, 32px);
15
+ }
16
+ }
17
+
18
+ .slide5-buyers__grid {
19
+ position: absolute;
20
+ inset: 0;
21
+ /* width: 650px; */
22
+ height: 100%;
23
+ margin: 0 auto;
24
+ pointer-events: none;
25
+ z-index: 0;
26
+ }
27
+
28
+ .column {
29
+ position: absolute;
30
+ width: 179px;
31
+ height: 100%;
32
+ display: flex;
33
+ justify-content: center;
34
+ }
35
+
36
+ .column-left {
37
+ left: -33.33%;
38
+ }
39
+
40
+ .column-right {
41
+ right: -33.33%;
42
+ }
43
+
44
+ .column-inner {
45
+ position: absolute;
46
+ top: 0;
47
+ left: 0;
48
+ width: 179px;
49
+ height: 1300px;
50
+ }
51
+
52
+ .column-left .column-inner {
53
+ animation: moveUp 6s linear infinite;
54
+ }
55
+
56
+ .column-right .column-inner {
57
+ animation: moveDown 6s linear infinite;
58
+ }
59
+
60
+ .rect {
61
+ position: absolute;
62
+ width: 179px;
63
+ height: 239px;
64
+ box-sizing: border-box;
65
+ border: 1px solid #FFFFFF;
66
+ }
67
+
68
+ .rect.l1 { top: -251.5px; }
69
+ .rect.l2 { top: 0.5px; }
70
+ .rect.l3 { top: 252.5px; }
71
+ .rect.l4 { top: 504.5px; }
72
+ .rect.l5 { top: 756.5px; }
73
+ .rect.l6 { top: 1008.5px; }
74
+
75
+ .rect.r1 { top: -247.022px; }
76
+ .rect.r2 { top: 4.978px; }
77
+ .rect.r3 { top: 256.978px; }
78
+ .rect.r4 { top: 508.978px; }
79
+ .rect.r5 { top: 760.978px; }
80
+ .rect.r6 { top: 1012.978px; }
81
+
82
+ @keyframes moveUp {
83
+ from { transform: translateY(0); }
84
+ to { transform: translateY(-29.86%); }
85
+ }
86
+
87
+ @keyframes moveDown {
88
+ from { transform: translateY(0); }
89
+ to { transform: translateY(29.86%); }
90
+ }
91
+
92
+ .slide5-buyers__content {
93
+ position: relative;
94
+ z-index: 1;
95
+ max-width: 360px;
96
+ text-align: center;
97
+ display: flex;
98
+ flex-direction: column;
99
+ align-items: center;
100
+ justify-content: center;
101
+ gap: 6.58vh;
102
+ }
103
+
104
+ .slide5-buyers__number {
105
+ font-family: 'Lora', 'Georgia', serif;
106
+ font-size: 11.37vh;
107
+ font-weight: 700;
108
+ /* line-height: 1; */
109
+ background: linear-gradient(90deg, #FFFFFF 0%, #FFCC80 100%);
110
+ -webkit-background-clip: text;
111
+ -webkit-text-fill-color: transparent;
112
+ background-clip: text;
113
+ color: transparent;
114
+ padding-top: 4.74%;
115
+ }
116
+
117
+ .slide5-buyers__number.down {
118
+ font-size: 7.58vh;
119
+ }
120
+
121
+ .slide5-buyers__label {
122
+ font-family: 'Lora', 'Georgia', serif;
123
+ font-size: 1.89vh;
124
+ font-weight: 400;
125
+ background: linear-gradient(90deg, #FFFFFF 0%, #FFCC80 100%);
126
+ -webkit-background-clip: text;
127
+ -webkit-text-fill-color: transparent;
128
+ background-clip: text;
129
+ color: transparent;
130
+ }
131
+
132
+ @media (max-width: 480px) {
133
+ .slide5-buyers {
134
+ padding: 8.29% 4.1% 5.92%;
135
+ }
136
+
137
+ /* .slide5-buyers__number {
138
+ font-size: clamp(56px, 26vw, 72px);
139
+ } */
140
+ }
@@ -0,0 +1,74 @@
1
+ import React from 'react';
2
+ import { motion } from 'framer-motion';
3
+ import './Slide5Buyers.css';
4
+
5
+ interface Slide5BuyersProps {
6
+ firstTimeBuyers: number;
7
+ repeatBuyers: number;
8
+ }
9
+
10
+ /**
11
+ * Slide5Buyers - Displays first-time and returning buyer counts with vertical animated columns
12
+ */
13
+ function Slide5Buyers({ firstTimeBuyers, repeatBuyers }: Slide5BuyersProps) {
14
+ const leftRects = ['l1', 'l2', 'l3', 'l4', 'l5', 'l6'];
15
+ const rightRects = ['r1', 'r2', 'r3', 'r4', 'r5', 'r6'];
16
+
17
+ return (
18
+ <div className="slide5-buyers">
19
+ <div className="slide5-buyers__grid" aria-hidden="true">
20
+ <div className="column column-left">
21
+ <div className="column-inner">
22
+ {leftRects.map(rect => (
23
+ <span key={rect} className={`rect ${rect}`} />
24
+ ))}
25
+ </div>
26
+ </div>
27
+ <div className="column column-right">
28
+ <div className="column-inner">
29
+ {rightRects.map(rect => (
30
+ <span key={rect} className={`rect ${rect}`} />
31
+ ))}
32
+ </div>
33
+ </div>
34
+ </div>
35
+
36
+ <div className="slide5-buyers__content">
37
+ <motion.div
38
+ className="slide5-buyers__number"
39
+ initial={{ opacity: 0, y: 20 }}
40
+ animate={{ opacity: 1, y: 0 }}
41
+ transition={{ duration: 0.6 }}
42
+ >
43
+ {firstTimeBuyers.toLocaleString()}
44
+ </motion.div>
45
+ <motion.p
46
+ className="slide5-buyers__label"
47
+ initial={{ opacity: 0, y: 20 }}
48
+ animate={{ opacity: 1, y: 0 }}
49
+ transition={{ duration: 0.6, delay: 0.2 }}
50
+ >
51
+ people don buy from you
52
+ </motion.p>
53
+ <motion.div
54
+ className="slide5-buyers__number down"
55
+ initial={{ opacity: 0, y: 20 }}
56
+ animate={{ opacity: 1, y: 0 }}
57
+ transition={{ duration: 0.6, delay: 0.4 }}
58
+ >
59
+ {repeatBuyers.toLocaleString()}
60
+ </motion.div>
61
+ <motion.p
62
+ className="slide5-buyers__label"
63
+ initial={{ opacity: 0, y: 20 }}
64
+ animate={{ opacity: 1, y: 0 }}
65
+ transition={{ duration: 0.6, delay: 0.6 }}
66
+ >
67
+ people come buy again
68
+ </motion.p>
69
+ </div>
70
+ </div>
71
+ );
72
+ }
73
+
74
+ export default Slide5Buyers;
@@ -0,0 +1,92 @@
1
+ .slide6-customer {
2
+ position: relative;
3
+ width: 100%;
4
+ height: 100%;
5
+ overflow: hidden;
6
+ }
7
+
8
+ @media (max-height: 720px), (orientation: landscape) {
9
+ .slide6-customer__outer-rect {
10
+ height: 60%;
11
+ top: 5%;
12
+ }
13
+
14
+ .slide6-customer__inner-rect {
15
+ height: 38%;
16
+ top: 28%;
17
+ }
18
+ }
19
+
20
+ @keyframes slide6-moveDown {
21
+ 0% { transform: translateY(0); }
22
+ 100% { transform: translateY(4.74%); }
23
+ }
24
+
25
+ .slide6-customer__outer-rect {
26
+ position: absolute;
27
+ width: 93.85%;
28
+ height: 69.79%;
29
+ top: 1.9%;
30
+ left: 3.08%;
31
+ border: 1px solid #fff;
32
+ animation: slide6-moveDown 6s ease-in-out infinite alternate;
33
+ }
34
+
35
+ .slide6-customer__inner-rect {
36
+ position: absolute;
37
+ width: 85.38%;
38
+ height: 45.97%;
39
+ top: 25.59%;
40
+ left: 6.79%;
41
+ border: 1px solid #fff;
42
+ animation: slide6-moveUp 6s ease-in-out infinite alternate;
43
+ display: flex;
44
+ align-items: center;
45
+ justify-content: center;
46
+ }
47
+
48
+ .slide6-customer__sketch {
49
+ width: 65.64%;
50
+ /* max-height: 30.09%; */
51
+ object-fit: contain;
52
+ }
53
+
54
+ .slide6-customer__label {
55
+ position: absolute;
56
+ bottom: 13.03%;
57
+ left: 4.1%;
58
+ right: 4.1%;
59
+ display: flex;
60
+ flex-direction: column;
61
+ align-items: center;
62
+ gap: 2.79vh;
63
+ text-align: center;
64
+ }
65
+
66
+ .slide6-customer__name,
67
+ .slide6-customer__text {
68
+ width: 100%;
69
+ font-family: 'Lora', serif;
70
+ text-align: center;
71
+ background: linear-gradient(90deg, #ffffff 0%, #ffcc80 100%);
72
+ -webkit-background-clip: text;
73
+ background-clip: text;
74
+ color: transparent;
75
+ }
76
+
77
+ .slide6-customer__name {
78
+ font-weight: 700;
79
+ font-size: 4.74vh;
80
+ line-height: 1.28;
81
+ }
82
+
83
+ .slide6-customer__text {
84
+ font-weight: 400;
85
+ font-size: 1.89vh;
86
+ line-height: 1.5;
87
+ }
88
+
89
+ @keyframes slide6-moveUp {
90
+ 0% { transform: translateY(0); }
91
+ 100% { transform: translateY(-4.74%); }
92
+ }
@@ -0,0 +1,27 @@
1
+ import React from 'react';
2
+ import './Slide6Customer.css';
3
+ import sketchDraw from '../assets/huxxle_star_final.gif';
4
+
5
+ interface Slide6CustomerProps {
6
+ customerName: string;
7
+ }
8
+
9
+ /**
10
+ * Slide6Customer - Centered customer illustration with floating frames and hero text
11
+ */
12
+ function Slide6Customer({ customerName }: Slide6CustomerProps) {
13
+ return (
14
+ <div className="slide6-customer">
15
+ <div className="slide6-customer__outer-rect" aria-hidden="true" />
16
+ <div className="slide6-customer__inner-rect" aria-hidden="true">
17
+ <img src={sketchDraw} alt="Customer storytelling sketch" className="slide6-customer__sketch" />
18
+ </div>
19
+ <div className="slide6-customer__label">
20
+ <span className="slide6-customer__name">{customerName}</span>
21
+ <p className="slide6-customer__text">na your top customer be that, hol am tight</p>
22
+ </div>
23
+ </div>
24
+ );
25
+ }
26
+
27
+ export default Slide6Customer;
@@ -0,0 +1,144 @@
1
+ .slide7-products {
2
+ position: relative;
3
+ width: 100%;
4
+ height: 100%;
5
+ padding: 0 6.15%;
6
+ margin-top: 12.8vh;
7
+ display: flex;
8
+ flex-direction: column;
9
+ align-items: center;
10
+ justify-content: flex-start;
11
+ gap: 4.74vh;
12
+ overflow: hidden;
13
+ }
14
+
15
+ .slide7-products__lead {
16
+ font-family: 'Lora', serif;
17
+ font-size: 1.89vh;
18
+ font-weight: 400;
19
+ text-align: center;
20
+ background: linear-gradient(90deg, #ffffff 0%, #ffcc80 100%);
21
+ -webkit-background-clip: text;
22
+ background-clip: text;
23
+ -webkit-text-fill-color: transparent;
24
+ color: transparent;
25
+ margin: 0;
26
+ }
27
+
28
+ .slide7-products__list {
29
+ width: 100%;
30
+ display: flex;
31
+ flex-direction: column;
32
+ gap: 0.9vh;
33
+ }
34
+
35
+ .slide7-products__row {
36
+ display: flex;
37
+ flex-direction: row;
38
+ align-items: center;
39
+ padding: 0;
40
+ gap: 16px;
41
+ width: 100%;
42
+ max-width: 358px;
43
+ height: 11.37vh;
44
+ min-height: 80px;
45
+ }
46
+
47
+ .slide7-products__rank {
48
+ font-family: 'Lora', serif;
49
+ font-size: clamp(18px, 6.15vw, 24px);
50
+ font-weight: 700;
51
+ line-height: 1.3;
52
+ background: linear-gradient(90deg, #ffffff 0%, #ffcc80 100%);
53
+ -webkit-background-clip: text;
54
+ -webkit-text-fill-color: transparent;
55
+ background-clip: text;
56
+ color: transparent;
57
+ width: 5.12%;
58
+ }
59
+
60
+ .slide7-products__card {
61
+ flex: 1;
62
+ display: flex;
63
+ align-items: center;
64
+ gap: 2.56%;
65
+ padding: 0.95%;
66
+ height: 10.37vh;
67
+ width: 100%;
68
+ justify-content: flex-start;
69
+ }
70
+
71
+ .slide7-products__image-frame {
72
+ width: 22.31%;
73
+ height: 100%;
74
+ box-sizing: border-box;
75
+ border: 1px solid #ffffff;
76
+ display: flex;
77
+ align-items: center;
78
+ justify-content: center;
79
+ }
80
+
81
+ .slide7-products__image {
82
+ width: 87%;
83
+ height: 88.5%;
84
+ border: 1px solid #ffffff;
85
+ object-fit: cover;
86
+ display: block;
87
+ }
88
+
89
+ .slide7-products__text {
90
+ display: flex;
91
+ flex-direction: column;
92
+ gap: 0.83%;
93
+ }
94
+
95
+ .slide7-products__title,
96
+ .slide7-products__subtitle {
97
+ font-family: 'Lora', serif;
98
+ background: linear-gradient(90deg, #ffffff 0%, #ffcc80 100%);
99
+ -webkit-background-clip: text;
100
+ -webkit-text-fill-color: transparent;
101
+ background-clip: text;
102
+ color: transparent;
103
+ width: 100%;
104
+ max-width: 208px;
105
+ }
106
+ .slide7-products__title {
107
+ font-size: clamp(16px, 5.13vw, 20px);
108
+ font-weight: 700;
109
+ line-height: 1.3;
110
+ display: -webkit-box;
111
+ -webkit-box-orient: vertical;
112
+ -webkit-line-clamp: 2;
113
+ line-clamp: 2;
114
+ overflow: hidden;
115
+ text-overflow: ellipsis;
116
+ }
117
+ .slide7-products__subtitle {
118
+ font-size: clamp(14px, 4.1vw, 16px);
119
+ font-weight: 400;
120
+ /* line-height: 72px; */
121
+ }
122
+
123
+ .slide7-products__frames {
124
+ position: absolute;
125
+ left: 0;
126
+ top: 72.27vh;
127
+ width: 100%;
128
+ display: flex;
129
+ flex-direction: row;
130
+ justify-content: center;
131
+ align-items: center;
132
+ gap: 4.1%;
133
+ pointer-events: none;
134
+ z-index: 1;
135
+ }
136
+
137
+ .slide7-products__rect {
138
+ box-sizing: border-box;
139
+ width: 46.15%;
140
+ aspect-ratio: 180 / 240;
141
+ border: 1px solid #FFFFFF;
142
+ flex: none;
143
+ flex-grow: 0;
144
+ }
@@ -0,0 +1,81 @@
1
+ import React from 'react';
2
+ import { motion, type Variants } from 'framer-motion';
3
+ import './Slide7Products.css';
4
+ import type { ProductSummary } from '../types';
5
+
6
+ interface Slide7ProductsProps {
7
+ products: ProductSummary[];
8
+ }
9
+
10
+ const listVariant: Variants = {
11
+ initial: { opacity: 0 },
12
+ animate: {
13
+ opacity: 1,
14
+ transition: {
15
+ staggerChildren: 0.3,
16
+ delayChildren: 0.2,
17
+ when: 'beforeChildren'
18
+ }
19
+ }
20
+ };
21
+
22
+ const rowVariant: Variants = {
23
+ initial: { opacity: 0, y: 60 },
24
+ animate: {
25
+ opacity: 1,
26
+ y: 0,
27
+ transition: { duration: 1.1, ease: [0.33, 0.1, 0.33, 1] }
28
+ }
29
+ };
30
+
31
+ /**
32
+ * Slide7Products - Top products list with numbered cards and gradient headline
33
+ */
34
+ function Slide7Products({ products }: Slide7ProductsProps) {
35
+ return (
36
+ <div className="slide7-products">
37
+ <p className="slide7-products__lead">Wetin people buy passssss</p>
38
+ <motion.div
39
+ className="slide7-products__list"
40
+ variants={listVariant}
41
+ initial="initial"
42
+ animate="animate"
43
+ >
44
+ {products.map((product, index) => (
45
+ <motion.div
46
+ className="slide7-products__row"
47
+ key={`${product.name}-${index}`}
48
+ variants={rowVariant}
49
+ >
50
+ <span className="slide7-products__rank">{index + 1}</span>
51
+ <div className="slide7-products__card">
52
+ <div className="slide7-products__image-frame">
53
+ <img
54
+ src={product.productImage}
55
+ alt={product.name}
56
+ className="slide7-products__image"
57
+ loading="lazy"
58
+ />
59
+ </div>
60
+ <div className="slide7-products__text">
61
+ <span className="slide7-products__title">{product.name}</span>
62
+ <span className="slide7-products__subtitle">you sell {product.units} units</span>
63
+ </div>
64
+ </div>
65
+ </motion.div>
66
+ ))}
67
+ </motion.div>
68
+ <motion.div
69
+ className="slide7-products__frames"
70
+ animate={{ x: [60, -60] }}
71
+ transition={{ duration: 6, repeat: Infinity, repeatType: 'reverse', ease: 'linear' }}
72
+ >
73
+ {[0, 1, 2].map((frame) => (
74
+ <span className="slide7-products__rect" key={`frame-${frame}`} />
75
+ ))}
76
+ </motion.div>
77
+ </div>
78
+ );
79
+ }
80
+
81
+ export default Slide7Products;
@@ -0,0 +1,148 @@
1
+ .slide8-months {
2
+ position: relative;
3
+ width: 100%;
4
+ height: 100%;
5
+ overflow: hidden;
6
+ display: flex;
7
+ flex-direction: column;
8
+ align-items: center;
9
+ margin-top: 12.8vh;
10
+ }
11
+
12
+ /* @media (max-height: 720px), (orientation: landscape) {
13
+ .slide8-months {
14
+ padding-top: clamp(32px, 6vh, 48px);
15
+ }
16
+
17
+ .slide8-months__list {
18
+ top: clamp(80px, 12vh, 100px);
19
+ height: calc(100% - clamp(100px, 14vh, 120px));
20
+ gap: clamp(12px, 2vh, 28px);
21
+ }
22
+ } */
23
+
24
+ .slide8-months__message {
25
+ font-family: 'Lora', serif;
26
+ font-size: clamp(14px, 4.1vw, 16px);
27
+ font-weight: 400;
28
+ text-align: center;
29
+ background: linear-gradient(90deg, #FFFFFF 0%, #FFCC80 100%);
30
+ -webkit-background-clip: text;
31
+ -webkit-text-fill-color: transparent;
32
+ background-clip: text;
33
+ color: transparent;
34
+ margin-bottom: 1.9%;
35
+ z-index: 2;
36
+ }
37
+
38
+ .slide8-months__list {
39
+ position: absolute;
40
+ top: 6vh;
41
+ left: 4.1%;
42
+ width: 91.79%;
43
+ height: 73.7%;
44
+ display: flex;
45
+ flex-direction: column;
46
+ align-items: center;
47
+ gap: 3.32%;
48
+ z-index: 2;
49
+ justify-content: space-evenly;
50
+ }
51
+
52
+ .slide8-months__entry {
53
+ width: 100%;
54
+ font-family: 'Lora', serif;
55
+ font-style: normal;
56
+ font-weight: 400;
57
+ font-size: clamp(16px, 5.13vw, 20px);
58
+ line-height: 1.3;
59
+ text-align: center;
60
+ background: linear-gradient(90deg, #FFFFFF 0%, #FFCC80 100%);
61
+ -webkit-background-clip: text;
62
+ -webkit-text-fill-color: transparent;
63
+ background-clip: text;
64
+ color: transparent;
65
+ opacity: 0.6;
66
+ transition: opacity 0.1s ease, transform 0.1s ease;
67
+ }
68
+
69
+ .slide8-months__entry--current {
70
+ opacity: 1;
71
+ font-weight: 700;
72
+ font-size: clamp(24px, 10.26vw, 40px);
73
+ line-height: 1.28;
74
+ transform: translateY(-0.24%);
75
+ }
76
+
77
+ .slide8-months__rect-group {
78
+ position: absolute;
79
+ width: 71.03%;
80
+ height: 37.44%;
81
+ pointer-events: none;
82
+ }
83
+
84
+ .slide8-months__rect-group--left {
85
+ left: -16.67%;
86
+ top: 15.64%;
87
+ }
88
+
89
+ .slide8-months__rect-group--right {
90
+ left: 105.13%;
91
+ top: 54.98%;
92
+ }
93
+
94
+ .slide8-months__rect {
95
+ position: absolute;
96
+ width: 46.15%;
97
+ aspect-ratio: 180 / 240;
98
+ border: 1px solid #FFFFFF;
99
+ box-sizing: border-box;
100
+ transform-origin: 0 0;
101
+ transform: rotate(28.86deg);
102
+ }
103
+
104
+ .slide8-months__rect--r1 {
105
+ left: 0;
106
+ top: 0;
107
+ }
108
+
109
+ .slide8-months__rect--r2 {
110
+ left: 0.97%;
111
+ top: 4.91%;
112
+ }
113
+
114
+ .slide8-months__rect--r3 {
115
+ left: 0px;
116
+ top: 0px;
117
+ }
118
+
119
+ .slide8-months__rect--r4 {
120
+ left: 0.97%;
121
+ top: 4.91%;
122
+ }
123
+
124
+ .move-up {
125
+ animation: slide8MoveUp 3s cubic-bezier(0.25, 0.46, 0.45, 0.94) infinite alternate;
126
+ }
127
+
128
+ .move-down {
129
+ animation: slide8MoveDown 3s cubic-bezier(0.25, 0.46, 0.45, 0.94) infinite alternate;
130
+ }
131
+
132
+ @keyframes slide8MoveUp {
133
+ from {
134
+ transform: rotate(28.86deg) translateY(0);
135
+ }
136
+ to {
137
+ transform: rotate(28.86deg) translateY(-4.74%);
138
+ }
139
+ }
140
+
141
+ @keyframes slide8MoveDown {
142
+ from {
143
+ transform: rotate(28.86deg) translateY(0);
144
+ }
145
+ to {
146
+ transform: rotate(28.86deg) translateY(4.74%);
147
+ }
148
+ }