@katajere/recap 1.0.3 → 1.0.9
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,148 +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
|
-
}
|
|
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
|
+
}
|
|
@@ -1,63 +1,63 @@
|
|
|
1
|
-
import React, { useEffect, useState } from 'react';
|
|
2
|
-
import './Slide8Months.css';
|
|
3
|
-
|
|
4
|
-
const MONTHS = ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'];
|
|
5
|
-
|
|
6
|
-
interface Slide8MonthsProps {
|
|
7
|
-
busiestMonth: string;
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
const animationDelay = 120;
|
|
11
|
-
|
|
12
|
-
function Slide8Months({ busiestMonth }: Slide8MonthsProps) {
|
|
13
|
-
const activeMonth = MONTHS.includes(busiestMonth) ? busiestMonth : MONTHS[0];
|
|
14
|
-
const targetIndex = Math.max(MONTHS.indexOf(activeMonth), 0);
|
|
15
|
-
const [highlightIndex, setHighlightIndex] = useState(0);
|
|
16
|
-
|
|
17
|
-
useEffect(() => {
|
|
18
|
-
setHighlightIndex(0);
|
|
19
|
-
const timers: number[] = [];
|
|
20
|
-
|
|
21
|
-
for (let step = 1; step <= targetIndex; step += 1) {
|
|
22
|
-
const timer = window.setTimeout(() => {
|
|
23
|
-
setHighlightIndex(step);
|
|
24
|
-
}, step * animationDelay);
|
|
25
|
-
timers.push(timer);
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
return () => timers.forEach((timer) => window.clearTimeout(timer));
|
|
29
|
-
}, [targetIndex]);
|
|
30
|
-
|
|
31
|
-
return (
|
|
32
|
-
<div className="slide8-months">
|
|
33
|
-
<div className="slide8-months__message">You burst brain pass for</div>
|
|
34
|
-
<div className="slide8-months__list">
|
|
35
|
-
{MONTHS.map((month, index) => {
|
|
36
|
-
const classes = [
|
|
37
|
-
'slide8-months__entry',
|
|
38
|
-
index === highlightIndex ? 'slide8-months__entry--current' : ''
|
|
39
|
-
]
|
|
40
|
-
.filter(Boolean)
|
|
41
|
-
.join(' ');
|
|
42
|
-
|
|
43
|
-
return (
|
|
44
|
-
<span key={month} className={classes}>
|
|
45
|
-
{month}
|
|
46
|
-
</span>
|
|
47
|
-
);
|
|
48
|
-
})}
|
|
49
|
-
</div>
|
|
50
|
-
|
|
51
|
-
<div className="slide8-months__rect-group slide8-months__rect-group--left">
|
|
52
|
-
<span className="slide8-months__rect slide8-months__rect--r1 move-up" />
|
|
53
|
-
<span className="slide8-months__rect slide8-months__rect--r2 move-down" />
|
|
54
|
-
</div>
|
|
55
|
-
<div className="slide8-months__rect-group slide8-months__rect-group--right">
|
|
56
|
-
<span className="slide8-months__rect slide8-months__rect--r3 move-down" />
|
|
57
|
-
<span className="slide8-months__rect slide8-months__rect--r4 move-up" />
|
|
58
|
-
</div>
|
|
59
|
-
</div>
|
|
60
|
-
);
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
export default Slide8Months;
|
|
1
|
+
import React, { useEffect, useState } from 'react';
|
|
2
|
+
import './Slide8Months.css';
|
|
3
|
+
|
|
4
|
+
const MONTHS = ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'];
|
|
5
|
+
|
|
6
|
+
interface Slide8MonthsProps {
|
|
7
|
+
busiestMonth: string;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
const animationDelay = 120;
|
|
11
|
+
|
|
12
|
+
function Slide8Months({ busiestMonth }: Slide8MonthsProps) {
|
|
13
|
+
const activeMonth = MONTHS.includes(busiestMonth) ? busiestMonth : MONTHS[0];
|
|
14
|
+
const targetIndex = Math.max(MONTHS.indexOf(activeMonth), 0);
|
|
15
|
+
const [highlightIndex, setHighlightIndex] = useState(0);
|
|
16
|
+
|
|
17
|
+
useEffect(() => {
|
|
18
|
+
setHighlightIndex(0);
|
|
19
|
+
const timers: number[] = [];
|
|
20
|
+
|
|
21
|
+
for (let step = 1; step <= targetIndex; step += 1) {
|
|
22
|
+
const timer = window.setTimeout(() => {
|
|
23
|
+
setHighlightIndex(step);
|
|
24
|
+
}, step * animationDelay);
|
|
25
|
+
timers.push(timer);
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
return () => timers.forEach((timer) => window.clearTimeout(timer));
|
|
29
|
+
}, [targetIndex]);
|
|
30
|
+
|
|
31
|
+
return (
|
|
32
|
+
<div className="slide8-months">
|
|
33
|
+
<div className="slide8-months__message">You burst brain pass for</div>
|
|
34
|
+
<div className="slide8-months__list">
|
|
35
|
+
{MONTHS.map((month, index) => {
|
|
36
|
+
const classes = [
|
|
37
|
+
'slide8-months__entry',
|
|
38
|
+
index === highlightIndex ? 'slide8-months__entry--current' : ''
|
|
39
|
+
]
|
|
40
|
+
.filter(Boolean)
|
|
41
|
+
.join(' ');
|
|
42
|
+
|
|
43
|
+
return (
|
|
44
|
+
<span key={month} className={classes}>
|
|
45
|
+
{month}
|
|
46
|
+
</span>
|
|
47
|
+
);
|
|
48
|
+
})}
|
|
49
|
+
</div>
|
|
50
|
+
|
|
51
|
+
<div className="slide8-months__rect-group slide8-months__rect-group--left">
|
|
52
|
+
<span className="slide8-months__rect slide8-months__rect--r1 move-up" />
|
|
53
|
+
<span className="slide8-months__rect slide8-months__rect--r2 move-down" />
|
|
54
|
+
</div>
|
|
55
|
+
<div className="slide8-months__rect-group slide8-months__rect-group--right">
|
|
56
|
+
<span className="slide8-months__rect slide8-months__rect--r3 move-down" />
|
|
57
|
+
<span className="slide8-months__rect slide8-months__rect--r4 move-up" />
|
|
58
|
+
</div>
|
|
59
|
+
</div>
|
|
60
|
+
);
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
export default Slide8Months;
|
|
@@ -1,93 +1,93 @@
|
|
|
1
|
-
.slide9-year {
|
|
2
|
-
position: relative;
|
|
3
|
-
width: 100%;
|
|
4
|
-
height: 100%;
|
|
5
|
-
overflow: hidden;
|
|
6
|
-
display: flex;
|
|
7
|
-
flex-direction: column;
|
|
8
|
-
align-items: center;
|
|
9
|
-
/* justify-content: center; */
|
|
10
|
-
padding-top: 17.54vh;
|
|
11
|
-
color: white;
|
|
12
|
-
text-align: center;
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
.slide9-year__message {
|
|
16
|
-
font-family: 'Lora', serif;
|
|
17
|
-
font-size: clamp(14px, 4.1vw, 16px);
|
|
18
|
-
font-weight: 400;
|
|
19
|
-
margin-bottom: 2.84%;
|
|
20
|
-
/* width: 320px; */
|
|
21
|
-
background: linear-gradient(90deg, #FFFFFF 0%, #FFCC80 100%);
|
|
22
|
-
-webkit-background-clip: text;
|
|
23
|
-
-webkit-text-fill-color: transparent;
|
|
24
|
-
background-clip: text;
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
.slide9-year__title {
|
|
28
|
-
font-family: 'Lora', serif;
|
|
29
|
-
font-size: clamp(24px, 10.26vw, 40px);
|
|
30
|
-
font-weight: 700;
|
|
31
|
-
line-height: 1.28;
|
|
32
|
-
margin-bottom: 1.9%;
|
|
33
|
-
width: 92.31%;
|
|
34
|
-
text-transform: capitalize;
|
|
35
|
-
background: linear-gradient(90deg, #FFFFFF 0%, #FFCC80 100%);
|
|
36
|
-
-webkit-background-clip: text;
|
|
37
|
-
-webkit-text-fill-color: transparent;
|
|
38
|
-
background-clip: text;
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
.slide9-year__crown {
|
|
42
|
-
font-size: clamp(48px, 24.62vw, 96px);
|
|
43
|
-
line-height: 1.28;
|
|
44
|
-
margin-bottom: 4.74%;
|
|
45
|
-
background-clip: text;
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
.slide9-year__rect-layer {
|
|
49
|
-
display: flex;
|
|
50
|
-
flex-direction: row;
|
|
51
|
-
justify-content: center;
|
|
52
|
-
align-items: center;
|
|
53
|
-
padding: 0;
|
|
54
|
-
gap: clamp(8px, 3.08vw, 12px);
|
|
55
|
-
position: absolute;
|
|
56
|
-
width: 100%;
|
|
57
|
-
left: 0;
|
|
58
|
-
z-index: 2;
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
.slide9-year__rect-layer--top {
|
|
62
|
-
top: 50vh;
|
|
63
|
-
}
|
|
64
|
-
|
|
65
|
-
.slide9-year__rect-layer--bottom {
|
|
66
|
-
top: 79.86vh;
|
|
67
|
-
}
|
|
68
|
-
|
|
69
|
-
.slide9-year__rect {
|
|
70
|
-
width: clamp(140px, 46.15vw, 180px);
|
|
71
|
-
height: 28.4vh;
|
|
72
|
-
box-sizing: border-box;
|
|
73
|
-
border: 1px solid #ffffff;
|
|
74
|
-
flex: none;
|
|
75
|
-
}
|
|
76
|
-
|
|
77
|
-
.top-group {
|
|
78
|
-
animation: slide9MoveRight 8s linear infinite;
|
|
79
|
-
}
|
|
80
|
-
|
|
81
|
-
.bottom-group {
|
|
82
|
-
animation: slide9MoveLeft 8s linear infinite;
|
|
83
|
-
}
|
|
84
|
-
|
|
85
|
-
@keyframes slide9MoveRight {
|
|
86
|
-
from { transform: translateX(0); }
|
|
87
|
-
to { transform: translateX(20.51%); }
|
|
88
|
-
}
|
|
89
|
-
|
|
90
|
-
@keyframes slide9MoveLeft {
|
|
91
|
-
from { transform: translateX(0); }
|
|
92
|
-
to { transform: translateX(-20.51%); }
|
|
93
|
-
}
|
|
1
|
+
.slide9-year {
|
|
2
|
+
position: relative;
|
|
3
|
+
width: 100%;
|
|
4
|
+
height: 100%;
|
|
5
|
+
overflow: hidden;
|
|
6
|
+
display: flex;
|
|
7
|
+
flex-direction: column;
|
|
8
|
+
align-items: center;
|
|
9
|
+
/* justify-content: center; */
|
|
10
|
+
padding-top: 17.54vh;
|
|
11
|
+
color: white;
|
|
12
|
+
text-align: center;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
.slide9-year__message {
|
|
16
|
+
font-family: 'Lora', serif;
|
|
17
|
+
font-size: clamp(14px, 4.1vw, 16px);
|
|
18
|
+
font-weight: 400;
|
|
19
|
+
margin-bottom: 2.84%;
|
|
20
|
+
/* width: 320px; */
|
|
21
|
+
background: linear-gradient(90deg, #FFFFFF 0%, #FFCC80 100%);
|
|
22
|
+
-webkit-background-clip: text;
|
|
23
|
+
-webkit-text-fill-color: transparent;
|
|
24
|
+
background-clip: text;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
.slide9-year__title {
|
|
28
|
+
font-family: 'Lora', serif;
|
|
29
|
+
font-size: clamp(24px, 10.26vw, 40px);
|
|
30
|
+
font-weight: 700;
|
|
31
|
+
line-height: 1.28;
|
|
32
|
+
margin-bottom: 1.9%;
|
|
33
|
+
width: 92.31%;
|
|
34
|
+
text-transform: capitalize;
|
|
35
|
+
background: linear-gradient(90deg, #FFFFFF 0%, #FFCC80 100%);
|
|
36
|
+
-webkit-background-clip: text;
|
|
37
|
+
-webkit-text-fill-color: transparent;
|
|
38
|
+
background-clip: text;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
.slide9-year__crown {
|
|
42
|
+
font-size: clamp(48px, 24.62vw, 96px);
|
|
43
|
+
line-height: 1.28;
|
|
44
|
+
margin-bottom: 4.74%;
|
|
45
|
+
background-clip: text;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
.slide9-year__rect-layer {
|
|
49
|
+
display: flex;
|
|
50
|
+
flex-direction: row;
|
|
51
|
+
justify-content: center;
|
|
52
|
+
align-items: center;
|
|
53
|
+
padding: 0;
|
|
54
|
+
gap: clamp(8px, 3.08vw, 12px);
|
|
55
|
+
position: absolute;
|
|
56
|
+
width: 100%;
|
|
57
|
+
left: 0;
|
|
58
|
+
z-index: 2;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
.slide9-year__rect-layer--top {
|
|
62
|
+
top: 50vh;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
.slide9-year__rect-layer--bottom {
|
|
66
|
+
top: 79.86vh;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
.slide9-year__rect {
|
|
70
|
+
width: clamp(140px, 46.15vw, 180px);
|
|
71
|
+
height: 28.4vh;
|
|
72
|
+
box-sizing: border-box;
|
|
73
|
+
border: 1px solid #ffffff;
|
|
74
|
+
flex: none;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
.top-group {
|
|
78
|
+
animation: slide9MoveRight 8s linear infinite;
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
.bottom-group {
|
|
82
|
+
animation: slide9MoveLeft 8s linear infinite;
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
@keyframes slide9MoveRight {
|
|
86
|
+
from { transform: translateX(0); }
|
|
87
|
+
to { transform: translateX(20.51%); }
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
@keyframes slide9MoveLeft {
|
|
91
|
+
from { transform: translateX(0); }
|
|
92
|
+
to { transform: translateX(-20.51%); }
|
|
93
|
+
}
|
|
@@ -1,35 +1,35 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import './Slide9Year.css';
|
|
3
|
-
import { recapCopy } from '../data/recapCopy';
|
|
4
|
-
import { BUSINESS_CATEGORIES } from '../types';
|
|
5
|
-
import type { BusinessCategory } from '../types';
|
|
6
|
-
|
|
7
|
-
interface Slide9YearProps {
|
|
8
|
-
businessCategory: BusinessCategory;
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
function Slide9Year({ businessCategory }: Slide9YearProps) {
|
|
12
|
-
const copy = recapCopy[businessCategory] ?? recapCopy[BUSINESS_CATEGORIES.THRIVING];
|
|
13
|
-
|
|
14
|
-
return (
|
|
15
|
-
<div className="slide9-year">
|
|
16
|
-
<div className="slide9-year__message">{copy.yearHeadline}</div>
|
|
17
|
-
<div className="slide9-year__title">2026 na your year</div>
|
|
18
|
-
<div className="slide9-year__crown">👑</div>
|
|
19
|
-
|
|
20
|
-
<div className="slide9-year__rect-layer slide9-year__rect-layer--top">
|
|
21
|
-
<span className="slide9-year__rect slide9-year__rect--top-1 top-group" />
|
|
22
|
-
<span className="slide9-year__rect slide9-year__rect--top-2 top-group" />
|
|
23
|
-
<span className="slide9-year__rect slide9-year__rect--top-3 top-group" />
|
|
24
|
-
</div>
|
|
25
|
-
|
|
26
|
-
<div className="slide9-year__rect-layer slide9-year__rect-layer--bottom">
|
|
27
|
-
<span className="slide9-year__rect slide9-year__rect--bottom-1 bottom-group" />
|
|
28
|
-
<span className="slide9-year__rect slide9-year__rect--bottom-2 bottom-group" />
|
|
29
|
-
<span className="slide9-year__rect slide9-year__rect--bottom-3 bottom-group" />
|
|
30
|
-
</div>
|
|
31
|
-
</div>
|
|
32
|
-
);
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
export default Slide9Year;
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import './Slide9Year.css';
|
|
3
|
+
import { recapCopy } from '../data/recapCopy';
|
|
4
|
+
import { BUSINESS_CATEGORIES } from '../types';
|
|
5
|
+
import type { BusinessCategory } from '../types';
|
|
6
|
+
|
|
7
|
+
interface Slide9YearProps {
|
|
8
|
+
businessCategory: BusinessCategory;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
function Slide9Year({ businessCategory }: Slide9YearProps) {
|
|
12
|
+
const copy = recapCopy[businessCategory] ?? recapCopy[BUSINESS_CATEGORIES.THRIVING];
|
|
13
|
+
|
|
14
|
+
return (
|
|
15
|
+
<div className="slide9-year">
|
|
16
|
+
<div className="slide9-year__message">{copy.yearHeadline}</div>
|
|
17
|
+
<div className="slide9-year__title">2026 na your year</div>
|
|
18
|
+
<div className="slide9-year__crown">👑</div>
|
|
19
|
+
|
|
20
|
+
<div className="slide9-year__rect-layer slide9-year__rect-layer--top">
|
|
21
|
+
<span className="slide9-year__rect slide9-year__rect--top-1 top-group" />
|
|
22
|
+
<span className="slide9-year__rect slide9-year__rect--top-2 top-group" />
|
|
23
|
+
<span className="slide9-year__rect slide9-year__rect--top-3 top-group" />
|
|
24
|
+
</div>
|
|
25
|
+
|
|
26
|
+
<div className="slide9-year__rect-layer slide9-year__rect-layer--bottom">
|
|
27
|
+
<span className="slide9-year__rect slide9-year__rect--bottom-1 bottom-group" />
|
|
28
|
+
<span className="slide9-year__rect slide9-year__rect--bottom-2 bottom-group" />
|
|
29
|
+
<span className="slide9-year__rect slide9-year__rect--bottom-3 bottom-group" />
|
|
30
|
+
</div>
|
|
31
|
+
</div>
|
|
32
|
+
);
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
export default Slide9Year;
|