@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,105 +1,105 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import './Slide10Final.css';
|
|
3
|
-
|
|
4
|
-
interface Slide10FinalProps {
|
|
5
|
-
videoUrl: string;
|
|
6
|
-
downloadUrl: string;
|
|
7
|
-
onReplay: () => void;
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
function Slide10Final({ videoUrl, downloadUrl, onReplay }: Slide10FinalProps) {
|
|
11
|
-
const handleShare = async () => {
|
|
12
|
-
try {
|
|
13
|
-
// Fetch the media as a blob
|
|
14
|
-
const response = await fetch(videoUrl);
|
|
15
|
-
const blob = await response.blob();
|
|
16
|
-
|
|
17
|
-
// Determine the file type (video/image)
|
|
18
|
-
const fileExtension = videoUrl.split('.').pop()?.toLowerCase() || 'mp4';
|
|
19
|
-
const mimeType = fileExtension === 'mp4' ? 'video/mp4' : 'image/jpeg';
|
|
20
|
-
const fileName = `huxxle-wrapped-2025.${fileExtension}`;
|
|
21
|
-
|
|
22
|
-
// Create a File object (required for WhatsApp Status)
|
|
23
|
-
const file = new File([blob], fileName, {
|
|
24
|
-
type: mimeType
|
|
25
|
-
});
|
|
26
|
-
|
|
27
|
-
// Validate file size (WhatsApp limits: 5MB for images, 16MB for videos)
|
|
28
|
-
const maxSize = mimeType.startsWith('video') ? 16 * 1024 * 1024 : 5 * 1024 * 1024;
|
|
29
|
-
if (file.size > maxSize) {
|
|
30
|
-
alert(`File is too large. Maximum size is ${mimeType.startsWith('video') ? '16MB' : '5MB'}`);
|
|
31
|
-
return;
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
// Check if sharing files is supported
|
|
35
|
-
if (typeof navigator !== 'undefined' && navigator.canShare && navigator.canShare({ files: [file] })) {
|
|
36
|
-
await navigator.share({
|
|
37
|
-
files: [file],
|
|
38
|
-
title: 'My Huxxle Recap',
|
|
39
|
-
text: 'Check out my Wrapped 2025 highlights! 🎉'
|
|
40
|
-
});
|
|
41
|
-
return;
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
// Fallback to sharing URL if file sharing not supported
|
|
45
|
-
if (typeof navigator !== 'undefined' && navigator.share) {
|
|
46
|
-
await navigator.share({
|
|
47
|
-
title: 'My Huxxle Recap',
|
|
48
|
-
text: 'Check out my Wrapped 2025 highlights! 🎉',
|
|
49
|
-
url: videoUrl
|
|
50
|
-
});
|
|
51
|
-
return;
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
// Final fallback: open in new tab
|
|
55
|
-
if (typeof window !== 'undefined') {
|
|
56
|
-
window.open(videoUrl, '_blank', 'noopener');
|
|
57
|
-
}
|
|
58
|
-
} catch (error) {
|
|
59
|
-
console.error('Share canceled or failed', error);
|
|
60
|
-
|
|
61
|
-
// Fallback on error: open in new tab
|
|
62
|
-
if (typeof window !== 'undefined') {
|
|
63
|
-
window.open(videoUrl, '_blank', 'noopener');
|
|
64
|
-
}
|
|
65
|
-
}
|
|
66
|
-
};
|
|
67
|
-
|
|
68
|
-
const handleDownload = () => {
|
|
69
|
-
const anchor = document.createElement('a');
|
|
70
|
-
anchor.href = downloadUrl;
|
|
71
|
-
anchor.download = 'huxxle-wrapped-2025.mp4';
|
|
72
|
-
anchor.target = '_blank';
|
|
73
|
-
document.body.appendChild(anchor);
|
|
74
|
-
anchor.click();
|
|
75
|
-
document.body.removeChild(anchor);
|
|
76
|
-
};
|
|
77
|
-
|
|
78
|
-
const handleLearnMore = () => {
|
|
79
|
-
window.open('https://www.huxxle.com', '_blank', 'noopener');
|
|
80
|
-
};
|
|
81
|
-
|
|
82
|
-
return (
|
|
83
|
-
<div className="slide10-final">
|
|
84
|
-
<div className="slide10-final__badge">WRAPPED 2025</div>
|
|
85
|
-
<div className="slide10-final__title">Your#1 AI Business Assistant</div>
|
|
86
|
-
|
|
87
|
-
<div className="slide10-final__button-group">
|
|
88
|
-
<button className="slide10-final__button slide10-final__button--replay" onClick={onReplay}>
|
|
89
|
-
Replay
|
|
90
|
-
</button>
|
|
91
|
-
<button className="slide10-final__button" onClick={handleShare}>
|
|
92
|
-
Share Your Wrapped
|
|
93
|
-
</button>
|
|
94
|
-
<button className="slide10-final__button" onClick={handleDownload}>
|
|
95
|
-
Download Cards
|
|
96
|
-
</button>
|
|
97
|
-
<button className="slide10-final__button" onClick={handleLearnMore}>
|
|
98
|
-
Learn More on Huxxle
|
|
99
|
-
</button>
|
|
100
|
-
</div>
|
|
101
|
-
</div>
|
|
102
|
-
);
|
|
103
|
-
}
|
|
104
|
-
|
|
105
|
-
export default Slide10Final;
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import './Slide10Final.css';
|
|
3
|
+
|
|
4
|
+
interface Slide10FinalProps {
|
|
5
|
+
videoUrl: string;
|
|
6
|
+
downloadUrl: string;
|
|
7
|
+
onReplay: () => void;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
function Slide10Final({ videoUrl, downloadUrl, onReplay }: Slide10FinalProps) {
|
|
11
|
+
const handleShare = async () => {
|
|
12
|
+
try {
|
|
13
|
+
// Fetch the media as a blob
|
|
14
|
+
const response = await fetch(videoUrl);
|
|
15
|
+
const blob = await response.blob();
|
|
16
|
+
|
|
17
|
+
// Determine the file type (video/image)
|
|
18
|
+
const fileExtension = videoUrl.split('.').pop()?.toLowerCase() || 'mp4';
|
|
19
|
+
const mimeType = fileExtension === 'mp4' ? 'video/mp4' : 'image/jpeg';
|
|
20
|
+
const fileName = `huxxle-wrapped-2025.${fileExtension}`;
|
|
21
|
+
|
|
22
|
+
// Create a File object (required for WhatsApp Status)
|
|
23
|
+
const file = new File([blob], fileName, {
|
|
24
|
+
type: mimeType
|
|
25
|
+
});
|
|
26
|
+
|
|
27
|
+
// Validate file size (WhatsApp limits: 5MB for images, 16MB for videos)
|
|
28
|
+
const maxSize = mimeType.startsWith('video') ? 16 * 1024 * 1024 : 5 * 1024 * 1024;
|
|
29
|
+
if (file.size > maxSize) {
|
|
30
|
+
alert(`File is too large. Maximum size is ${mimeType.startsWith('video') ? '16MB' : '5MB'}`);
|
|
31
|
+
return;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
// Check if sharing files is supported
|
|
35
|
+
if (typeof navigator !== 'undefined' && navigator.canShare && navigator.canShare({ files: [file] })) {
|
|
36
|
+
await navigator.share({
|
|
37
|
+
files: [file],
|
|
38
|
+
title: 'My Huxxle Recap',
|
|
39
|
+
text: 'Check out my Wrapped 2025 highlights! 🎉'
|
|
40
|
+
});
|
|
41
|
+
return;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
// Fallback to sharing URL if file sharing not supported
|
|
45
|
+
if (typeof navigator !== 'undefined' && navigator.share) {
|
|
46
|
+
await navigator.share({
|
|
47
|
+
title: 'My Huxxle Recap',
|
|
48
|
+
text: 'Check out my Wrapped 2025 highlights! 🎉',
|
|
49
|
+
url: videoUrl
|
|
50
|
+
});
|
|
51
|
+
return;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
// Final fallback: open in new tab
|
|
55
|
+
if (typeof window !== 'undefined') {
|
|
56
|
+
window.open(videoUrl, '_blank', 'noopener');
|
|
57
|
+
}
|
|
58
|
+
} catch (error) {
|
|
59
|
+
console.error('Share canceled or failed', error);
|
|
60
|
+
|
|
61
|
+
// Fallback on error: open in new tab
|
|
62
|
+
if (typeof window !== 'undefined') {
|
|
63
|
+
window.open(videoUrl, '_blank', 'noopener');
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
};
|
|
67
|
+
|
|
68
|
+
const handleDownload = () => {
|
|
69
|
+
const anchor = document.createElement('a');
|
|
70
|
+
anchor.href = downloadUrl;
|
|
71
|
+
anchor.download = 'huxxle-wrapped-2025.mp4';
|
|
72
|
+
anchor.target = '_blank';
|
|
73
|
+
document.body.appendChild(anchor);
|
|
74
|
+
anchor.click();
|
|
75
|
+
document.body.removeChild(anchor);
|
|
76
|
+
};
|
|
77
|
+
|
|
78
|
+
const handleLearnMore = () => {
|
|
79
|
+
window.open('https://www.huxxle.com', '_blank', 'noopener');
|
|
80
|
+
};
|
|
81
|
+
|
|
82
|
+
return (
|
|
83
|
+
<div className="slide10-final">
|
|
84
|
+
<div className="slide10-final__badge">WRAPPED 2025</div>
|
|
85
|
+
<div className="slide10-final__title">Your#1 AI Business Assistant</div>
|
|
86
|
+
|
|
87
|
+
<div className="slide10-final__button-group">
|
|
88
|
+
<button className="slide10-final__button slide10-final__button--replay" onClick={onReplay}>
|
|
89
|
+
Replay
|
|
90
|
+
</button>
|
|
91
|
+
<button className="slide10-final__button" onClick={handleShare}>
|
|
92
|
+
Share Your Wrapped
|
|
93
|
+
</button>
|
|
94
|
+
<button className="slide10-final__button" onClick={handleDownload}>
|
|
95
|
+
Download Cards
|
|
96
|
+
</button>
|
|
97
|
+
<button className="slide10-final__button" onClick={handleLearnMore}>
|
|
98
|
+
Learn More on Huxxle
|
|
99
|
+
</button>
|
|
100
|
+
</div>
|
|
101
|
+
</div>
|
|
102
|
+
);
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
export default Slide10Final;
|
|
@@ -1,235 +1,235 @@
|
|
|
1
|
-
/* Slide1Intro.css - Updated design specifications */
|
|
2
|
-
|
|
3
|
-
.slide1-intro {
|
|
4
|
-
position: relative;
|
|
5
|
-
width: 100%;
|
|
6
|
-
height: 100%;
|
|
7
|
-
overflow: hidden;
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
/* Brand name container - 48px from top, allows overflow for animation */
|
|
11
|
-
.slide1-intro__brand-container {
|
|
12
|
-
display: flex;
|
|
13
|
-
flex-direction: column;
|
|
14
|
-
align-items: flex-start;
|
|
15
|
-
padding: 0;
|
|
16
|
-
/* gap: clamp(12px, 1.9dvh, 16px); */
|
|
17
|
-
gap: calc(12px + env(safe-area-inset-top));
|
|
18
|
-
position: absolute;
|
|
19
|
-
/* width: clamp(300px, 91.79vw, 358px);
|
|
20
|
-
left: clamp(16px, 4.1vw, 16px);
|
|
21
|
-
top: clamp(40px, 5.69dvh, 48px); */
|
|
22
|
-
z-index: 3;
|
|
23
|
-
overflow: visible;
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
/* Background "HEY" text - first line, with opacity */
|
|
27
|
-
.slide1-intro__bg-text {
|
|
28
|
-
font-family: 'Lora', serif;
|
|
29
|
-
font-style: normal;
|
|
30
|
-
font-weight: 700;
|
|
31
|
-
font-size: clamp(40px, 16.41vw, 64px);
|
|
32
|
-
line-height: 1;
|
|
33
|
-
background: linear-gradient(90deg, #FFFFFF 0%, #FFCC80 100%);
|
|
34
|
-
-webkit-background-clip: text;
|
|
35
|
-
-webkit-text-fill-color: transparent;
|
|
36
|
-
background-clip: text;
|
|
37
|
-
opacity: 0.1;
|
|
38
|
-
flex: none;
|
|
39
|
-
order: 0;
|
|
40
|
-
align-self: stretch;
|
|
41
|
-
margin: calc(48px + env(safe-area-inset-top)) calc(16px + env(safe-area-inset-left)) 0 calc(16px + env(safe-area-inset-right));
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
/* Business name - single line, animated horizontally */
|
|
45
|
-
.slide1-intro__brand {
|
|
46
|
-
font-family: 'Lora', serif;
|
|
47
|
-
font-style: normal;
|
|
48
|
-
font-weight: 700;
|
|
49
|
-
font-size: clamp(40px, 16.41vw, 64px);
|
|
50
|
-
line-height: 1;
|
|
51
|
-
background: linear-gradient(90deg, #FFFFFF 0%, #FFCC80 100%);
|
|
52
|
-
-webkit-background-clip: text;
|
|
53
|
-
-webkit-text-fill-color: transparent;
|
|
54
|
-
background-clip: text;
|
|
55
|
-
flex: none;
|
|
56
|
-
order: 1;
|
|
57
|
-
align-self: stretch;
|
|
58
|
-
white-space: nowrap;
|
|
59
|
-
margin-left: calc(16px + env(safe-area-inset-top));
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
/* Top floating frames - 255px from top */
|
|
63
|
-
.slide1-intro__frames-top {
|
|
64
|
-
display: flex;
|
|
65
|
-
flex-direction: row;
|
|
66
|
-
justify-content: center;
|
|
67
|
-
align-items: center;
|
|
68
|
-
padding: 0;
|
|
69
|
-
gap: clamp(8px, 3.08vw, 12px);
|
|
70
|
-
position: absolute;
|
|
71
|
-
width: 100%;
|
|
72
|
-
left: 0;
|
|
73
|
-
/* top: clamp(180px, 30.21dvh, 255px); */
|
|
74
|
-
top: 30.2vh;
|
|
75
|
-
z-index: 2;
|
|
76
|
-
}
|
|
77
|
-
|
|
78
|
-
.slide1-intro__frames-top .frame-rect {
|
|
79
|
-
box-sizing: border-box;
|
|
80
|
-
width: clamp(140px, 46.15vw, 180px);
|
|
81
|
-
/* height: clamp(186px, 28.44dvh, 240px); */
|
|
82
|
-
height: 28.4vh;
|
|
83
|
-
border: 1px solid #FFFFFF;
|
|
84
|
-
flex: none;
|
|
85
|
-
}
|
|
86
|
-
|
|
87
|
-
/* Headline and subtitle container - 535px from top */
|
|
88
|
-
.slide1-intro__text {
|
|
89
|
-
display: flex;
|
|
90
|
-
flex-direction: column;
|
|
91
|
-
align-items: flex-start;
|
|
92
|
-
/* gap: clamp(16px, 2.61dvh, 22px); */
|
|
93
|
-
position: absolute;
|
|
94
|
-
width: 100%;
|
|
95
|
-
/* left: clamp(16px, 4.1vw, 16px); */
|
|
96
|
-
/* left: calc(16px + env(safe-area-inset-top)); */
|
|
97
|
-
top: 63.39vh;
|
|
98
|
-
z-index: 3;
|
|
99
|
-
padding: 0 calc(16px + env(safe-area-inset-left)) 0 calc(16px + env(safe-area-inset-right));
|
|
100
|
-
}
|
|
101
|
-
|
|
102
|
-
.slide1-intro__headline {
|
|
103
|
-
width: 100%;
|
|
104
|
-
font-family: 'Lora', serif;
|
|
105
|
-
font-style: normal;
|
|
106
|
-
font-weight: 600;
|
|
107
|
-
font-size: 4.7vh;
|
|
108
|
-
/* line-height: 1.2; */
|
|
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
|
-
flex: none;
|
|
114
|
-
order: 0;
|
|
115
|
-
align-self: stretch;
|
|
116
|
-
margin: 0;
|
|
117
|
-
display: -webkit-box;
|
|
118
|
-
-webkit-line-clamp: 3;
|
|
119
|
-
line-clamp: inherit;
|
|
120
|
-
-webkit-box-orient: vertical;
|
|
121
|
-
overflow: hidden;
|
|
122
|
-
}
|
|
123
|
-
|
|
124
|
-
.slide1-intro__subtitle {
|
|
125
|
-
width: 100%;
|
|
126
|
-
font-family: 'Lora', serif;
|
|
127
|
-
font-style: normal;
|
|
128
|
-
font-weight: 400;
|
|
129
|
-
font-size: clamp(14px, 4.1vw, 16px);
|
|
130
|
-
line-height: 1.5;
|
|
131
|
-
color: #FFFFFF;
|
|
132
|
-
flex: none;
|
|
133
|
-
order: 1;
|
|
134
|
-
align-self: stretch;
|
|
135
|
-
margin: 0;
|
|
136
|
-
}
|
|
137
|
-
/* Bottom floating frames - 743px from top */
|
|
138
|
-
.slide1-intro__frames-bottom {
|
|
139
|
-
display: flex;
|
|
140
|
-
flex-direction: row;
|
|
141
|
-
justify-content: center;
|
|
142
|
-
align-items: center;
|
|
143
|
-
padding: 0;
|
|
144
|
-
gap: clamp(10px, 3.85vw, 15px);
|
|
145
|
-
position: absolute;
|
|
146
|
-
width: 100%;
|
|
147
|
-
left: 0;
|
|
148
|
-
top: 88dvh;
|
|
149
|
-
z-index: 2;
|
|
150
|
-
}
|
|
151
|
-
|
|
152
|
-
.slide1-intro__frames-bottom .frame-rect {
|
|
153
|
-
box-sizing: border-box;
|
|
154
|
-
width: clamp(140px, 46.15vw, 180px);
|
|
155
|
-
height: clamp(186px, 28.44dvh, 240px);
|
|
156
|
-
border: 1px solid #FFFFFF;
|
|
157
|
-
flex: none;
|
|
158
|
-
}
|
|
159
|
-
|
|
160
|
-
/* Variant styles */
|
|
161
|
-
.slide1-intro--struggling {
|
|
162
|
-
background: linear-gradient(180deg, #1B1A3D 0%, #E33D2E 100%);
|
|
163
|
-
}
|
|
164
|
-
|
|
165
|
-
.slide1-intro--new-user {
|
|
166
|
-
background: linear-gradient(180deg, #FFFFFF 0%, #3F3DAD 100%);
|
|
167
|
-
}
|
|
168
|
-
|
|
169
|
-
.slide1-intro--struggling .slide1-intro__subtitle {
|
|
170
|
-
color: #F6E7DF;
|
|
171
|
-
}
|
|
172
|
-
|
|
173
|
-
.slide1-intro--new-user .slide1-intro__subtitle {
|
|
174
|
-
color: #16205A;
|
|
175
|
-
}
|
|
176
|
-
|
|
177
|
-
.slide1-intro--struggling .frame-rect {
|
|
178
|
-
border-color: rgba(255, 255, 255, 0.6);
|
|
179
|
-
}
|
|
180
|
-
|
|
181
|
-
.slide1-intro--new-user .slide1-intro__brand {
|
|
182
|
-
background: linear-gradient(180deg, #4F4CD8 0%, #2A2872 100%);
|
|
183
|
-
-webkit-background-clip: text;
|
|
184
|
-
-webkit-text-fill-color: transparent;
|
|
185
|
-
background-clip: text;
|
|
186
|
-
}
|
|
187
|
-
|
|
188
|
-
.slide1-intro--new-user .slide1-intro__headline {
|
|
189
|
-
background: none;
|
|
190
|
-
color: #E6E5F9;
|
|
191
|
-
-webkit-background-clip: unset;
|
|
192
|
-
background-clip: unset;
|
|
193
|
-
-webkit-text-fill-color: #E6E5F9;
|
|
194
|
-
}
|
|
195
|
-
|
|
196
|
-
.slide1-intro--new-user .slide1-intro__subtitle {
|
|
197
|
-
color: #CDCCF4;
|
|
198
|
-
}
|
|
199
|
-
|
|
200
|
-
.slide1-intro--new-user .frame-rect {
|
|
201
|
-
border-color: rgba(63, 61, 173, 0.6);
|
|
202
|
-
}
|
|
203
|
-
|
|
204
|
-
.slide1-intro--new-user .slide1-intro__bg-text {
|
|
205
|
-
background: linear-gradient(180deg, #4F4CD8 0%, #2A2872 100%);
|
|
206
|
-
-webkit-background-clip: text;
|
|
207
|
-
-webkit-text-fill-color: transparent;
|
|
208
|
-
background-clip: text;
|
|
209
|
-
opacity: 0.08;
|
|
210
|
-
}
|
|
211
|
-
|
|
212
|
-
/* Media queries for landscape and short screens */
|
|
213
|
-
@media (max-height: 720px), (orientation: landscape) {
|
|
214
|
-
/* .slide1-intro__brand-container {
|
|
215
|
-
top: clamp(32px, 4dvh, 40px);
|
|
216
|
-
gap: clamp(8px, 1.5dvh, 12px);
|
|
217
|
-
} */
|
|
218
|
-
|
|
219
|
-
.slide1-intro__bg-text,
|
|
220
|
-
.slide1-intro__brand {
|
|
221
|
-
font-size: clamp(32px, 12vw, 48px);
|
|
222
|
-
}
|
|
223
|
-
|
|
224
|
-
/* .slide1-intro__frames-top {
|
|
225
|
-
top: clamp(140px, 22dvh, 180px);
|
|
226
|
-
} */
|
|
227
|
-
|
|
228
|
-
/* .slide1-intro__text {
|
|
229
|
-
top: clamp(280px, 50dvh, 380px);
|
|
230
|
-
} */
|
|
231
|
-
|
|
232
|
-
/* .slide1-intro__frames-bottom {
|
|
233
|
-
top: clamp(420px, 70dvh, 520px);
|
|
234
|
-
} */
|
|
235
|
-
}
|
|
1
|
+
/* Slide1Intro.css - Updated design specifications */
|
|
2
|
+
|
|
3
|
+
.slide1-intro {
|
|
4
|
+
position: relative;
|
|
5
|
+
width: 100%;
|
|
6
|
+
height: 100%;
|
|
7
|
+
overflow: hidden;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
/* Brand name container - 48px from top, allows overflow for animation */
|
|
11
|
+
.slide1-intro__brand-container {
|
|
12
|
+
display: flex;
|
|
13
|
+
flex-direction: column;
|
|
14
|
+
align-items: flex-start;
|
|
15
|
+
padding: 0;
|
|
16
|
+
/* gap: clamp(12px, 1.9dvh, 16px); */
|
|
17
|
+
gap: calc(12px + env(safe-area-inset-top));
|
|
18
|
+
position: absolute;
|
|
19
|
+
/* width: clamp(300px, 91.79vw, 358px);
|
|
20
|
+
left: clamp(16px, 4.1vw, 16px);
|
|
21
|
+
top: clamp(40px, 5.69dvh, 48px); */
|
|
22
|
+
z-index: 3;
|
|
23
|
+
overflow: visible;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
/* Background "HEY" text - first line, with opacity */
|
|
27
|
+
.slide1-intro__bg-text {
|
|
28
|
+
font-family: 'Lora', serif;
|
|
29
|
+
font-style: normal;
|
|
30
|
+
font-weight: 700;
|
|
31
|
+
font-size: clamp(40px, 16.41vw, 64px);
|
|
32
|
+
line-height: 1;
|
|
33
|
+
background: linear-gradient(90deg, #FFFFFF 0%, #FFCC80 100%);
|
|
34
|
+
-webkit-background-clip: text;
|
|
35
|
+
-webkit-text-fill-color: transparent;
|
|
36
|
+
background-clip: text;
|
|
37
|
+
opacity: 0.1;
|
|
38
|
+
flex: none;
|
|
39
|
+
order: 0;
|
|
40
|
+
align-self: stretch;
|
|
41
|
+
margin: calc(48px + env(safe-area-inset-top)) calc(16px + env(safe-area-inset-left)) 0 calc(16px + env(safe-area-inset-right));
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
/* Business name - single line, animated horizontally */
|
|
45
|
+
.slide1-intro__brand {
|
|
46
|
+
font-family: 'Lora', serif;
|
|
47
|
+
font-style: normal;
|
|
48
|
+
font-weight: 700;
|
|
49
|
+
font-size: clamp(40px, 16.41vw, 64px);
|
|
50
|
+
line-height: 1;
|
|
51
|
+
background: linear-gradient(90deg, #FFFFFF 0%, #FFCC80 100%);
|
|
52
|
+
-webkit-background-clip: text;
|
|
53
|
+
-webkit-text-fill-color: transparent;
|
|
54
|
+
background-clip: text;
|
|
55
|
+
flex: none;
|
|
56
|
+
order: 1;
|
|
57
|
+
align-self: stretch;
|
|
58
|
+
white-space: nowrap;
|
|
59
|
+
margin-left: calc(16px + env(safe-area-inset-top));
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
/* Top floating frames - 255px from top */
|
|
63
|
+
.slide1-intro__frames-top {
|
|
64
|
+
display: flex;
|
|
65
|
+
flex-direction: row;
|
|
66
|
+
justify-content: center;
|
|
67
|
+
align-items: center;
|
|
68
|
+
padding: 0;
|
|
69
|
+
gap: clamp(8px, 3.08vw, 12px);
|
|
70
|
+
position: absolute;
|
|
71
|
+
width: 100%;
|
|
72
|
+
left: 0;
|
|
73
|
+
/* top: clamp(180px, 30.21dvh, 255px); */
|
|
74
|
+
top: 30.2vh;
|
|
75
|
+
z-index: 2;
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
.slide1-intro__frames-top .frame-rect {
|
|
79
|
+
box-sizing: border-box;
|
|
80
|
+
width: clamp(140px, 46.15vw, 180px);
|
|
81
|
+
/* height: clamp(186px, 28.44dvh, 240px); */
|
|
82
|
+
height: 28.4vh;
|
|
83
|
+
border: 1px solid #FFFFFF;
|
|
84
|
+
flex: none;
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
/* Headline and subtitle container - 535px from top */
|
|
88
|
+
.slide1-intro__text {
|
|
89
|
+
display: flex;
|
|
90
|
+
flex-direction: column;
|
|
91
|
+
align-items: flex-start;
|
|
92
|
+
/* gap: clamp(16px, 2.61dvh, 22px); */
|
|
93
|
+
position: absolute;
|
|
94
|
+
width: 100%;
|
|
95
|
+
/* left: clamp(16px, 4.1vw, 16px); */
|
|
96
|
+
/* left: calc(16px + env(safe-area-inset-top)); */
|
|
97
|
+
top: 63.39vh;
|
|
98
|
+
z-index: 3;
|
|
99
|
+
padding: 0 calc(16px + env(safe-area-inset-left)) 0 calc(16px + env(safe-area-inset-right));
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
.slide1-intro__headline {
|
|
103
|
+
width: 100%;
|
|
104
|
+
font-family: 'Lora', serif;
|
|
105
|
+
font-style: normal;
|
|
106
|
+
font-weight: 600;
|
|
107
|
+
font-size: 4.7vh;
|
|
108
|
+
/* line-height: 1.2; */
|
|
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
|
+
flex: none;
|
|
114
|
+
order: 0;
|
|
115
|
+
align-self: stretch;
|
|
116
|
+
margin: 0;
|
|
117
|
+
display: -webkit-box;
|
|
118
|
+
-webkit-line-clamp: 3;
|
|
119
|
+
line-clamp: inherit;
|
|
120
|
+
-webkit-box-orient: vertical;
|
|
121
|
+
overflow: hidden;
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
.slide1-intro__subtitle {
|
|
125
|
+
width: 100%;
|
|
126
|
+
font-family: 'Lora', serif;
|
|
127
|
+
font-style: normal;
|
|
128
|
+
font-weight: 400;
|
|
129
|
+
font-size: clamp(14px, 4.1vw, 16px);
|
|
130
|
+
line-height: 1.5;
|
|
131
|
+
color: #FFFFFF;
|
|
132
|
+
flex: none;
|
|
133
|
+
order: 1;
|
|
134
|
+
align-self: stretch;
|
|
135
|
+
margin: 0;
|
|
136
|
+
}
|
|
137
|
+
/* Bottom floating frames - 743px from top */
|
|
138
|
+
.slide1-intro__frames-bottom {
|
|
139
|
+
display: flex;
|
|
140
|
+
flex-direction: row;
|
|
141
|
+
justify-content: center;
|
|
142
|
+
align-items: center;
|
|
143
|
+
padding: 0;
|
|
144
|
+
gap: clamp(10px, 3.85vw, 15px);
|
|
145
|
+
position: absolute;
|
|
146
|
+
width: 100%;
|
|
147
|
+
left: 0;
|
|
148
|
+
top: 88dvh;
|
|
149
|
+
z-index: 2;
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
.slide1-intro__frames-bottom .frame-rect {
|
|
153
|
+
box-sizing: border-box;
|
|
154
|
+
width: clamp(140px, 46.15vw, 180px);
|
|
155
|
+
height: clamp(186px, 28.44dvh, 240px);
|
|
156
|
+
border: 1px solid #FFFFFF;
|
|
157
|
+
flex: none;
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
/* Variant styles */
|
|
161
|
+
.slide1-intro--struggling {
|
|
162
|
+
background: linear-gradient(180deg, #1B1A3D 0%, #E33D2E 100%);
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
.slide1-intro--new-user {
|
|
166
|
+
background: linear-gradient(180deg, #FFFFFF 0%, #3F3DAD 100%);
|
|
167
|
+
}
|
|
168
|
+
|
|
169
|
+
.slide1-intro--struggling .slide1-intro__subtitle {
|
|
170
|
+
color: #F6E7DF;
|
|
171
|
+
}
|
|
172
|
+
|
|
173
|
+
.slide1-intro--new-user .slide1-intro__subtitle {
|
|
174
|
+
color: #16205A;
|
|
175
|
+
}
|
|
176
|
+
|
|
177
|
+
.slide1-intro--struggling .frame-rect {
|
|
178
|
+
border-color: rgba(255, 255, 255, 0.6);
|
|
179
|
+
}
|
|
180
|
+
|
|
181
|
+
.slide1-intro--new-user .slide1-intro__brand {
|
|
182
|
+
background: linear-gradient(180deg, #4F4CD8 0%, #2A2872 100%);
|
|
183
|
+
-webkit-background-clip: text;
|
|
184
|
+
-webkit-text-fill-color: transparent;
|
|
185
|
+
background-clip: text;
|
|
186
|
+
}
|
|
187
|
+
|
|
188
|
+
.slide1-intro--new-user .slide1-intro__headline {
|
|
189
|
+
background: none;
|
|
190
|
+
color: #E6E5F9;
|
|
191
|
+
-webkit-background-clip: unset;
|
|
192
|
+
background-clip: unset;
|
|
193
|
+
-webkit-text-fill-color: #E6E5F9;
|
|
194
|
+
}
|
|
195
|
+
|
|
196
|
+
.slide1-intro--new-user .slide1-intro__subtitle {
|
|
197
|
+
color: #CDCCF4;
|
|
198
|
+
}
|
|
199
|
+
|
|
200
|
+
.slide1-intro--new-user .frame-rect {
|
|
201
|
+
border-color: rgba(63, 61, 173, 0.6);
|
|
202
|
+
}
|
|
203
|
+
|
|
204
|
+
.slide1-intro--new-user .slide1-intro__bg-text {
|
|
205
|
+
background: linear-gradient(180deg, #4F4CD8 0%, #2A2872 100%);
|
|
206
|
+
-webkit-background-clip: text;
|
|
207
|
+
-webkit-text-fill-color: transparent;
|
|
208
|
+
background-clip: text;
|
|
209
|
+
opacity: 0.08;
|
|
210
|
+
}
|
|
211
|
+
|
|
212
|
+
/* Media queries for landscape and short screens */
|
|
213
|
+
@media (max-height: 720px), (orientation: landscape) {
|
|
214
|
+
/* .slide1-intro__brand-container {
|
|
215
|
+
top: clamp(32px, 4dvh, 40px);
|
|
216
|
+
gap: clamp(8px, 1.5dvh, 12px);
|
|
217
|
+
} */
|
|
218
|
+
|
|
219
|
+
.slide1-intro__bg-text,
|
|
220
|
+
.slide1-intro__brand {
|
|
221
|
+
font-size: clamp(32px, 12vw, 48px);
|
|
222
|
+
}
|
|
223
|
+
|
|
224
|
+
/* .slide1-intro__frames-top {
|
|
225
|
+
top: clamp(140px, 22dvh, 180px);
|
|
226
|
+
} */
|
|
227
|
+
|
|
228
|
+
/* .slide1-intro__text {
|
|
229
|
+
top: clamp(280px, 50dvh, 380px);
|
|
230
|
+
} */
|
|
231
|
+
|
|
232
|
+
/* .slide1-intro__frames-bottom {
|
|
233
|
+
top: clamp(420px, 70dvh, 520px);
|
|
234
|
+
} */
|
|
235
|
+
}
|