@katajere/recap 1.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +39 -0
- package/dist/App.css +120 -0
- package/dist/FloatingFrames.css +55 -0
- package/dist/FloatingFrames.d.ts +11 -0
- package/dist/FloatingFrames.d.ts.map +1 -0
- package/dist/FloatingFrames.js +12 -0
- package/dist/LoginScreen.css +146 -0
- package/dist/OtpScreen.css +133 -0
- package/dist/RecapApp.d.ts +17 -0
- package/dist/RecapApp.d.ts.map +1 -0
- package/dist/RecapApp.js +7 -0
- package/dist/RecapStory.css +105 -0
- package/dist/RecapStory.d.ts +11 -0
- package/dist/RecapStory.d.ts.map +1 -0
- package/dist/RecapStory.js +150 -0
- package/dist/StoryProgress.css +47 -0
- package/dist/StoryProgress.d.ts +15 -0
- package/dist/StoryProgress.d.ts.map +1 -0
- package/dist/StoryProgress.js +23 -0
- package/dist/assets/huxxle-blue-logo.png +0 -0
- package/dist/assets/huxxle-blue-logo.svg +14 -0
- package/dist/assets/huxxle-logo.png +0 -0
- package/dist/assets/huxxle_star_final.gif +0 -0
- package/dist/assets/login-logo.png +0 -0
- package/dist/assets/login-logo.svg +14 -0
- package/dist/assets/money-rain.png +0 -0
- package/dist/assets/raining-money.gif +0 -0
- package/dist/assets/recap-music.mp3 +0 -0
- package/dist/assets/sketch_draw.gif +0 -0
- package/dist/assets/slide-logo.png +0 -0
- package/dist/assets/slide-logo.svg +14 -0
- package/dist/assets/sound-off.svg +4 -0
- package/dist/assets/sound-on.svg +5 -0
- package/dist/components/Header.css +46 -0
- package/dist/components/Header.d.ts +12 -0
- package/dist/components/Header.d.ts.map +1 -0
- package/dist/components/Header.js +25 -0
- package/dist/data/mock.d.ts +8 -0
- package/dist/data/mock.d.ts.map +1 -0
- package/dist/data/mock.js +59 -0
- package/dist/data/recapCopy.d.ts +10 -0
- package/dist/data/recapCopy.d.ts.map +1 -0
- package/dist/data/recapCopy.js +23 -0
- package/dist/hooks/useBackgroundMusic.d.ts +20 -0
- package/dist/hooks/useBackgroundMusic.d.ts.map +1 -0
- package/dist/hooks/useBackgroundMusic.js +62 -0
- package/dist/index.css +13 -0
- package/dist/index.d.ts +30 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +40 -0
- package/dist/slides/Slide10Final.css +101 -0
- package/dist/slides/Slide10Final.d.ts +9 -0
- package/dist/slides/Slide10Final.d.ts.map +1 -0
- package/dist/slides/Slide10Final.js +68 -0
- package/dist/slides/Slide1Intro.css +261 -0
- package/dist/slides/Slide1Intro.d.ts +13 -0
- package/dist/slides/Slide1Intro.d.ts.map +1 -0
- package/dist/slides/Slide1Intro.js +61 -0
- package/dist/slides/Slide2Days.css +209 -0
- package/dist/slides/Slide2Days.d.ts +11 -0
- package/dist/slides/Slide2Days.d.ts.map +1 -0
- package/dist/slides/Slide2Days.js +11 -0
- package/dist/slides/Slide3Revenue.css +89 -0
- package/dist/slides/Slide3Revenue.d.ts +12 -0
- package/dist/slides/Slide3Revenue.d.ts.map +1 -0
- package/dist/slides/Slide3Revenue.js +16 -0
- package/dist/slides/Slide4Orders.css +135 -0
- package/dist/slides/Slide4Orders.d.ts +10 -0
- package/dist/slides/Slide4Orders.d.ts.map +1 -0
- package/dist/slides/Slide4Orders.js +16 -0
- package/dist/slides/Slide5Buyers.css +140 -0
- package/dist/slides/Slide5Buyers.d.ts +11 -0
- package/dist/slides/Slide5Buyers.d.ts.map +1 -0
- package/dist/slides/Slide5Buyers.js +12 -0
- package/dist/slides/Slide6Customer.css +92 -0
- package/dist/slides/Slide6Customer.d.ts +10 -0
- package/dist/slides/Slide6Customer.d.ts.map +1 -0
- package/dist/slides/Slide6Customer.js +10 -0
- package/dist/slides/Slide7Products.css +144 -0
- package/dist/slides/Slide7Products.d.ts +11 -0
- package/dist/slides/Slide7Products.d.ts.map +1 -0
- package/dist/slides/Slide7Products.js +29 -0
- package/dist/slides/Slide8Months.css +148 -0
- package/dist/slides/Slide8Months.d.ts +7 -0
- package/dist/slides/Slide8Months.d.ts.map +1 -0
- package/dist/slides/Slide8Months.js +31 -0
- package/dist/slides/Slide9Year.css +93 -0
- package/dist/slides/Slide9Year.d.ts +8 -0
- package/dist/slides/Slide9Year.d.ts.map +1 -0
- package/dist/slides/Slide9Year.js +9 -0
- package/dist/types.d.ts +33 -0
- package/dist/types.d.ts.map +1 -0
- package/dist/types.js +11 -0
- package/dist/utils/format.d.ts +9 -0
- package/dist/utils/format.d.ts.map +1 -0
- package/dist/utils/format.js +17 -0
- package/dist/utils/index.d.ts +3 -0
- package/dist/utils/index.d.ts.map +1 -0
- package/dist/utils/index.js +3 -0
- package/dist/utils/motion.d.ts +19 -0
- package/dist/utils/motion.d.ts.map +1 -0
- package/dist/utils/motion.js +80 -0
- package/package.json +98 -0
- package/src/App.css +120 -0
- package/src/App.tsx +73 -0
- package/src/FloatingFrames.css +55 -0
- package/src/FloatingFrames.tsx +27 -0
- package/src/LoginScreen.css +146 -0
- package/src/LoginScreen.tsx +70 -0
- package/src/OtpScreen.css +133 -0
- package/src/OtpScreen.tsx +109 -0
- package/src/RecapApp.tsx +34 -0
- package/src/RecapStory.css +105 -0
- package/src/RecapStory.tsx +269 -0
- package/src/StoryProgress.css +47 -0
- package/src/StoryProgress.tsx +60 -0
- package/src/assets.d.ts +41 -0
- package/src/components/Header.css +46 -0
- package/src/components/Header.tsx +41 -0
- package/src/data/mock.ts +62 -0
- package/src/data/recapCopy.ts +33 -0
- package/src/hooks/useBackgroundMusic.ts +79 -0
- package/src/index.css +13 -0
- package/src/index.ts +70 -0
- package/src/react-app-env.d.ts +26 -0
- package/src/slides/Slide10Final.css +101 -0
- package/src/slides/Slide10Final.tsx +105 -0
- package/src/slides/Slide1Intro.css +261 -0
- package/src/slides/Slide1Intro.tsx +141 -0
- package/src/slides/Slide2Days.css +209 -0
- package/src/slides/Slide2Days.tsx +92 -0
- package/src/slides/Slide3Revenue.css +89 -0
- package/src/slides/Slide3Revenue.tsx +76 -0
- package/src/slides/Slide4Orders.css +135 -0
- package/src/slides/Slide4Orders.tsx +63 -0
- package/src/slides/Slide5Buyers.css +140 -0
- package/src/slides/Slide5Buyers.tsx +74 -0
- package/src/slides/Slide6Customer.css +92 -0
- package/src/slides/Slide6Customer.tsx +27 -0
- package/src/slides/Slide7Products.css +144 -0
- package/src/slides/Slide7Products.tsx +81 -0
- package/src/slides/Slide8Months.css +148 -0
- package/src/slides/Slide8Months.tsx +63 -0
- package/src/slides/Slide9Year.css +93 -0
- package/src/slides/Slide9Year.tsx +35 -0
- package/src/types.ts +39 -0
- package/src/utils/format.ts +18 -0
- package/src/utils/index.ts +3 -0
- package/src/utils/motion.ts +89 -0
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
import React, { useState } from 'react';
|
|
2
|
+
import { motion } from 'framer-motion';
|
|
3
|
+
import { scaleIn, slideUp } from './utils';
|
|
4
|
+
import Header from './components/Header';
|
|
5
|
+
import './LoginScreen.css';
|
|
6
|
+
|
|
7
|
+
interface LoginScreenProps {
|
|
8
|
+
onSubmit: (identifier: string) => void;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
/**
|
|
12
|
+
* LoginScreen - Landing/login page with animations
|
|
13
|
+
*/
|
|
14
|
+
function LoginScreen({ onSubmit }: LoginScreenProps) {
|
|
15
|
+
const [identifier, setIdentifier] = useState('');
|
|
16
|
+
|
|
17
|
+
const handleSubmit = (e: React.FormEvent) => {
|
|
18
|
+
e.preventDefault();
|
|
19
|
+
if (identifier.trim()) {
|
|
20
|
+
onSubmit(identifier);
|
|
21
|
+
}
|
|
22
|
+
};
|
|
23
|
+
|
|
24
|
+
return (
|
|
25
|
+
<div className="login-screen">
|
|
26
|
+
{/* Top logo area */}
|
|
27
|
+
<div className="login-screen__header">
|
|
28
|
+
<Header />
|
|
29
|
+
</div>
|
|
30
|
+
|
|
31
|
+
{/* Middle hero section */}
|
|
32
|
+
<motion.div
|
|
33
|
+
className="login-screen__hero"
|
|
34
|
+
variants={scaleIn}
|
|
35
|
+
initial="initial"
|
|
36
|
+
animate="animate"
|
|
37
|
+
>
|
|
38
|
+
<h1 className="login-screen__title">Recap 25'</h1>
|
|
39
|
+
<p className="login-screen__subtitle">Welcome, Log in to Get Started</p>
|
|
40
|
+
</motion.div>
|
|
41
|
+
|
|
42
|
+
{/* Bottom form section */}
|
|
43
|
+
<motion.form
|
|
44
|
+
className="login-screen__form"
|
|
45
|
+
onSubmit={handleSubmit}
|
|
46
|
+
variants={slideUp}
|
|
47
|
+
initial="initial"
|
|
48
|
+
animate="animate"
|
|
49
|
+
>
|
|
50
|
+
<div className="form-group">
|
|
51
|
+
<label htmlFor="identifier" className="form-label">Email or Phone Number</label>
|
|
52
|
+
<input
|
|
53
|
+
id="identifier"
|
|
54
|
+
type="text"
|
|
55
|
+
placeholder="Enter email or phone"
|
|
56
|
+
value={identifier}
|
|
57
|
+
onChange={(e) => setIdentifier(e.target.value)}
|
|
58
|
+
className="form-input"
|
|
59
|
+
/>
|
|
60
|
+
</div>
|
|
61
|
+
|
|
62
|
+
<button type="submit" className="btn-primary">
|
|
63
|
+
Log In
|
|
64
|
+
</button>
|
|
65
|
+
</motion.form>
|
|
66
|
+
</div>
|
|
67
|
+
);
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
export default LoginScreen;
|
|
@@ -0,0 +1,133 @@
|
|
|
1
|
+
/* OtpScreen.css */
|
|
2
|
+
.otp-screen {
|
|
3
|
+
position: relative;
|
|
4
|
+
width: 100%;
|
|
5
|
+
height: 100%;
|
|
6
|
+
overflow: hidden;
|
|
7
|
+
display: flex;
|
|
8
|
+
flex-direction: column;
|
|
9
|
+
padding: clamp(20px, 3dvh, 32px) clamp(16px, 4.1vw, 20px) calc(clamp(32px, 5dvh, 48px) + env(safe-area-inset-bottom));
|
|
10
|
+
box-sizing: border-box;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
/* Top logo area - 3% margin from top via padding */
|
|
14
|
+
.otp-screen__header {
|
|
15
|
+
flex: none;
|
|
16
|
+
width: 100%;
|
|
17
|
+
height: 3.79%;
|
|
18
|
+
min-height: 32px;
|
|
19
|
+
margin-bottom: 6%;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
/* Middle hero section - grows to fill space */
|
|
23
|
+
.otp-screen__hero {
|
|
24
|
+
flex: 1;
|
|
25
|
+
display: flex;
|
|
26
|
+
flex-direction: column;
|
|
27
|
+
align-items: flex-start;
|
|
28
|
+
justify-content: center;
|
|
29
|
+
gap: 1.9%;
|
|
30
|
+
width: 100%;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
.otp-screen__title {
|
|
34
|
+
width: 100%;
|
|
35
|
+
font-family: 'Lora', serif;
|
|
36
|
+
font-style: normal;
|
|
37
|
+
font-weight: 700;
|
|
38
|
+
font-size: clamp(48px, 18.46vw, 72px);
|
|
39
|
+
line-height: 1.28;
|
|
40
|
+
text-transform: capitalize;
|
|
41
|
+
background: linear-gradient(90deg, #FFFFFF 0%, #FFCC80 100%);
|
|
42
|
+
-webkit-background-clip: text;
|
|
43
|
+
-webkit-text-fill-color: transparent;
|
|
44
|
+
background-clip: text;
|
|
45
|
+
margin: 0;
|
|
46
|
+
white-space: normal;
|
|
47
|
+
word-wrap: break-word;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
.otp-screen__subtitle {
|
|
51
|
+
width: 100%;
|
|
52
|
+
font-family: 'Lora', serif;
|
|
53
|
+
font-style: normal;
|
|
54
|
+
font-weight: 400;
|
|
55
|
+
font-size: clamp(14px, 4.1vw, 16px);
|
|
56
|
+
line-height: 1.2;
|
|
57
|
+
background: linear-gradient(90deg, #FFFFFF 0%, #FFCC80 100%);
|
|
58
|
+
-webkit-background-clip: text;
|
|
59
|
+
-webkit-text-fill-color: transparent;
|
|
60
|
+
background-clip: text;
|
|
61
|
+
margin: 0;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
/* OTP Inputs */
|
|
65
|
+
.otp-inputs {
|
|
66
|
+
display: flex;
|
|
67
|
+
flex-direction: row;
|
|
68
|
+
align-items: flex-start;
|
|
69
|
+
gap: 0.95%;
|
|
70
|
+
width: 100%;
|
|
71
|
+
height: 5.69%;
|
|
72
|
+
min-height: 48px;
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
.otp-input {
|
|
76
|
+
box-sizing: border-box;
|
|
77
|
+
display: flex;
|
|
78
|
+
flex-direction: row;
|
|
79
|
+
justify-content: center;
|
|
80
|
+
align-items: center;
|
|
81
|
+
padding: 1.42% 4.1%;
|
|
82
|
+
flex: 1;
|
|
83
|
+
height: 100%;
|
|
84
|
+
border: 1px solid #FCFCFC;
|
|
85
|
+
background: transparent;
|
|
86
|
+
font-family: 'Lora', serif;
|
|
87
|
+
font-style: normal;
|
|
88
|
+
font-weight: 600;
|
|
89
|
+
font-size: clamp(14px, 4.1vw, 16px);
|
|
90
|
+
line-height: 120%;
|
|
91
|
+
color: #FCFCFC;
|
|
92
|
+
text-align: center;
|
|
93
|
+
outline: none;
|
|
94
|
+
width: 5.69%;
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
.otp-input::placeholder {
|
|
98
|
+
color: #FCFCFC;
|
|
99
|
+
opacity: 0.7;
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
.otp-input:focus {
|
|
103
|
+
opacity: 1;
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
.btn-primary {
|
|
107
|
+
display: flex;
|
|
108
|
+
flex-direction: row;
|
|
109
|
+
justify-content: center;
|
|
110
|
+
align-items: center;
|
|
111
|
+
padding: 1.42% 4.1%;
|
|
112
|
+
width: 100%;
|
|
113
|
+
height: 5.69%;
|
|
114
|
+
min-height: 48px;
|
|
115
|
+
background: #FCFCFC;
|
|
116
|
+
border: none;
|
|
117
|
+
font-family: 'Lora', serif;
|
|
118
|
+
font-style: normal;
|
|
119
|
+
font-weight: 600;
|
|
120
|
+
font-size: clamp(14px, 4.1vw, 16px);
|
|
121
|
+
line-height: 120%;
|
|
122
|
+
color: #4F4CD8;
|
|
123
|
+
cursor: pointer;
|
|
124
|
+
transition: opacity 0.2s;
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
.btn-primary:hover {
|
|
128
|
+
opacity: 0.9;
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
.btn-primary:active {
|
|
132
|
+
opacity: 0.8;
|
|
133
|
+
}
|
|
@@ -0,0 +1,109 @@
|
|
|
1
|
+
import React, { useState, useRef, useEffect } from 'react';
|
|
2
|
+
import { motion } from 'framer-motion';
|
|
3
|
+
import { delayedFadeIn } from './utils';
|
|
4
|
+
import Header from './components/Header';
|
|
5
|
+
import './OtpScreen.css';
|
|
6
|
+
|
|
7
|
+
interface OtpScreenProps {
|
|
8
|
+
identifier: string;
|
|
9
|
+
onSubmit: (otp: string) => void;
|
|
10
|
+
onBack: () => void;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
/**
|
|
14
|
+
* OtpScreen - OTP verification with 6 input boxes
|
|
15
|
+
*/
|
|
16
|
+
function OtpScreen({ identifier, onSubmit, onBack }: OtpScreenProps) {
|
|
17
|
+
const [otp, setOtp] = useState<string[]>(['', '', '', '', '', '']);
|
|
18
|
+
const inputRefs = useRef<(HTMLInputElement | null)[]>([]);
|
|
19
|
+
|
|
20
|
+
useEffect(() => {
|
|
21
|
+
// Focus first input on mount
|
|
22
|
+
inputRefs.current[0]?.focus();
|
|
23
|
+
}, []);
|
|
24
|
+
|
|
25
|
+
const handleChange = (index: number, value: string) => {
|
|
26
|
+
// Only accept single digit
|
|
27
|
+
if (value.length > 1) return;
|
|
28
|
+
|
|
29
|
+
const newOtp = [...otp];
|
|
30
|
+
newOtp[index] = value;
|
|
31
|
+
setOtp(newOtp);
|
|
32
|
+
|
|
33
|
+
// Auto-focus next input
|
|
34
|
+
if (value && index < 5) {
|
|
35
|
+
inputRefs.current[index + 1]?.focus();
|
|
36
|
+
}
|
|
37
|
+
};
|
|
38
|
+
|
|
39
|
+
const handleKeyDown = (index: number, e: React.KeyboardEvent<HTMLInputElement>) => {
|
|
40
|
+
// Handle backspace
|
|
41
|
+
if (e.key === 'Backspace' && !otp[index] && index > 0) {
|
|
42
|
+
inputRefs.current[index - 1]?.focus();
|
|
43
|
+
}
|
|
44
|
+
};
|
|
45
|
+
|
|
46
|
+
const handleSubmit = (e: React.FormEvent) => {
|
|
47
|
+
e.preventDefault();
|
|
48
|
+
const otpValue = otp.join('');
|
|
49
|
+
if (otpValue.length === 6) {
|
|
50
|
+
onSubmit(otpValue);
|
|
51
|
+
}
|
|
52
|
+
};
|
|
53
|
+
|
|
54
|
+
return (
|
|
55
|
+
<div className="otp-screen">
|
|
56
|
+
{/* Top logo area */}
|
|
57
|
+
<div className="otp-screen__header">
|
|
58
|
+
<Header />
|
|
59
|
+
</div>
|
|
60
|
+
|
|
61
|
+
{/* Middle hero section */}
|
|
62
|
+
<motion.div
|
|
63
|
+
className="otp-screen__hero"
|
|
64
|
+
variants={delayedFadeIn(0.2)}
|
|
65
|
+
initial="initial"
|
|
66
|
+
animate="animate"
|
|
67
|
+
>
|
|
68
|
+
<h1 className="otp-screen__title">Recap 25'</h1>
|
|
69
|
+
<p className="otp-screen__subtitle">Check your email or WhatsApp and enter the 6-digit OTP below</p>
|
|
70
|
+
</motion.div>
|
|
71
|
+
|
|
72
|
+
{/* Bottom form section */}
|
|
73
|
+
<motion.form
|
|
74
|
+
className="login-screen__form"
|
|
75
|
+
onSubmit={handleSubmit}
|
|
76
|
+
variants={delayedFadeIn(0.4)}
|
|
77
|
+
initial="initial"
|
|
78
|
+
animate="animate"
|
|
79
|
+
>
|
|
80
|
+
<div className="form-group">
|
|
81
|
+
<label htmlFor="otp-input-0" className="form-label">Enter OTP</label>
|
|
82
|
+
<div className="otp-inputs">
|
|
83
|
+
{otp.map((digit, index) => (
|
|
84
|
+
<input
|
|
85
|
+
key={index}
|
|
86
|
+
id={index === 0 ? 'otp-input-0' : undefined}
|
|
87
|
+
ref={el => { inputRefs.current[index] = el; }}
|
|
88
|
+
type="text"
|
|
89
|
+
inputMode="numeric"
|
|
90
|
+
pattern="[0-9]*"
|
|
91
|
+
maxLength={1}
|
|
92
|
+
value={digit}
|
|
93
|
+
onChange={(e) => handleChange(index, e.target.value)}
|
|
94
|
+
onKeyDown={(e) => handleKeyDown(index, e)}
|
|
95
|
+
className="otp-input"
|
|
96
|
+
/>
|
|
97
|
+
))}
|
|
98
|
+
</div>
|
|
99
|
+
</div>
|
|
100
|
+
|
|
101
|
+
<button type="submit" className="btn-primary">
|
|
102
|
+
Verify OTP
|
|
103
|
+
</button>
|
|
104
|
+
</motion.form>
|
|
105
|
+
</div>
|
|
106
|
+
);
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
export default OtpScreen;
|
package/src/RecapApp.tsx
ADDED
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import RecapStory from './RecapStory';
|
|
3
|
+
import { RecapData } from './types';
|
|
4
|
+
import './App.css';
|
|
5
|
+
|
|
6
|
+
/**
|
|
7
|
+
* RecapApp - Wrapper component that provides the app shell structure
|
|
8
|
+
* Used in WebApp integration to match standalone design
|
|
9
|
+
*
|
|
10
|
+
* Provides:
|
|
11
|
+
* - .app container
|
|
12
|
+
* - .app__backdrop (desktop blur effect)
|
|
13
|
+
* - .app__shell (390x844 phone frame)
|
|
14
|
+
*/
|
|
15
|
+
|
|
16
|
+
interface RecapAppProps {
|
|
17
|
+
recapData: RecapData;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
function RecapApp({ recapData }: RecapAppProps) {
|
|
21
|
+
return (
|
|
22
|
+
<div className="app">
|
|
23
|
+
{/* Desktop backdrop blur */}
|
|
24
|
+
<div className="app__backdrop" />
|
|
25
|
+
|
|
26
|
+
{/* Story shell (390x844 phone frame) */}
|
|
27
|
+
<div className="app__shell">
|
|
28
|
+
<RecapStory recapData={recapData} />
|
|
29
|
+
</div>
|
|
30
|
+
</div>
|
|
31
|
+
);
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
export default RecapApp;
|
|
@@ -0,0 +1,105 @@
|
|
|
1
|
+
.recap-story {
|
|
2
|
+
position: relative;
|
|
3
|
+
width: 100%;
|
|
4
|
+
height: 100%;
|
|
5
|
+
display: flex;
|
|
6
|
+
flex-direction: column;
|
|
7
|
+
overflow: hidden;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
/* Top group: Header + Progress */
|
|
11
|
+
.recap-story__top-group {
|
|
12
|
+
position: relative;
|
|
13
|
+
flex: none;
|
|
14
|
+
display: flex;
|
|
15
|
+
flex-direction: column;
|
|
16
|
+
gap: clamp(6px, 1%, 8px);
|
|
17
|
+
margin: clamp(16px, 3%, 24px) clamp(12px, 3%, 16px) 0;
|
|
18
|
+
z-index: 10;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
.recap-story__header-wrapper {
|
|
22
|
+
flex: none;
|
|
23
|
+
width: 100%;
|
|
24
|
+
display: flex;
|
|
25
|
+
align-items: center;
|
|
26
|
+
justify-content: space-between;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
.recap-story__progress {
|
|
30
|
+
flex: 1;
|
|
31
|
+
min-width: 0;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
.recap-story__progress-wrap {
|
|
35
|
+
position: relative;
|
|
36
|
+
width: 100%;
|
|
37
|
+
display: flex;
|
|
38
|
+
align-items: center;
|
|
39
|
+
gap: clamp(3px, 0.5%, 5px);
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
.recap-story__sound-toggle {
|
|
43
|
+
width: clamp(32px, 8%, 40px);
|
|
44
|
+
height: clamp(32px, 8%, 40px);
|
|
45
|
+
display: inline-flex;
|
|
46
|
+
align-items: center;
|
|
47
|
+
justify-content: center;
|
|
48
|
+
border: 1px solid rgba(255, 255, 255, 0.28);
|
|
49
|
+
border-radius: clamp(8px, 2%, 12px);
|
|
50
|
+
background: rgba(22, 32, 90, 0.35);
|
|
51
|
+
backdrop-filter: blur(6px);
|
|
52
|
+
color: #ffcc80;
|
|
53
|
+
cursor: pointer;
|
|
54
|
+
padding: clamp(6px, 1.5%, 8px);
|
|
55
|
+
transition: transform 0.15s ease, opacity 0.15s ease;
|
|
56
|
+
-webkit-tap-highlight-color: transparent;
|
|
57
|
+
flex-shrink: 0;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
.recap-story__sound-toggle:hover {
|
|
61
|
+
transform: translateY(-1px) scale(1.02);
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
.recap-story__sound-toggle:active {
|
|
65
|
+
transform: scale(0.98);
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
.recap-story__sound-icon {
|
|
69
|
+
width: 100%;
|
|
70
|
+
height: 100%;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
.recap-story__sound-icon path {
|
|
74
|
+
fill: currentColor;
|
|
75
|
+
stroke: currentColor;
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
/* Slides container - positioned at the very top */
|
|
79
|
+
.recap-story__slides {
|
|
80
|
+
position: absolute;
|
|
81
|
+
top: 0;
|
|
82
|
+
left: 0;
|
|
83
|
+
width: 100%;
|
|
84
|
+
height: 100%;
|
|
85
|
+
overflow: hidden;
|
|
86
|
+
cursor: pointer;
|
|
87
|
+
user-select: none;
|
|
88
|
+
-webkit-user-select: none;
|
|
89
|
+
-webkit-tap-highlight-color: transparent;
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
@media (max-height: 720px), (orientation: landscape) {
|
|
93
|
+
.recap-story__top-group {
|
|
94
|
+
margin-top: calc(clamp(16px, 3dvh, 24px) + env(safe-area-inset-top));
|
|
95
|
+
gap: clamp(12px, 2dvh, 16px);
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
.recap-story__slide {
|
|
100
|
+
position: absolute;
|
|
101
|
+
top: 0;
|
|
102
|
+
left: 0;
|
|
103
|
+
width: 100%;
|
|
104
|
+
height: 100%;
|
|
105
|
+
}
|