import { Image, StyleSheet, View } from "react-native";
import React from "react";
import Page from "../../layouts/Page";
import { ai, background } from "../../assets";
import { gutters } from "../../styles";
import GradientButton from "../../components/GradientButton";
import MusicLandHeader from "../../components/MusicLandHeader";
import { goBack, navigate } from "../../navigation/NavigationService";
import BorderGradientButton from "../../components/BorderGradientButton";
import { Routes } from "../../navigation";

const Production = () => {
  return (
    <Page headerType="NONE" backgroundImg={background.productionBG}>
      <Image source={ai.bena} style={styles.img} resizeMode="contain" />
      <MusicLandHeader onPressBack={goBack} progress={25} />
      <View
        style={{
          flex: 1,
          paddingBottom: gutters * 2,
          justifyContent: "flex-end",
          gap: 37,
        }}
      >
        <BorderGradientButton
          title="Je télécharge ma chanson"
          onPress={() => navigate(Routes.DownloadSongs)}
        />
        <View style={{ gap: 12 }}>
          <GradientButton title="Je veux devenir Playbacker" />
          <BorderGradientButton
            title="Voir exemples"
            onPress={() => navigate(Routes.PlaybackExample)}
          />
        </View>
        <View style={{ gap: 12 }}>
          <GradientButton title="Je veux créer un Clip" />
          <BorderGradientButton title="Voir exemples" />
        </View>
      </View>
    </Page>
  );
};

export default Production;

const styles = StyleSheet.create({
  img: {
    width: "100%",
    height: "70%",
    position: "absolute",
    bottom: -40,
    right: -30,
  },
});
