diff --git a/src/data/index.js b/src/data/index.js index b53813e..30b19ad 100644 --- a/src/data/index.js +++ b/src/data/index.js @@ -16,6 +16,6 @@ export const algoliaAppUrl = 'https://dashboard.algolia.com/apps' export const musiclandProductionBaseUrl = 'https://musicland-one.vercel.app' export const musiclandShareUrl = musiclandProductionBaseUrl -export const musiclandShareHeading = 'Scannez le QR-code' +export const musiclandShareHeading = "Partage l'expérience musicland" export const musiclandShareMessage = 'Invite tes proches a decouvrir MusicLand et cree des experiences musicales ensemble.' diff --git a/src/screens/Production/PlaybackDownload.js b/src/screens/Production/PlaybackDownload.js index 3434c36..c97f367 100644 --- a/src/screens/Production/PlaybackDownload.js +++ b/src/screens/Production/PlaybackDownload.js @@ -566,7 +566,6 @@ const PlaybackDownload = ({ route }) => { setIsLoading(false) } } - const continueLabel = hasActiveSubscription ? 'Publier' : 'Publier sans générer de revenus' return ( <> { { handlePublish() }} diff --git a/src/screens/Writing/CreateLyricsWithAi.js b/src/screens/Writing/CreateLyricsWithAi.js index ba72a6a..6adc694 100644 --- a/src/screens/Writing/CreateLyricsWithAi.js +++ b/src/screens/Writing/CreateLyricsWithAi.js @@ -23,6 +23,8 @@ import SpecificityContext from './SpecificityContext' const { width: windowWidth } = Dimensions.get('window') const MAX_STEP_INDEX = 8 const CUSTOM_SANITIZE_OPTIONS = { autoInjectPreChorus: false } +const CTA_BUTTON_HEIGHT = 50 +const CTA_BUTTON_MAX_WIDTH = 500 const CreateLyricsWithAi = () => { const { selectedProject } = useUser() @@ -338,6 +340,16 @@ const CreateLyricsWithAi = () => { } }, [selectedIndex, parentLayout?.height]) + const isCtaVisible = selectedIndex !== 8 + const ctaBottomOffset = gutters + const ctaReservedSpace = isCtaVisible + ? CTA_BUTTON_HEIGHT + ctaBottomOffset + gutters + : gutters + const contentHeight = + typeof parentLayout?.height === 'number' + ? Math.max(0, parentLayout.height - ctaReservedSpace) + : parentLayout?.height + return ( @@ -345,12 +357,14 @@ const CreateLyricsWithAi = () => { behavior={Platform.OS === 'ios' ? 'padding' : 'height'} style={{ flex: 1, - paddingBottom: gutters, gap: responsiveHeight(5), }} keyboardVerticalOffset={Platform.OS === 'ios' ? 64 : 100} > - setparentLayout(e.nativeEvent.layout)}> + setparentLayout(e.nativeEvent.layout)} + > { @@ -378,7 +392,7 @@ const CreateLyricsWithAi = () => { @@ -387,7 +401,7 @@ const CreateLyricsWithAi = () => { @@ -396,7 +410,7 @@ const CreateLyricsWithAi = () => { @@ -410,7 +424,7 @@ const CreateLyricsWithAi = () => { @@ -419,7 +433,7 @@ const CreateLyricsWithAi = () => { @@ -428,7 +442,7 @@ const CreateLyricsWithAi = () => { @@ -440,7 +454,7 @@ const CreateLyricsWithAi = () => { @@ -449,7 +463,7 @@ const CreateLyricsWithAi = () => { @@ -474,14 +488,24 @@ const CreateLyricsWithAi = () => { - {selectedIndex !== 8 && ( - + {isCtaVisible && ( + + + )} diff --git a/src/screens/Writing/Goals.js b/src/screens/Writing/Goals.js index 6bc7983..129f637 100644 --- a/src/screens/Writing/Goals.js +++ b/src/screens/Writing/Goals.js @@ -150,7 +150,7 @@ const Goals = ({ return ( <> - +