@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
|
@@ -1,92 +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
|
-
}
|
|
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
|
+
}
|
|
@@ -1,27 +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;
|
|
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;
|
|
@@ -1,144 +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
|
-
}
|
|
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
|
+
}
|
|
@@ -1,81 +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;
|
|
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;
|