From c0455ebacb41b04243b3a1f2aafb27209ecaed5d Mon Sep 17 00:00:00 2001 From: Leon Date: Wed, 10 Dec 2025 14:55:57 +0100 Subject: [PATCH] feat: musique creation --- src/screens/LandingPage.js | 3 ++- src/screens/Studio/GeneratingSong.js | 37 ++++++++++++++-------------- 2 files changed, 21 insertions(+), 19 deletions(-) diff --git a/src/screens/LandingPage.js b/src/screens/LandingPage.js index d838549..e39d50c 100644 --- a/src/screens/LandingPage.js +++ b/src/screens/LandingPage.js @@ -158,7 +158,7 @@ export default function LandingPage() { - 5 crédits offert + 10 crédits offert pour 1 parcours gratuit ! @@ -232,6 +232,7 @@ const styles = StyleSheet.create({ borderRadius: 18, paddingVertical: 14, paddingHorizontal: 20, + overflow: "hidden" }, freeCreditsContent: { flexDirection: "row", diff --git a/src/screens/Studio/GeneratingSong.js b/src/screens/Studio/GeneratingSong.js index 040f3af..93510f7 100644 --- a/src/screens/Studio/GeneratingSong.js +++ b/src/screens/Studio/GeneratingSong.js @@ -164,16 +164,16 @@ const GeneratingSong = () => { const updatePayload = selectedProject?.musicConfig ? baseUpdate : { - ...baseUpdate, - musicConfig: { - title: effectiveConfig?.title || "", - lyrics: effectiveConfig?.lyrics || [], - genres: effectiveConfig?.genres || [], - voice: effectiveConfig?.voice || "", - instruments: effectiveConfig?.instruments || [], - tempo: effectiveConfig?.tempo || "", - }, - }; + ...baseUpdate, + musicConfig: { + title: effectiveConfig?.title || "", + lyrics: effectiveConfig?.lyrics || [], + genres: effectiveConfig?.genres || [], + voice: effectiveConfig?.voice || "", + instruments: effectiveConfig?.instruments || [], + tempo: effectiveConfig?.tempo || "", + }, + }; await projectsRef .doc(selectedProjectId) .set(updatePayload, { merge: true }); @@ -226,7 +226,7 @@ const GeneratingSong = () => { if (callingRef.current) return; callingRef.current = true; startMusicGeneration() - .catch(() => {}) + .catch(() => { }) .finally(() => { // Keep locked while status transitions to GENERATING; will be prevented by guards global.setTimeout(() => { @@ -286,7 +286,7 @@ const GeneratingSong = () => { navigate(Routes.Home)} progress={63} - // logo={icons.musicLandStudio} + // logo={icons.musicLandStudio} /> { style={{ marginTop: responsiveHeight(10), gap: 16, + flex: 1, // Added flex: 1 to ensure full height usage }} > { padding: 12, backgroundColor: "#FFFFFF0A", }} - // experimentalBlurMethod={ - // Platform.OS !== "ios" ? "dimezisBlurView" : "none" - // } + // experimentalBlurMethod={ + // Platform.OS !== "ios" ? "dimezisBlurView" : "none" + // } >