@katajere/recap 1.0.13 → 2.0.0
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 +32 -12
- package/dist/LoginScreen.css +22 -21
- package/dist/OtpScreen.css +20 -17
- package/dist/RecapStory.css +148 -0
- package/dist/RecapStory.d.ts +2 -2
- package/dist/RecapStory.d.ts.map +1 -1
- package/dist/RecapStory.js +169 -81
- package/dist/StoryProgress.css +3 -3
- package/dist/StoryProgress.d.ts +3 -2
- package/dist/StoryProgress.d.ts.map +1 -1
- package/dist/StoryProgress.js +66 -12
- package/dist/assets/huxxle-login-blue-logo.svg +14 -0
- package/dist/assets/noisy-background.png +0 -0
- package/dist/assets/noisy-background.svg +23 -0
- package/dist/assets/search-icon.svg +4 -0
- package/dist/assets/share-button.svg +5 -0
- package/dist/assets/web-icon.png +0 -0
- package/dist/assets/web-icon.svg +14 -0
- package/dist/components/Header.css +12 -1
- package/dist/components/Header.js +2 -2
- package/dist/data/mock.d.ts +1 -1
- package/dist/data/mock.d.ts.map +1 -1
- package/dist/data/mock.js +36 -23
- package/dist/index.d.ts +0 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +0 -1
- package/dist/slides/Slide10Final.css +73 -35
- package/dist/slides/Slide1Intro.css +204 -56
- package/dist/slides/Slide1Intro.d.ts +2 -1
- package/dist/slides/Slide1Intro.d.ts.map +1 -1
- package/dist/slides/Slide1Intro.js +41 -47
- package/dist/slides/Slide2Days.css +121 -34
- package/dist/slides/Slide2Days.d.ts +2 -1
- package/dist/slides/Slide2Days.d.ts.map +1 -1
- package/dist/slides/Slide2Days.js +45 -4
- package/dist/slides/Slide3Revenue.css +80 -38
- package/dist/slides/Slide3Revenue.d.ts.map +1 -1
- package/dist/slides/Slide3Revenue.js +31 -3
- package/dist/slides/Slide4Orders.css +93 -34
- package/dist/slides/Slide4Orders.d.ts +2 -1
- package/dist/slides/Slide4Orders.d.ts.map +1 -1
- package/dist/slides/Slide4Orders.js +45 -3
- package/dist/slides/Slide5Buyers.css +124 -67
- package/dist/slides/Slide5Buyers.d.ts +2 -1
- package/dist/slides/Slide5Buyers.d.ts.map +1 -1
- package/dist/slides/Slide5Buyers.js +43 -3
- package/dist/slides/Slide6Customer.css +294 -52
- package/dist/slides/Slide6Customer.d.ts +6 -3
- package/dist/slides/Slide6Customer.d.ts.map +1 -1
- package/dist/slides/Slide6Customer.js +25 -4
- package/dist/slides/Slide7Products.css +8 -7
- package/dist/slides/Slide7Products.js +3 -3
- package/dist/slides/Slide8Months.css +6 -6
- package/dist/slides/Slide9Year.css +4 -2
- package/dist/slides/Slide9Year.d.ts +2 -1
- package/dist/slides/Slide9Year.d.ts.map +1 -1
- package/dist/slides/Slide9Year.js +23 -2
- package/dist/types.d.ts +7 -0
- package/dist/types.d.ts.map +1 -1
- package/dist/utils/slideScreenshot.d.ts +27 -0
- package/dist/utils/slideScreenshot.d.ts.map +1 -0
- package/dist/utils/slideScreenshot.js +274 -0
- package/package.json +2 -1
- package/src/App.css +32 -12
- package/src/LoginScreen.css +22 -21
- package/src/LoginScreen.tsx +1 -1
- package/src/OtpScreen.css +20 -17
- package/src/OtpScreen.tsx +1 -1
- package/src/RecapStory.css +148 -0
- package/src/RecapStory.tsx +249 -118
- package/src/StoryProgress.css +3 -3
- package/src/StoryProgress.tsx +96 -21
- package/src/components/Header.css +12 -1
- package/src/components/Header.tsx +2 -2
- package/src/data/mock.ts +44 -24
- package/src/index.ts +0 -1
- package/src/slides/Slide10Final.css +73 -35
- package/src/slides/Slide1Intro.css +204 -56
- package/src/slides/Slide1Intro.tsx +89 -81
- package/src/slides/Slide2Days.css +121 -34
- package/src/slides/Slide2Days.tsx +67 -19
- package/src/slides/Slide3Revenue.css +80 -38
- package/src/slides/Slide3Revenue.tsx +43 -6
- package/src/slides/Slide4Orders.css +93 -34
- package/src/slides/Slide4Orders.tsx +71 -10
- package/src/slides/Slide5Buyers.css +124 -67
- package/src/slides/Slide5Buyers.tsx +97 -38
- package/src/slides/Slide6Customer.css +294 -52
- package/src/slides/Slide6Customer.tsx +68 -10
- package/src/slides/Slide7Products.css +8 -7
- package/src/slides/Slide7Products.tsx +3 -3
- package/src/slides/Slide8Months.css +6 -6
- package/src/slides/Slide9Year.css +4 -2
- package/src/slides/Slide9Year.tsx +35 -7
- package/src/types.ts +7 -0
- package/src/utils/slideScreenshot.ts +324 -0
- package/dist/FloatingFrames.css +0 -55
- package/dist/FloatingFrames.d.ts +0 -11
- package/dist/FloatingFrames.d.ts.map +0 -1
- package/dist/FloatingFrames.js +0 -12
- package/src/FloatingFrames.css +0 -55
- package/src/FloatingFrames.tsx +0 -27
package/dist/RecapStory.js
CHANGED
|
@@ -1,77 +1,117 @@
|
|
|
1
|
-
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
import React, { useState } from
|
|
3
|
-
import { AnimatePresence, motion } from
|
|
4
|
-
import StoryProgress from
|
|
5
|
-
import Header from
|
|
6
|
-
import Slide1Intro from
|
|
7
|
-
import Slide2Days from
|
|
8
|
-
import Slide3Revenue from
|
|
9
|
-
import Slide4Orders from
|
|
10
|
-
import Slide5Buyers from
|
|
11
|
-
import Slide6Customer from
|
|
12
|
-
import Slide7Products from
|
|
13
|
-
import Slide8Months from
|
|
14
|
-
import Slide9Year from
|
|
15
|
-
import Slide10Final from
|
|
16
|
-
import { slideVariants } from
|
|
17
|
-
import {
|
|
18
|
-
import {
|
|
19
|
-
import {
|
|
20
|
-
import
|
|
21
|
-
import
|
|
22
|
-
import
|
|
23
|
-
import './RecapStory.css';
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
2
|
+
import React, { useState, useRef } from "react";
|
|
3
|
+
import { AnimatePresence, motion } from "framer-motion";
|
|
4
|
+
import StoryProgress from "./StoryProgress";
|
|
5
|
+
import Header from "./components/Header";
|
|
6
|
+
import Slide1Intro from "./slides/Slide1Intro";
|
|
7
|
+
import Slide2Days from "./slides/Slide2Days";
|
|
8
|
+
import Slide3Revenue from "./slides/Slide3Revenue";
|
|
9
|
+
import Slide4Orders from "./slides/Slide4Orders";
|
|
10
|
+
import Slide5Buyers from "./slides/Slide5Buyers";
|
|
11
|
+
import Slide6Customer from "./slides/Slide6Customer";
|
|
12
|
+
import Slide7Products from "./slides/Slide7Products";
|
|
13
|
+
import Slide8Months from "./slides/Slide8Months";
|
|
14
|
+
import Slide9Year from "./slides/Slide9Year";
|
|
15
|
+
import Slide10Final from "./slides/Slide10Final";
|
|
16
|
+
import { slideVariants } from "./utils";
|
|
17
|
+
import { captureAndShareSlide, preCaptureSlide, clearScreenshotCache } from "./utils/slideScreenshot";
|
|
18
|
+
import { slideDurations as defaultDurations } from "./data/mock";
|
|
19
|
+
import { BUSINESS_CATEGORIES } from "./types";
|
|
20
|
+
import { useBackgroundMusic } from "./hooks/useBackgroundMusic";
|
|
21
|
+
import recapMusic from "./assets/recap-music.mp3";
|
|
22
|
+
import "./RecapStory.css";
|
|
24
23
|
/**
|
|
25
24
|
* RecapStory - Story container with header, progress bars, and slide transitions
|
|
26
25
|
*/
|
|
27
26
|
function RecapStory({ recapData }) {
|
|
28
27
|
const [activeIndex, setActiveIndex] = useState(0);
|
|
29
|
-
const
|
|
30
|
-
const [
|
|
28
|
+
const durations = recapData.slideDurations || defaultDurations;
|
|
29
|
+
const [isPaused, setIsPaused] = useState(false);
|
|
30
|
+
const [isShareVisible, setIsShareVisible] = useState(false);
|
|
31
|
+
const holdTimerRef = useRef(null);
|
|
32
|
+
const isHoldingRef = useRef(false);
|
|
33
|
+
const slidesContainerRef = useRef(null);
|
|
34
|
+
// Cleanup on unmount to prevent memory leaks
|
|
35
|
+
React.useEffect(() => {
|
|
36
|
+
return () => {
|
|
37
|
+
if (holdTimerRef.current) {
|
|
38
|
+
clearTimeout(holdTimerRef.current);
|
|
39
|
+
}
|
|
40
|
+
// Clear screenshot cache on unmount
|
|
41
|
+
clearScreenshotCache();
|
|
42
|
+
};
|
|
43
|
+
}, []);
|
|
31
44
|
const { isMuted, isPlaying, toggleMute, play, stop } = useBackgroundMusic({
|
|
32
45
|
src: recapMusic,
|
|
33
46
|
volume: 0.6,
|
|
34
47
|
autoPlay: true,
|
|
35
|
-
loop: false
|
|
48
|
+
loop: false,
|
|
36
49
|
});
|
|
37
|
-
// Handle intro duration updates
|
|
38
|
-
const handleIntroDurationCalculated = (duration) => {
|
|
39
|
-
setIntroDuration(duration);
|
|
40
|
-
setIsIntroDurationReady(true);
|
|
41
|
-
};
|
|
42
|
-
// Reset ready state when returning to intro slide
|
|
43
|
-
React.useEffect(() => {
|
|
44
|
-
if (activeIndex === 0) {
|
|
45
|
-
setIsIntroDurationReady(false);
|
|
46
|
-
}
|
|
47
|
-
}, [activeIndex]);
|
|
48
50
|
const isNewUser = recapData.businessCategory === BUSINESS_CATEGORIES.NEW_USER;
|
|
49
51
|
// Define slides with their durations (new-user only sees the intro)
|
|
50
52
|
const fullSlideSet = [
|
|
51
|
-
{ id:
|
|
52
|
-
{ id:
|
|
53
|
-
{ id:
|
|
54
|
-
{ id:
|
|
55
|
-
{ id:
|
|
56
|
-
{ id:
|
|
57
|
-
{ id:
|
|
58
|
-
{ id:
|
|
59
|
-
{ id:
|
|
60
|
-
{ id:
|
|
53
|
+
{ id: "intro", duration: durations.intro },
|
|
54
|
+
{ id: "days", duration: durations.days },
|
|
55
|
+
{ id: "revenue", duration: durations.revenue },
|
|
56
|
+
{ id: "orders", duration: durations.orders },
|
|
57
|
+
{ id: "buyers", duration: durations.buyers },
|
|
58
|
+
{ id: "customer", duration: durations.customer },
|
|
59
|
+
{ id: "products", duration: durations.products },
|
|
60
|
+
{ id: "months", duration: durations.months },
|
|
61
|
+
{ id: "year", duration: durations.year },
|
|
62
|
+
{ id: "final", duration: durations.final },
|
|
61
63
|
];
|
|
62
|
-
const slides = isNewUser
|
|
64
|
+
const slides = isNewUser
|
|
65
|
+
? [{ id: "intro", duration: durations.intro }]
|
|
66
|
+
: fullSlideSet;
|
|
63
67
|
const currentSlide = slides[activeIndex];
|
|
64
|
-
const isFinalSlide = currentSlide.id ===
|
|
68
|
+
const isFinalSlide = currentSlide.id === "final";
|
|
69
|
+
// Pre-capture screenshot and show share button when ready
|
|
70
|
+
React.useEffect(() => {
|
|
71
|
+
// Hide share button immediately on slide change
|
|
72
|
+
setIsShareVisible(false);
|
|
73
|
+
if (isFinalSlide || !slidesContainerRef.current)
|
|
74
|
+
return;
|
|
75
|
+
let isMounted = true;
|
|
76
|
+
// Wait for animations to complete, then pre-capture
|
|
77
|
+
const timer = setTimeout(async () => {
|
|
78
|
+
if (!isMounted || !slidesContainerRef.current)
|
|
79
|
+
return;
|
|
80
|
+
try {
|
|
81
|
+
// Pre-capture the screenshot
|
|
82
|
+
await preCaptureSlide(slidesContainerRef.current, {
|
|
83
|
+
slideId: currentSlide.id,
|
|
84
|
+
businessName: recapData.businessName,
|
|
85
|
+
year: recapData.year ?? 2025,
|
|
86
|
+
});
|
|
87
|
+
// Only show share button AFTER pre-capture is complete
|
|
88
|
+
if (isMounted) {
|
|
89
|
+
setIsShareVisible(true);
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
catch (error) {
|
|
93
|
+
console.error('[RecapStory] Pre-capture failed:', error);
|
|
94
|
+
// Still show share button even if pre-capture fails (will fall back to download)
|
|
95
|
+
if (isMounted) {
|
|
96
|
+
setIsShareVisible(true);
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
}, 2500); // Wait 2.5s for all animations to complete
|
|
100
|
+
return () => {
|
|
101
|
+
isMounted = false;
|
|
102
|
+
clearTimeout(timer);
|
|
103
|
+
};
|
|
104
|
+
}, [activeIndex, currentSlide.id, recapData.businessName, recapData.year, isFinalSlide]);
|
|
65
105
|
// Ensure music plays only on slides 1-9 and stops immediately on the final slide
|
|
66
106
|
React.useEffect(() => {
|
|
67
107
|
if (isFinalSlide) {
|
|
68
108
|
stop();
|
|
69
109
|
return;
|
|
70
110
|
}
|
|
71
|
-
if (
|
|
111
|
+
if (!isPlaying) {
|
|
72
112
|
play();
|
|
73
113
|
}
|
|
74
|
-
}, [isFinalSlide,
|
|
114
|
+
}, [isFinalSlide, isPlaying, play, stop]);
|
|
75
115
|
// Stop music when reaching the final slide (safety net)
|
|
76
116
|
React.useEffect(() => {
|
|
77
117
|
if (isFinalSlide) {
|
|
@@ -83,68 +123,116 @@ function RecapStory({ recapData }) {
|
|
|
83
123
|
return;
|
|
84
124
|
}
|
|
85
125
|
if (activeIndex < slides.length - 1) {
|
|
86
|
-
setActiveIndex(prev => prev + 1);
|
|
126
|
+
setActiveIndex((prev) => prev + 1);
|
|
127
|
+
setIsPaused(false);
|
|
87
128
|
}
|
|
88
129
|
};
|
|
89
130
|
const handleReplay = () => {
|
|
90
131
|
setActiveIndex(0);
|
|
91
|
-
|
|
132
|
+
setIsPaused(false);
|
|
92
133
|
};
|
|
93
134
|
// Jump to specific slide when bar is clicked
|
|
94
135
|
const handleBarClick = (index) => {
|
|
95
136
|
setActiveIndex(index);
|
|
137
|
+
setIsPaused(false);
|
|
96
138
|
};
|
|
97
|
-
// Handle
|
|
98
|
-
const
|
|
139
|
+
// Handle hold to pause
|
|
140
|
+
const handlePointerDown = (event) => {
|
|
141
|
+
// Ignore if on interactive elements
|
|
142
|
+
const target = event.target;
|
|
143
|
+
if (target.tagName === "BUTTON" || target.closest("button")) {
|
|
144
|
+
return;
|
|
145
|
+
}
|
|
146
|
+
isHoldingRef.current = false;
|
|
147
|
+
// Start hold timer - pause after 150ms of holding
|
|
148
|
+
holdTimerRef.current = setTimeout(() => {
|
|
149
|
+
isHoldingRef.current = true;
|
|
150
|
+
setIsPaused(true);
|
|
151
|
+
}, 150);
|
|
152
|
+
};
|
|
153
|
+
const handlePointerUp = (event) => {
|
|
154
|
+
// Clear hold timer
|
|
155
|
+
if (holdTimerRef.current) {
|
|
156
|
+
clearTimeout(holdTimerRef.current);
|
|
157
|
+
holdTimerRef.current = null;
|
|
158
|
+
}
|
|
159
|
+
// If was holding, just unpause and don't navigate
|
|
160
|
+
if (isHoldingRef.current) {
|
|
161
|
+
isHoldingRef.current = false;
|
|
162
|
+
setIsPaused(false);
|
|
163
|
+
return;
|
|
164
|
+
}
|
|
99
165
|
// Ignore clicks on interactive elements
|
|
100
166
|
const target = event.target;
|
|
101
|
-
if (target.tagName ===
|
|
167
|
+
if (target.tagName === "BUTTON" || target.closest("button")) {
|
|
102
168
|
return;
|
|
103
169
|
}
|
|
104
170
|
const container = event.currentTarget;
|
|
105
171
|
const rect = container.getBoundingClientRect();
|
|
106
172
|
const tapX = event.clientX - rect.left;
|
|
107
173
|
const screenWidth = rect.width;
|
|
108
|
-
// Left
|
|
109
|
-
if (tapX < screenWidth
|
|
174
|
+
// Left 20% of screen = previous slide
|
|
175
|
+
if (tapX < screenWidth * 0.2) {
|
|
110
176
|
if (activeIndex > 0) {
|
|
111
|
-
setActiveIndex(prev => prev - 1);
|
|
177
|
+
setActiveIndex((prev) => prev - 1);
|
|
178
|
+
setIsPaused(false);
|
|
112
179
|
}
|
|
113
180
|
}
|
|
114
|
-
// Right
|
|
115
|
-
else {
|
|
181
|
+
// Right 20% of screen = next slide
|
|
182
|
+
else if (tapX > screenWidth * 0.8) {
|
|
116
183
|
if (!isFinalSlide && activeIndex < slides.length - 1) {
|
|
117
|
-
setActiveIndex(prev => prev + 1);
|
|
184
|
+
setActiveIndex((prev) => prev + 1);
|
|
185
|
+
setIsPaused(false);
|
|
118
186
|
}
|
|
119
187
|
}
|
|
188
|
+
// Middle 60% = no navigation, just tap (already handled by hold logic)
|
|
189
|
+
};
|
|
190
|
+
const handlePointerLeave = () => {
|
|
191
|
+
// Clear hold timer and unpause if leaving
|
|
192
|
+
if (holdTimerRef.current) {
|
|
193
|
+
clearTimeout(holdTimerRef.current);
|
|
194
|
+
holdTimerRef.current = null;
|
|
195
|
+
}
|
|
196
|
+
if (isHoldingRef.current) {
|
|
197
|
+
isHoldingRef.current = false;
|
|
198
|
+
setIsPaused(false);
|
|
199
|
+
}
|
|
120
200
|
};
|
|
121
201
|
// Render current slide content
|
|
122
202
|
const renderSlide = () => {
|
|
123
203
|
switch (currentSlide.id) {
|
|
124
|
-
case
|
|
125
|
-
return (_jsx(Slide1Intro, { businessName: recapData.businessName, businessCategory: recapData.businessCategory, introHeadline: recapData.introHeadline, introSubtitle: recapData.introSubtitle,
|
|
126
|
-
case
|
|
127
|
-
return (_jsx(Slide2Days, { days: recapData.days, streak: recapData.streak }));
|
|
128
|
-
case
|
|
204
|
+
case "intro":
|
|
205
|
+
return (_jsx(Slide1Intro, { businessName: recapData.businessName, businessCategory: recapData.businessCategory, introHeadline: recapData.introHeadline, introSubtitle: recapData.introSubtitle, frameImages: recapData.productImages }));
|
|
206
|
+
case "days":
|
|
207
|
+
return (_jsx(Slide2Days, { days: recapData.days, streak: recapData.streak, frameImages: recapData.productImages }));
|
|
208
|
+
case "revenue":
|
|
129
209
|
return (_jsx(Slide3Revenue, { revenue: recapData.revenue, currency: recapData.currency, businessCategory: recapData.businessCategory }));
|
|
130
|
-
case
|
|
131
|
-
return (_jsx(Slide4Orders, { orders: recapData.orders }));
|
|
132
|
-
case
|
|
133
|
-
return (_jsx(Slide5Buyers, { firstTimeBuyers: recapData.firstTimeBuyers, repeatBuyers: recapData.repeatBuyers }));
|
|
134
|
-
case
|
|
135
|
-
return (_jsx(Slide6Customer, {
|
|
136
|
-
case
|
|
137
|
-
return
|
|
138
|
-
case
|
|
139
|
-
return
|
|
140
|
-
case
|
|
141
|
-
return (_jsx(Slide9Year, { businessCategory: recapData.businessCategory, year: recapData.year }));
|
|
142
|
-
case
|
|
210
|
+
case "orders":
|
|
211
|
+
return (_jsx(Slide4Orders, { orders: recapData.orders, frameImages: recapData.productImages }));
|
|
212
|
+
case "buyers":
|
|
213
|
+
return (_jsx(Slide5Buyers, { firstTimeBuyers: recapData.firstTimeBuyers, repeatBuyers: recapData.repeatBuyers, frameImages: recapData.productImages }));
|
|
214
|
+
case "customer":
|
|
215
|
+
return (_jsx(Slide6Customer, { websiteLink: recapData.websiteLink ?? "", websiteVisits: recapData.websiteVisits ?? 0, mostViewedProduct: recapData.mostViewedProduct ?? "", mostViewedProductCount: recapData.mostViewedProductCount ?? 0 }));
|
|
216
|
+
case "products":
|
|
217
|
+
return _jsx(Slide7Products, { products: recapData.topProducts });
|
|
218
|
+
case "months":
|
|
219
|
+
return _jsx(Slide8Months, { busiestMonth: recapData.busiestMonth });
|
|
220
|
+
case "year":
|
|
221
|
+
return (_jsx(Slide9Year, { businessCategory: recapData.businessCategory, year: recapData.year, frameImages: recapData.productImages }));
|
|
222
|
+
case "final":
|
|
143
223
|
return (_jsx(Slide10Final, { videoUrl: recapData.videoUrl, downloadUrl: recapData.downloadUrl, year: recapData.year, onReplay: handleReplay }));
|
|
144
224
|
default:
|
|
145
225
|
return null;
|
|
146
226
|
}
|
|
147
227
|
};
|
|
148
|
-
return (_jsxs("div", { className: "recap-story", children: [_jsxs("div", { className: "recap-story__top-group", children: [_jsx("div", { className: "recap-story__header-wrapper", children: _jsx(Header, { showRecapBadge: true, badgeVariant: isNewUser ?
|
|
228
|
+
return (_jsxs("div", { className: "recap-story", children: [_jsxs("div", { className: "recap-story__top-group", children: [_jsx("div", { className: "recap-story__header-wrapper", children: _jsx(Header, { showRecapBadge: true, badgeVariant: isNewUser ? "new-user" : "default", year: recapData.year }) }), _jsx("div", { className: "recap-story__progress-wrap", children: _jsx("div", { className: "recap-story__progress", children: _jsx(StoryProgress, { total: slides.length, active: activeIndex, duration: currentSlide.duration, onComplete: handleProgressComplete, onBarClick: handleBarClick, hideBorder: isFinalSlide, isPaused: isPaused }) }) })] }), _jsx("div", { className: "recap-story__slides", ref: slidesContainerRef, onPointerDown: handlePointerDown, onPointerUp: handlePointerUp, onPointerLeave: handlePointerLeave, onPointerCancel: handlePointerLeave, children: _jsx(AnimatePresence, { mode: "wait", children: _jsx(motion.div, { variants: slideVariants, initial: "initial", animate: "animate", exit: "exit", className: "recap-story__slide", children: renderSlide() }, currentSlide.id) }) }), !isFinalSlide && !recapData.isVideo && (_jsxs(_Fragment, { children: [_jsx("button", { className: "recap-story__floating-btn recap-story__sound-btn", onClick: toggleMute, "aria-label": isMuted ? "Unmute" : "Mute", children: _jsxs("svg", { width: "20", height: "20", viewBox: "0 0 20 20", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: [_jsx("path", { d: "M1.66675 8.83333V11.1667C1.66675 13 2.50008 13.8333 4.33341 13.8333H5.51675C5.82508 13.8333 6.12508 13.9417 6.36675 14.1333L8.68341 16.0167C10.3167 17.4 12.5001 16.325 12.5001 14.2333V5.76667C12.5001 3.66667 10.3167 2.6 8.68341 3.98333L6.36675 5.86667C6.12508 6.05833 5.82508 6.16667 5.51675 6.16667H4.33341C2.50008 6.16667 1.66675 7 1.66675 8.83333Z", stroke: "#4F4CD8", strokeWidth: "1.5" }), !isMuted && (_jsxs(_Fragment, { children: [_jsx("path", { d: "M15 6.66667C16.3834 8.30834 16.3834 11.7 15 13.3333", stroke: "#4F4CD8", strokeWidth: "1.5", strokeLinecap: "round", strokeLinejoin: "round" }), _jsx("path", { d: "M16.825 4.58334C19.3917 7.59168 19.3917 12.4167 16.825 15.4167", stroke: "#4F4CD8", strokeWidth: "1.5", strokeLinecap: "round", strokeLinejoin: "round" })] }))] }) }), !isNewUser && (_jsxs("button", { className: `recap-story__floating-btn recap-story__share-btn ${isShareVisible ? 'recap-story__share-btn--visible' : ''}`, onClick: () => {
|
|
229
|
+
// Call without await - the function handles sharing internally
|
|
230
|
+
// This preserves the user gesture chain for mobile Web Share API
|
|
231
|
+
captureAndShareSlide(slidesContainerRef.current, {
|
|
232
|
+
slideId: currentSlide.id,
|
|
233
|
+
businessName: recapData.businessName,
|
|
234
|
+
year: recapData.year ?? new Date().getFullYear(),
|
|
235
|
+
});
|
|
236
|
+
}, "aria-label": "Share", children: [_jsxs("svg", { width: "20", height: "20", viewBox: "0 0 20 20", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: [_jsx("path", { d: "M13.7 7.4165C16.7 7.67484 17.925 9.2165 17.925 12.5915V12.6998C17.925 16.4248 16.4333 17.9165 12.7083 17.9165H7.28332C3.55832 17.9165 2.06665 16.4248 2.06665 12.6998V12.5915C2.06665 9.2415 3.27498 7.69984 6.22498 7.42484", stroke: "#4F4CD8", strokeLinecap: "round", strokeLinejoin: "round" }), _jsx("path", { d: "M10 12.4999V3.0166", stroke: "#4F4CD8", strokeLinecap: "round", strokeLinejoin: "round" }), _jsx("path", { d: "M12.7916 4.87516L9.99998 2.0835L7.20831 4.87516", stroke: "#4F4CD8", strokeLinecap: "round", strokeLinejoin: "round" })] }), _jsx("span", { className: "recap-story__share-text", children: "Share" })] }))] }))] }));
|
|
149
237
|
}
|
|
150
238
|
export default RecapStory;
|
package/dist/StoryProgress.css
CHANGED
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
width: 100%;
|
|
20
20
|
height: 100%;
|
|
21
21
|
background: transparent;
|
|
22
|
-
border: 0.5px solid rgba(
|
|
22
|
+
border: 0.5px solid rgba(55, 52, 211, 1);
|
|
23
23
|
border-radius: 2px;
|
|
24
24
|
overflow: hidden;
|
|
25
25
|
position: relative;
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
}
|
|
32
32
|
|
|
33
33
|
.story-progress__bar.completed {
|
|
34
|
-
background: linear-gradient(90deg, #
|
|
34
|
+
background: linear-gradient(90deg, #4F4CD8 0%, #2A2872 100%);
|
|
35
35
|
border: none;
|
|
36
36
|
}
|
|
37
37
|
|
|
@@ -41,7 +41,7 @@
|
|
|
41
41
|
left: 0;
|
|
42
42
|
width: 100%;
|
|
43
43
|
height: 100%;
|
|
44
|
-
background: linear-gradient(90deg, #
|
|
44
|
+
background: linear-gradient(90deg, #4F4CD8 0%, #2A2872 100%);
|
|
45
45
|
transform-origin: left;
|
|
46
46
|
transform: scaleX(0);
|
|
47
47
|
}
|
package/dist/StoryProgress.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import "./StoryProgress.css";
|
|
2
2
|
interface StoryProgressProps {
|
|
3
3
|
total: number;
|
|
4
4
|
active: number;
|
|
@@ -6,10 +6,11 @@ interface StoryProgressProps {
|
|
|
6
6
|
onComplete: () => void;
|
|
7
7
|
onBarClick: (index: number) => void;
|
|
8
8
|
hideBorder?: boolean;
|
|
9
|
+
isPaused?: boolean;
|
|
9
10
|
}
|
|
10
11
|
/**
|
|
11
12
|
* StoryProgress - Story-style progress bars at the top
|
|
12
13
|
*/
|
|
13
|
-
declare function StoryProgress({ total, active, duration, onComplete, onBarClick, hideBorder }: StoryProgressProps): import("react/jsx-runtime").JSX.Element;
|
|
14
|
+
declare function StoryProgress({ total, active, duration, onComplete, onBarClick, hideBorder, isPaused, }: StoryProgressProps): import("react/jsx-runtime").JSX.Element;
|
|
14
15
|
export default StoryProgress;
|
|
15
16
|
//# sourceMappingURL=StoryProgress.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"StoryProgress.d.ts","sourceRoot":"","sources":["../src/StoryProgress.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"StoryProgress.d.ts","sourceRoot":"","sources":["../src/StoryProgress.tsx"],"names":[],"mappings":"AACA,OAAO,qBAAqB,CAAC;AAE7B,UAAU,kBAAkB;IAC1B,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;IACf,QAAQ,EAAE,MAAM,CAAC;IACjB,UAAU,EAAE,MAAM,IAAI,CAAC;IACvB,UAAU,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IACpC,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AAED;;GAEG;AACH,iBAAS,aAAa,CAAC,EACrB,KAAK,EACL,MAAM,EACN,QAAQ,EACR,UAAU,EACV,UAAU,EACV,UAAU,EACV,QAAQ,GACT,EAAE,kBAAkB,2CA4GpB;AAED,eAAe,aAAa,CAAC"}
|
package/dist/StoryProgress.js
CHANGED
|
@@ -1,23 +1,77 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
-
import { useEffect, useState } from
|
|
3
|
-
import
|
|
4
|
-
import './StoryProgress.css';
|
|
2
|
+
import { useEffect, useState, useRef } from "react";
|
|
3
|
+
import "./StoryProgress.css";
|
|
5
4
|
/**
|
|
6
5
|
* StoryProgress - Story-style progress bars at the top
|
|
7
6
|
*/
|
|
8
|
-
function StoryProgress({ total, active, duration, onComplete, onBarClick, hideBorder }) {
|
|
9
|
-
const [
|
|
10
|
-
|
|
7
|
+
function StoryProgress({ total, active, duration, onComplete, onBarClick, hideBorder, isPaused, }) {
|
|
8
|
+
const [progress, setProgress] = useState(0);
|
|
9
|
+
const progressRef = useRef(0);
|
|
10
|
+
const startTimeRef = useRef(0);
|
|
11
|
+
const pausedProgressRef = useRef(0);
|
|
12
|
+
const animationFrameRef = useRef(null);
|
|
13
|
+
const onCompleteRef = useRef(onComplete);
|
|
14
|
+
// Keep onComplete ref up to date
|
|
11
15
|
useEffect(() => {
|
|
12
|
-
|
|
16
|
+
onCompleteRef.current = onComplete;
|
|
17
|
+
}, [onComplete]);
|
|
18
|
+
// Reset progress when active slide changes
|
|
19
|
+
useEffect(() => {
|
|
20
|
+
setProgress(0);
|
|
21
|
+
progressRef.current = 0;
|
|
22
|
+
pausedProgressRef.current = 0;
|
|
23
|
+
startTimeRef.current = performance.now();
|
|
13
24
|
}, [active]);
|
|
14
|
-
|
|
25
|
+
// Animation loop with pause support
|
|
26
|
+
useEffect(() => {
|
|
27
|
+
if (isPaused) {
|
|
28
|
+
// Save current progress when pausing
|
|
29
|
+
pausedProgressRef.current = progressRef.current;
|
|
30
|
+
if (animationFrameRef.current) {
|
|
31
|
+
cancelAnimationFrame(animationFrameRef.current);
|
|
32
|
+
animationFrameRef.current = null;
|
|
33
|
+
}
|
|
34
|
+
return;
|
|
35
|
+
}
|
|
36
|
+
// Resume from paused progress
|
|
37
|
+
startTimeRef.current = performance.now();
|
|
38
|
+
const startProgress = pausedProgressRef.current;
|
|
39
|
+
if (startProgress >= 1) {
|
|
40
|
+
return;
|
|
41
|
+
}
|
|
42
|
+
if (startProgress >= 1) {
|
|
43
|
+
setProgress(1);
|
|
44
|
+
onCompleteRef.current();
|
|
45
|
+
return;
|
|
46
|
+
}
|
|
47
|
+
const remainingDuration = duration * (1 - startProgress) * 1000;
|
|
48
|
+
const animate = (currentTime) => {
|
|
49
|
+
const elapsed = currentTime - startTimeRef.current;
|
|
50
|
+
const newProgress = startProgress + (elapsed / remainingDuration) * (1 - startProgress);
|
|
51
|
+
if (newProgress >= 1) {
|
|
52
|
+
progressRef.current = 1;
|
|
53
|
+
setProgress(1);
|
|
54
|
+
onCompleteRef.current();
|
|
55
|
+
return;
|
|
56
|
+
}
|
|
57
|
+
progressRef.current = newProgress;
|
|
58
|
+
setProgress(newProgress);
|
|
59
|
+
animationFrameRef.current = requestAnimationFrame(animate);
|
|
60
|
+
};
|
|
61
|
+
animationFrameRef.current = requestAnimationFrame(animate);
|
|
62
|
+
return () => {
|
|
63
|
+
if (animationFrameRef.current) {
|
|
64
|
+
cancelAnimationFrame(animationFrameRef.current);
|
|
65
|
+
}
|
|
66
|
+
};
|
|
67
|
+
}, [isPaused, duration, active]);
|
|
68
|
+
return (_jsx("div", { className: `story-progress${hideBorder ? " story-progress--no-border" : ""}`, children: Array.from({ length: total }).map((_, index) => {
|
|
15
69
|
const isActive = index === active;
|
|
16
70
|
const isCompleted = index < active;
|
|
17
|
-
return (_jsx("div", { className: "story-progress__bar-container", onClick: () => onBarClick(index), children: _jsx("div", { className: `story-progress__bar ${isCompleted ?
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
}
|
|
71
|
+
return (_jsx("div", { className: "story-progress__bar-container", onClick: () => onBarClick(index), children: _jsx("div", { className: `story-progress__bar ${isCompleted ? "completed" : ""}`, children: isActive && (_jsx("div", { className: "story-progress__bar-fill", style: {
|
|
72
|
+
transform: `scaleX(${progress})`,
|
|
73
|
+
transformOrigin: "left",
|
|
74
|
+
} })) }) }, index));
|
|
21
75
|
}) }));
|
|
22
76
|
}
|
|
23
77
|
export default StoryProgress;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
<svg width="106" height="32" viewBox="0 0 106 32" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
+
<mask id="mask0_13959_16184" style="mask-type:alpha" maskUnits="userSpaceOnUse" x="2" y="0" width="28" height="32">
|
|
3
|
+
<path d="M15.5897 0.236862C15.8436 0.0902912 16.1564 0.0902912 16.4103 0.236862L29.4461 7.76314C29.7 7.90971 29.8564 8.18058 29.8564 8.47372V23.5263C29.8564 23.8194 29.7 24.0903 29.4461 24.2369L16.4103 31.7631C16.1564 31.9097 15.8436 31.9097 15.5897 31.7631L2.55385 24.2369C2.29998 24.0903 2.14359 23.8194 2.14359 23.5263V8.47372C2.14359 8.18058 2.29998 7.90971 2.55385 7.76314L15.5897 0.236862Z" fill="#4F4CD8"/>
|
|
4
|
+
</mask>
|
|
5
|
+
<g mask="url(#mask0_13959_16184)">
|
|
6
|
+
<path d="M29.8466 27.6924V36.1025L16.0009 28.1025L2.15424 36.1025V27.6924L16.0009 19.6924L29.8466 27.6924ZM29.8466 17.8457V26.2568L16.0009 18.2568L2.15424 26.2568V17.8457L16.0009 9.8457L29.8466 17.8457ZM29.8466 8V16.4102L15.9999 8.41016L2.15424 16.4102V8L15.9999 0L29.8466 8ZM2.97455 8.47363V14.9883L15.5898 7.7002L15.9999 7.46289L16.4111 7.7002L29.0263 14.9883V8.47363L15.9999 0.947266L2.97455 8.47363Z" fill="#4F4CD8"/>
|
|
7
|
+
</g>
|
|
8
|
+
<path d="M45.4728 17.243H38.482V18.4984C38.482 20.9846 38.5067 23.5938 38.5559 24.7015C38.3344 24.6769 37.7928 24.6522 37.1528 24.6522C35.9713 24.6522 35.6267 24.6522 35.282 24.7015C35.3559 23.6922 35.3805 21.1815 35.3805 18.523V14.7322C35.3805 11.7046 35.3559 9.51379 35.282 8.52917C35.5774 8.5784 36.1682 8.5784 36.7097 8.5784C37.7928 8.5784 38.2359 8.5784 38.5559 8.52917C38.5067 9.34148 38.482 11.8276 38.482 14.3384V14.8307H45.4728V14.2892C45.4728 11.2615 45.4728 9.31686 45.399 8.52917C45.842 8.5784 46.3836 8.5784 46.9251 8.5784C47.762 8.5784 48.3774 8.5784 48.6728 8.52917C48.6236 9.41532 48.599 11.7292 48.599 14.7322V18.523C48.599 21.0092 48.6236 24.0369 48.6728 24.7015C48.402 24.6769 47.9344 24.6522 47.2697 24.6522C46.162 24.6522 45.7682 24.6276 45.399 24.7015C45.4482 23.7415 45.4728 20.6399 45.4728 18.4984V17.243Z" fill="#4F4CD8"/>
|
|
9
|
+
<path d="M62.3409 24.6769C62.0701 24.6769 61.4055 24.6522 60.8394 24.6522C59.8547 24.6522 59.6578 24.6769 59.3132 24.7015C59.2393 24.4061 59.2147 23.7907 59.1901 23.3969C58.4024 24.2584 57.2947 24.9476 55.6455 24.9476C53.7747 24.9476 51.9532 24.0369 51.9532 20.6399V18.7692C51.9532 16.3815 51.9778 13.6246 51.904 12.9353C53.0609 12.9353 53.947 12.9353 54.9809 12.763C54.9317 13.6738 54.907 16.1353 54.907 18.7692V20.0246C54.907 21.6492 55.3994 22.6338 56.9994 22.6338C57.8609 22.6338 58.6732 22.1661 59.1901 21.4769V18.8184C59.1901 16.4307 59.1655 13.5507 59.1163 12.8861C60.1994 12.9599 61.2578 12.9846 62.2424 12.8122C62.1932 13.6738 62.144 15.8892 62.144 18.4738V19.7292C62.144 22.1415 62.1932 24.1353 62.3409 24.6769Z" fill="#4F4CD8"/>
|
|
10
|
+
<path d="M64.023 12.8861C64.2199 12.8861 64.8107 12.9353 65.5984 12.9353C66.263 12.9353 66.9522 12.9353 67.6168 12.8861C68.4538 14.4861 69.3645 15.9384 69.783 16.6276C70.2507 15.9384 71.2599 14.3384 72.0476 12.8861C72.2692 12.9107 72.7122 12.9353 73.0815 12.9353C74.1153 12.9353 74.6568 12.9353 75.0999 12.8861C73.9922 14.3138 72.3922 16.6769 71.1615 18.3999C72.4415 20.5415 74.0907 22.9538 75.2968 24.7015C74.903 24.6769 74.0907 24.6522 73.7215 24.6522C72.8353 24.6769 72.3184 24.6769 71.7522 24.7261C71.2107 23.5692 69.7584 21.2799 69.3892 20.6153C68.7245 21.6738 67.4938 23.7661 67.0261 24.7015C66.7307 24.6769 65.9676 24.6522 65.6968 24.6522C65.0568 24.6522 64.4168 24.6522 63.9492 24.7015C65.1307 23.003 66.8045 20.6399 68.0107 18.8676C66.7799 16.8492 65.1799 14.5353 64.023 12.8861Z" fill="#4F4CD8"/>
|
|
11
|
+
<path d="M75.898 12.8861C76.0949 12.8861 76.6857 12.9353 77.4734 12.9353C78.138 12.9353 78.8272 12.9353 79.4918 12.8861C80.3288 14.4861 81.2395 15.9384 81.658 16.6276C82.1257 15.9384 83.1349 14.3384 83.9226 12.8861C84.1442 12.9107 84.5872 12.9353 84.9565 12.9353C85.9903 12.9353 86.5318 12.9353 86.9749 12.8861C85.8672 14.3138 84.2672 16.6769 83.0365 18.3999C84.3165 20.5415 85.9657 22.9538 87.1718 24.7015C86.778 24.6769 85.9657 24.6522 85.5965 24.6522C84.7103 24.6769 84.1934 24.6769 83.6272 24.7261C83.0857 23.5692 81.6334 21.2799 81.2642 20.6153C80.5995 21.6738 79.3688 23.7661 78.9011 24.7015C78.6057 24.6769 77.8426 24.6522 77.5718 24.6522C76.9318 24.6522 76.2918 24.6522 75.8242 24.7015C77.0057 23.003 78.6795 20.6399 79.8857 18.8676C78.6549 16.8492 77.0549 14.5353 75.898 12.8861Z" fill="#4F4CD8"/>
|
|
12
|
+
<path d="M88.8522 24.7015C88.9015 24.1353 88.9261 21.9199 88.9261 19.3599V13.1569C88.9261 10.2276 88.9261 7.9384 88.8522 7.19994C89.9107 7.19994 90.9445 7.19994 91.9538 7.05225C91.9045 8.03686 91.8799 9.78455 91.8799 12.6646V20.6399C91.8799 22.5107 91.9292 24.2338 91.9538 24.7015C91.683 24.6769 91.0184 24.6522 90.403 24.6522C89.6399 24.6522 89.1476 24.6769 88.8522 24.7015Z" fill="#4F4CD8"/>
|
|
13
|
+
<path d="M105.142 18.9661C104.33 19.0892 102.754 19.1384 100.17 19.1384H97.4618C97.5357 21.6738 99.3572 22.683 101.326 22.683C102.68 22.683 103.517 22.4369 104.502 21.9446C104.379 22.6092 104.28 23.643 104.231 24.1846C103.197 24.7261 102.016 24.8984 100.44 24.8984C96.8711 24.8984 94.4834 22.7076 94.4834 18.843C94.4834 15.4707 96.6742 12.6399 100.268 12.6399C103.714 12.6399 105.24 15.1753 105.24 17.6615C105.24 18.1292 105.191 18.6707 105.142 18.9661ZM97.4618 17.243H99.5295C100.711 17.243 101.917 17.2184 102.336 17.1692C102.385 15.9876 101.72 14.6092 99.9726 14.6092C98.348 14.6092 97.5849 15.9876 97.4618 17.243Z" fill="#4F4CD8"/>
|
|
14
|
+
</svg>
|
|
Binary file
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
<svg width="390" height="844" viewBox="0 0 390 844" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
+
<g filter="url(#filter0_n_13965_16428)">
|
|
3
|
+
<rect width="390" height="844" fill="white"/>
|
|
4
|
+
</g>
|
|
5
|
+
<defs>
|
|
6
|
+
<filter id="filter0_n_13965_16428" x="0" y="0" width="390" height="844" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB">
|
|
7
|
+
<feFlood flood-opacity="0" result="BackgroundImageFix"/>
|
|
8
|
+
<feBlend mode="normal" in="SourceGraphic" in2="BackgroundImageFix" result="shape"/>
|
|
9
|
+
<feTurbulence type="fractalNoise" baseFrequency="3.3333332538604736 3.3333332538604736" stitchTiles="stitch" numOctaves="3" result="noise" seed="198" />
|
|
10
|
+
<feColorMatrix in="noise" type="luminanceToAlpha" result="alphaNoise" />
|
|
11
|
+
<feComponentTransfer in="alphaNoise" result="coloredNoise1">
|
|
12
|
+
<feFuncA type="discrete" tableValues="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 "/>
|
|
13
|
+
</feComponentTransfer>
|
|
14
|
+
<feComposite operator="in" in2="shape" in="coloredNoise1" result="noise1Clipped" />
|
|
15
|
+
<feFlood flood-color="#0000001F" result="color1Flood" />
|
|
16
|
+
<feComposite operator="in" in2="noise1Clipped" in="color1Flood" result="color1" />
|
|
17
|
+
<feMerge result="effect1_noise_13965_16428">
|
|
18
|
+
<feMergeNode in="shape" />
|
|
19
|
+
<feMergeNode in="color1" />
|
|
20
|
+
</feMerge>
|
|
21
|
+
</filter>
|
|
22
|
+
</defs>
|
|
23
|
+
</svg>
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
+
<path d="M9.16675 16.6665C13.3089 16.6665 16.6667 13.3086 16.6667 9.1665C16.6667 5.02437 13.3089 1.6665 9.16675 1.6665C5.02461 1.6665 1.66675 5.02437 1.66675 9.1665C1.66675 13.3086 5.02461 16.6665 9.16675 16.6665Z" stroke="#4F4CD8" stroke-linecap="round" stroke-linejoin="round"/>
|
|
3
|
+
<path d="M15.775 17.2413C16.2167 18.5747 17.225 18.708 18 17.5413C18.7084 16.4747 18.2417 15.5997 16.9584 15.5997C16.0084 15.5913 15.475 16.333 15.775 17.2413Z" stroke="#4F4CD8" stroke-linecap="round" stroke-linejoin="round"/>
|
|
4
|
+
</svg>
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
+
<path d="M13.7 7.4165C16.7 7.67484 17.925 9.2165 17.925 12.5915V12.6998C17.925 16.4248 16.4333 17.9165 12.7083 17.9165H7.28332C3.55832 17.9165 2.06665 16.4248 2.06665 12.6998V12.5915C2.06665 9.2415 3.27498 7.69984 6.22498 7.42484" stroke="#4F4CD8" stroke-linecap="round" stroke-linejoin="round"/>
|
|
3
|
+
<path d="M10 12.4999V3.0166" stroke="#4F4CD8" stroke-linecap="round" stroke-linejoin="round"/>
|
|
4
|
+
<path d="M12.7916 4.87516L9.99998 2.0835L7.20831 4.87516" stroke="#4F4CD8" stroke-linecap="round" stroke-linejoin="round"/>
|
|
5
|
+
</svg>
|
|
Binary file
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
<svg width="94" height="100" viewBox="0 0 94 100" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
+
<path d="M64.2169 85.6437C62.523 86.4051 60.7772 87.0718 58.9734 87.6077C60.7084 86.0481 62.3241 84.3571 63.8258 82.5623L62.9 75.2563C59.3954 80.5227 54.8935 85.0007 49.5564 88.3138V68.3434C54.0043 68.6091 58.318 69.5742 62.381 71.1687L61.6957 65.7567C57.8029 64.4803 53.7315 63.7008 49.5564 63.4769V49.5891H71.1324C70.9543 53.5503 70.3367 57.4056 69.328 61.087L73.6063 64.6123C75.1238 59.8467 76.0373 54.8014 76.252 49.5891H89.0754C88.6201 57.5922 85.9253 65.0026 81.6116 71.2065L85.3618 74.2969C90.7953 66.6225 94 57.2623 94 47.162C94 35.0177 89.378 23.9331 81.8021 15.578L81.8607 15.5193L80.1307 13.7984C72.4601 6.16642 62.6177 1.50857 52.0117 0.38839C51.9328 0.380493 51.8544 0.368083 51.7755 0.360186C51.1281 0.295322 50.4778 0.249634 49.8252 0.211843C49.6793 0.202255 49.5344 0.186462 49.3879 0.180257C49.1146 0.166156 48.8402 0.166161 48.5663 0.156572C47.5137 0.0730939 46.4294 0.0144291 45.3125 0.000328127C44.9756 -0.00587632 44.6544 0.0764718 44.3461 0.199433C44.2886 0.202817 44.2317 0.209027 44.1748 0.212411C43.5222 0.250202 42.8714 0.29589 42.2245 0.360754C42.1456 0.368651 42.0672 0.381053 41.9883 0.388949C31.3824 1.50913 21.5394 6.16755 13.8693 13.799L12.1393 15.5199L12.1979 15.5786C4.62199 23.9343 0 35.0182 0 47.1626C0 59.3086 4.62199 70.3932 12.1979 78.7472L12.1393 78.8058L13.8693 80.5278C21.5399 88.1582 31.3824 92.816 41.9883 93.9362C42.0672 93.9441 42.1456 93.9565 42.2245 93.9644C42.8719 94.0293 43.5222 94.075 44.1748 94.1144C44.2317 94.1178 44.2886 94.124 44.3461 94.1268C44.6453 94.2453 44.9581 94.3242 45.281 94.3242C45.2911 94.3242 45.3024 94.3242 45.3125 94.3242C46.4294 94.3101 47.5131 94.2515 48.5663 94.168C48.8402 94.1584 49.1152 94.1584 49.3879 94.146C49.5344 94.1381 49.6793 94.1223 49.8252 94.1144C50.4778 94.075 51.1286 94.0293 51.7755 93.9644C51.8544 93.9565 51.9328 93.9441 52.0117 93.9362C56.4635 93.4669 60.7778 92.3653 64.8571 90.689L64.2169 85.6437ZM89.0754 44.7349H76.252C75.9505 37.4047 74.2898 30.3908 71.4688 24.0482C73.8784 22.571 76.1697 20.8721 78.3111 18.9527C84.538 25.8706 88.513 34.8535 89.0754 44.7349ZM74.8562 15.5385C73.1047 17.0857 71.2412 18.4665 69.2908 19.6876C66.5561 14.7923 63.078 10.4063 58.9739 6.71692C64.9202 8.4835 70.3193 11.5299 74.8562 15.5385ZM49.557 6.01187C55.9044 9.95283 61.0905 15.5272 64.7945 22.1333C60.0452 24.3517 54.8946 25.663 49.557 25.9823V6.01187ZM49.557 30.8477C55.6571 30.5223 61.5436 29.0371 66.9584 26.4916C69.3968 32.0948 70.8416 38.2761 71.133 44.7355H49.557V30.8477ZM35.0114 6.72143C30.9073 10.408 27.4315 14.7895 24.6985 19.6814C22.7521 18.4614 20.8919 17.0834 19.1433 15.5385C23.6762 11.5327 29.0702 8.48801 35.0114 6.72143ZM15.6878 18.9527C17.8252 20.8693 20.1137 22.5665 22.5188 24.0403C19.7023 30.3779 18.0473 37.3934 17.7475 44.7349H4.92403C5.48642 34.8535 9.46148 25.8706 15.6878 18.9527ZM4.92403 49.5891H17.7475C18.0473 56.9301 19.7023 63.9456 22.5188 70.2837C20.1137 71.7593 17.8252 73.4548 15.6878 75.3714C9.46148 68.454 5.48642 59.4728 4.92403 49.5891ZM19.1433 78.7878C20.8919 77.2423 22.7526 75.8643 24.6985 74.6449C27.4321 79.5368 30.9073 83.9171 35.0114 87.6048C29.0702 85.836 23.6762 82.7913 19.1433 78.7878ZM44.4425 88.3155C38.0871 84.3729 32.8965 78.8064 29.1931 72.197C33.9458 69.9769 39.0998 68.6621 44.4425 68.3434V88.3155ZM44.4425 63.4763C38.3384 63.8035 32.4474 65.2903 27.0303 67.8392C24.597 62.2411 23.1561 56.0581 22.8665 49.5891H44.4425V63.4763ZM44.4425 44.7349H22.8665C23.1561 38.266 24.5965 32.0846 27.0303 26.4865C32.4474 29.0354 38.3384 30.5223 44.4425 30.8477V44.7349ZM44.4425 25.9829C39.0998 25.6636 33.9452 24.3494 29.192 22.1293C32.896 15.5199 38.0865 9.9517 44.4425 6.01075V25.9829Z" fill="url(#paint0_linear_13970_54691)"/>
|
|
3
|
+
<path d="M88.2967 80.9045L64.3782 61.1997L68.2766 91.9608L75.3206 88.0706L81.8963 100L87.8284 96.7247L81.2527 84.7946L88.2967 80.9045Z" fill="url(#paint1_linear_13970_54691)"/>
|
|
4
|
+
<defs>
|
|
5
|
+
<linearGradient id="paint0_linear_13970_54691" x1="47" y1="0" x2="47" y2="94.3242" gradientUnits="userSpaceOnUse">
|
|
6
|
+
<stop stop-color="#4F4CD8"/>
|
|
7
|
+
<stop offset="1" stop-color="#2A2872"/>
|
|
8
|
+
</linearGradient>
|
|
9
|
+
<linearGradient id="paint1_linear_13970_54691" x1="76.3375" y1="61.1997" x2="76.3375" y2="100" gradientUnits="userSpaceOnUse">
|
|
10
|
+
<stop stop-color="#4F4CD8"/>
|
|
11
|
+
<stop offset="1" stop-color="#2A2872"/>
|
|
12
|
+
</linearGradient>
|
|
13
|
+
</defs>
|
|
14
|
+
</svg>
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
font-weight: 700;
|
|
24
24
|
font-size: clamp(14px, 5.13vw, 20px);
|
|
25
25
|
line-height: 1.2;
|
|
26
|
-
background-image: linear-gradient(90deg, #
|
|
26
|
+
background-image: linear-gradient(90deg, #2724A7 0%, #4F4CD8 100%);
|
|
27
27
|
-webkit-background-clip: text;
|
|
28
28
|
-webkit-text-fill-color: transparent;
|
|
29
29
|
background-clip: text;
|
|
@@ -44,3 +44,14 @@
|
|
|
44
44
|
background-size: 100%;
|
|
45
45
|
background-position: 0;
|
|
46
46
|
}
|
|
47
|
+
|
|
48
|
+
/* Screenshot mode - solid color fallback for gradient text */
|
|
49
|
+
.screenshot-mode .header__badge {
|
|
50
|
+
-webkit-text-fill-color: #4F4CD8 !important;
|
|
51
|
+
color: #4F4CD8 !important;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
.screenshot-mode .header--new-user .header__badge {
|
|
55
|
+
-webkit-text-fill-color: #FF9900 !important;
|
|
56
|
+
color: #FF9900 !important;
|
|
57
|
+
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
2
|
import './Header.css';
|
|
3
|
-
import loginLogo from '../assets/login-logo.svg';
|
|
4
|
-
import slideLogo from '../assets/
|
|
3
|
+
import loginLogo from '../assets/huxxle-login-blue-logo.svg';
|
|
4
|
+
import slideLogo from '../assets/huxxle-blue-logo.svg';
|
|
5
5
|
import huxxleBlueLogo from '../assets/huxxle-blue-logo.svg';
|
|
6
6
|
/**
|
|
7
7
|
* Header - Top navigation with logo and optional Recap 25' badge
|
package/dist/data/mock.d.ts
CHANGED
package/dist/data/mock.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mock.d.ts","sourceRoot":"","sources":["../../src/data/mock.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,UAAU,CAAC;AAE1C;;;GAGG;AACH,eAAO,MAAM,aAAa,EAAE,
|
|
1
|
+
{"version":3,"file":"mock.d.ts","sourceRoot":"","sources":["../../src/data/mock.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,UAAU,CAAC;AAE1C;;;GAGG;AACH,eAAO,MAAM,aAAa,EAAE,SAgE3B,CAAC;AAGF,eAAO,MAAM,cAAc,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAWjD,CAAC"}
|