feat: musique creation
This commit is contained in:
@@ -158,7 +158,7 @@ export default function LandingPage() {
|
|||||||
<View style={styles.freeCreditsContent}>
|
<View style={styles.freeCreditsContent}>
|
||||||
<View style={styles.freeCreditsTextContainer}>
|
<View style={styles.freeCreditsTextContainer}>
|
||||||
<Text style={styles.freeCreditsTitle}>
|
<Text style={styles.freeCreditsTitle}>
|
||||||
5 crédits offert
|
10 crédits offert
|
||||||
</Text>
|
</Text>
|
||||||
<Text style={styles.freeCreditsSubtitle}>
|
<Text style={styles.freeCreditsSubtitle}>
|
||||||
pour 1 parcours gratuit !
|
pour 1 parcours gratuit !
|
||||||
@@ -232,6 +232,7 @@ const styles = StyleSheet.create({
|
|||||||
borderRadius: 18,
|
borderRadius: 18,
|
||||||
paddingVertical: 14,
|
paddingVertical: 14,
|
||||||
paddingHorizontal: 20,
|
paddingHorizontal: 20,
|
||||||
|
overflow: "hidden"
|
||||||
},
|
},
|
||||||
freeCreditsContent: {
|
freeCreditsContent: {
|
||||||
flexDirection: "row",
|
flexDirection: "row",
|
||||||
|
|||||||
@@ -164,16 +164,16 @@ const GeneratingSong = () => {
|
|||||||
const updatePayload = selectedProject?.musicConfig
|
const updatePayload = selectedProject?.musicConfig
|
||||||
? baseUpdate
|
? baseUpdate
|
||||||
: {
|
: {
|
||||||
...baseUpdate,
|
...baseUpdate,
|
||||||
musicConfig: {
|
musicConfig: {
|
||||||
title: effectiveConfig?.title || "",
|
title: effectiveConfig?.title || "",
|
||||||
lyrics: effectiveConfig?.lyrics || [],
|
lyrics: effectiveConfig?.lyrics || [],
|
||||||
genres: effectiveConfig?.genres || [],
|
genres: effectiveConfig?.genres || [],
|
||||||
voice: effectiveConfig?.voice || "",
|
voice: effectiveConfig?.voice || "",
|
||||||
instruments: effectiveConfig?.instruments || [],
|
instruments: effectiveConfig?.instruments || [],
|
||||||
tempo: effectiveConfig?.tempo || "",
|
tempo: effectiveConfig?.tempo || "",
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
await projectsRef
|
await projectsRef
|
||||||
.doc(selectedProjectId)
|
.doc(selectedProjectId)
|
||||||
.set(updatePayload, { merge: true });
|
.set(updatePayload, { merge: true });
|
||||||
@@ -226,7 +226,7 @@ const GeneratingSong = () => {
|
|||||||
if (callingRef.current) return;
|
if (callingRef.current) return;
|
||||||
callingRef.current = true;
|
callingRef.current = true;
|
||||||
startMusicGeneration()
|
startMusicGeneration()
|
||||||
.catch(() => {})
|
.catch(() => { })
|
||||||
.finally(() => {
|
.finally(() => {
|
||||||
// Keep locked while status transitions to GENERATING; will be prevented by guards
|
// Keep locked while status transitions to GENERATING; will be prevented by guards
|
||||||
global.setTimeout(() => {
|
global.setTimeout(() => {
|
||||||
@@ -286,7 +286,7 @@ const GeneratingSong = () => {
|
|||||||
<MusicLandHeader
|
<MusicLandHeader
|
||||||
onPressBack={() => navigate(Routes.Home)}
|
onPressBack={() => navigate(Routes.Home)}
|
||||||
progress={63}
|
progress={63}
|
||||||
// logo={icons.musicLandStudio}
|
// logo={icons.musicLandStudio}
|
||||||
/>
|
/>
|
||||||
<View style={{ flex: 1, marginTop: 16 }}>
|
<View style={{ flex: 1, marginTop: 16 }}>
|
||||||
<CreateLyricsHeader
|
<CreateLyricsHeader
|
||||||
@@ -298,6 +298,7 @@ const GeneratingSong = () => {
|
|||||||
style={{
|
style={{
|
||||||
marginTop: responsiveHeight(10),
|
marginTop: responsiveHeight(10),
|
||||||
gap: 16,
|
gap: 16,
|
||||||
|
flex: 1, // Added flex: 1 to ensure full height usage
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
<BlurView
|
<BlurView
|
||||||
@@ -310,18 +311,18 @@ const GeneratingSong = () => {
|
|||||||
padding: 12,
|
padding: 12,
|
||||||
backgroundColor: "#FFFFFF0A",
|
backgroundColor: "#FFFFFF0A",
|
||||||
}}
|
}}
|
||||||
// experimentalBlurMethod={
|
// experimentalBlurMethod={
|
||||||
// Platform.OS !== "ios" ? "dimezisBlurView" : "none"
|
// Platform.OS !== "ios" ? "dimezisBlurView" : "none"
|
||||||
// }
|
// }
|
||||||
>
|
>
|
||||||
<View style={{ flex: 1 }}>
|
<View style={{ flex: 1 }}>
|
||||||
<BlurView
|
<BlurView
|
||||||
intensity={Platform.OS !== "ios" ? 10 : 40}
|
intensity={Platform.OS !== "ios" ? 10 : 40}
|
||||||
tint="dark"
|
tint="dark"
|
||||||
style={{ flex: 1, padding: 10, paddingBottom: 20 }}
|
style={{ flex: 1, padding: 10, paddingBottom: 20 }}
|
||||||
// experimentalBlurMethod={
|
// experimentalBlurMethod={
|
||||||
// Platform.OS !== "ios" ? "dimezisBlurView" : "none"
|
// Platform.OS !== "ios" ? "dimezisBlurView" : "none"
|
||||||
// }
|
// }
|
||||||
>
|
>
|
||||||
<View style={{ flex: 1, justifyContent: "flex-end", gap: 20 }}>
|
<View style={{ flex: 1, justifyContent: "flex-end", gap: 20 }}>
|
||||||
<Text
|
<Text
|
||||||
|
|||||||
Reference in New Issue
Block a user