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