fix: improve onboarding audio and mobile layout

This commit is contained in:
Jacques_tirot
2026-08-26 15:19:40 +02:00
parent fe51439bbe
commit 4e14a38d4e
7 changed files with 57 additions and 13 deletions
+5 -4
View File
@@ -74,12 +74,12 @@ export default function LandingPage({ route }) {
return selectedLanguage === 'en' ? videos.welcomeEn : videos.welcomeFr
}, [phase, selectedLanguage])
const activeVideoClose =
phase === FLOW_PHASE.JINGLE ? handleJingleClose : handleWelcomeVideoClose
const activeVideoClose = phase === FLOW_PHASE.JINGLE ? handleJingleClose : handleWelcomeVideoClose
const isJingle = phase === FLOW_PHASE.JINGLE
const skipLabel = selectedLanguage === 'en' ? 'Skip video' : 'Passer la vidéo'
const playLabel =
selectedLanguage === 'en'
const playLabel = isJingle
? 'Activer le son / Enable sound'
: selectedLanguage === 'en'
? 'Play video with sound'
: 'Lire la vidéo avec le son'
@@ -124,6 +124,7 @@ export default function LandingPage({ route }) {
contentFit="contain"
allowSkip={!isJingle}
requireAudio={!isJingle}
offerSoundActivation={isJingle}
skipLabel={skipLabel}
playLabel={playLabel}
/>