feat: remove start button
This commit is contained in:
+42
-70
@@ -629,80 +629,52 @@ const Home = ({ navigation, route }) => {
|
|||||||
|
|
||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
{adventureStarted ? (
|
{/* {adventureStarted ? ( */}
|
||||||
<View style={styles.root}>
|
<View style={styles.root}>
|
||||||
<Page
|
<Page
|
||||||
shareBtn
|
shareBtn
|
||||||
headerType="NONE"
|
headerType="NONE"
|
||||||
scrollEnabled={false}
|
scrollEnabled={false}
|
||||||
containerStyle={styles.page}
|
containerStyle={styles.page}
|
||||||
contentContainerStyle={styles.pageContent}
|
contentContainerStyle={styles.pageContent}
|
||||||
maxWidth={1600}
|
maxWidth={1600}
|
||||||
width="100%"
|
width="100%"
|
||||||
backgroundColor="#303438"
|
backgroundColor="#303438"
|
||||||
showReturnHome={isWeb}
|
showReturnHome={isWeb}
|
||||||
onReturnHome={handleReturnToLanding}
|
onReturnHome={handleReturnToLanding}
|
||||||
>
|
>
|
||||||
<View style={styles.inner}>
|
<View style={styles.inner}>
|
||||||
<ExpoImage
|
<ExpoImage
|
||||||
source={homeBackgroundImage}
|
source={homeBackgroundImage}
|
||||||
contentFit="cover"
|
contentFit="cover"
|
||||||
style={styles.centerImage}
|
style={styles.centerImage}
|
||||||
/>
|
/>
|
||||||
{isWeb ? (
|
{isWeb ? (
|
||||||
<>
|
<>
|
||||||
{/* <View style={styles.webReturnButtonWrapper}>
|
{/* <View style={styles.webReturnButtonWrapper}>
|
||||||
{returnHomeButton}
|
{returnHomeButton}
|
||||||
</View> */}
|
</View> */}
|
||||||
<View style={styles.contentOverlay}>
|
<View style={styles.contentOverlay}>
|
||||||
{topBar}
|
|
||||||
{journeyContent}
|
|
||||||
</View>
|
|
||||||
</>
|
|
||||||
) : (
|
|
||||||
<View style={[styles.contentOverlay, styles.mobileContent]}>
|
|
||||||
{topBar}
|
{topBar}
|
||||||
<ScrollView
|
{journeyContent}
|
||||||
style={styles.mobileScrollView}
|
|
||||||
contentContainerStyle={styles.mobileScrollContent}
|
|
||||||
showsVerticalScrollIndicator={false}
|
|
||||||
>
|
|
||||||
{journeyContent}
|
|
||||||
</ScrollView>
|
|
||||||
</View>
|
</View>
|
||||||
)}
|
</>
|
||||||
</View>
|
) : (
|
||||||
</Page>
|
<View style={[styles.contentOverlay, styles.mobileContent]}>
|
||||||
</View>
|
{topBar}
|
||||||
) : (
|
<ScrollView
|
||||||
<>
|
style={styles.mobileScrollView}
|
||||||
<Page
|
contentContainerStyle={styles.mobileScrollContent}
|
||||||
shareBtn
|
showsVerticalScrollIndicator={false}
|
||||||
title="Landing Page"
|
>
|
||||||
backgroundImg={landingBackgroundImage}
|
{journeyContent}
|
||||||
contentContainerStyle={styles.pageContent}
|
</ScrollView>
|
||||||
backgroundColor="#303438"
|
</View>
|
||||||
>
|
)}
|
||||||
<View
|
</View>
|
||||||
style={{
|
</Page>
|
||||||
flex: 1,
|
</View>
|
||||||
justifyContent: "center",
|
|
||||||
alignItems: "center",
|
|
||||||
}}
|
|
||||||
>
|
|
||||||
<GradientButton
|
|
||||||
title="Commencer l'aventure MusicLand"
|
|
||||||
onPress={handleStartVisit}
|
|
||||||
/>
|
|
||||||
</View>
|
|
||||||
</Page>
|
|
||||||
<FullscreenIntroVideo
|
|
||||||
url={videoUrl}
|
|
||||||
visible={!!videoUrl}
|
|
||||||
onClose={handleIntroVideoClose}
|
|
||||||
/>
|
|
||||||
</>
|
|
||||||
)}
|
|
||||||
{!isWeb ? (
|
{!isWeb ? (
|
||||||
<CoinPackModal
|
<CoinPackModal
|
||||||
visible={isCoinModalVisible}
|
visible={isCoinModalVisible}
|
||||||
|
|||||||
Reference in New Issue
Block a user