diff --git a/flad/src/FLAD/components/Onboarding.tsx b/flad/src/FLAD/components/Onboarding.tsx
deleted file mode 100644
index 0e14e61..0000000
--- a/flad/src/FLAD/components/Onboarding.tsx
+++ /dev/null
@@ -1,199 +0,0 @@
-import React, { useState, useRef } from 'react';
-import { Modal, View, StyleSheet, Text, FlatList, Animated, TouchableOpacity, ImageBackground, Image } from 'react-native';
-// import Modal from "react-native-modal";
-import {useNavigation} from "@react-navigation/native";
-
-import normalize from '../components/Normalize';
-import OnboardingItem from './OnboardingItem';
-import Paginator from './Paginator';
-import NextButton from './NextButton';
-import slides from '../data/slides';
-
-export default function Onboarding() {
- const [currentIndex, setCurrentIndex] = useState(0);
- const scrollX = useRef(new Animated.Value(0)).current;
- const slidesRef = useRef(null);
- const navigation = useNavigation();
-
- const [isModalVisible, setIsModalVisible] = React.useState(false);
-
- const handleModal = () => setIsModalVisible(() => !isModalVisible);
- // @ts-ignore
- const viewableItemsChanged = useRef(({ viewableItems }) => {
- setCurrentIndex(viewableItems[0].index);
- }).current;
-
- const viewConfig = useRef({ viewAreaCoveragePercentThreshold: 50 }).current;
-
- const scrollTo = () => {
- if(currentIndex < slides.length - 1) {
- // @ts-ignore
- slidesRef.current.scrollToIndex({ index: currentIndex + 1 });
- } else {
- setIsModalVisible(() => !isModalVisible);
- }
- };
-
- return (
- // @ts-ignore
-
-
- }
- horizontal
- showsHorizontalScrollIndicator={false}
- pagingEnabled
- bounces={false}
- keyExtractor={(item) => item.id}
- onScroll={Animated.event([{ nativeEvent: { contentOffset: { x: scrollX } } }], {
- useNativeDriver: false,
- })}
- scrollEventThrottle={32}
- onViewableItemsChanged={viewableItemsChanged}
- viewabilityConfig={viewConfig}
- ref={slidesRef}
- />
-
-
-
-
-
-
-
-
- v2.0
-
-
-
-
-
-
-
- {handleModal();
- // @ts-ignore
- navigation.navigate('Login');
- }}>
- CONTINUER AVEC SPOTIFY
-
- {handleModal(); navigation.navigate('Register');}}>
- S’INSCRIRE MAINTENANT
-
-
- {handleModal(); navigation.navigate('Login');}}>
- SE CONNECTER
-
-
-
-
-
-
- );
-}
-
-const styles = StyleSheet.create({
- container: {
- flex: 1,
- justifyContent: 'center',
- alignItems: 'center',
- backgroundColor: '#141414'
- },
- imageLogo: {
- width: normalize(324),
- height: normalize(162),
- marginBottom: '25%'
- },
- balise: {
- flex: 1,
- justifyContent: 'center',
- alignItems: 'center',
- marginBottom: normalize(110)
- },
- closeButtonCircle: {
- backgroundColor: 'gray',
- opacity: 0.4,
- width: 40,
- height: 40,
- borderRadius: 20,
- justifyContent: 'center',
- alignItems: 'center',
- position: 'absolute',
- top: 10,
- right: 10
- },
- modalContent: {
-
- flex: 1,
- justifyContent: 'center',
- alignItems: 'center',
- },
- modalView: {
- flex: 1,
- justifyContent: 'center',
- alignItems: 'center'
- },
- backgroundImage: {
- flex: 1,
- width: '100%',
- height: '100%',
- },
- imageButton: {
- width: 20,
- height: 20
- },
- versionText: {
- position: 'absolute',
- top: 50,
- right: 10,
- color: 'gray',
- fontWeight: 'bold',
- fontSize: normalize(17)
- },
- buttonConnection: {
- width: 262,
- height: 57,
- justifyContent: 'center',
- alignItems: 'center',
- backgroundColor: '#24CF5F',
- borderRadius: 11,
- borderColor: '#68F097',
- borderWidth: 1,
- marginBottom: 12
- },
- buttonInscription: {
- width: 262,
- height: 57,
- justifyContent: 'center',
- alignItems: 'center',
- backgroundColor: '#951DDE',
- borderRadius: 11,
- borderColor: '#C656ED',
- borderWidth: 1,
- marginBottom: 220
- },
- text: {
- fontWeight: 'bold',
- color: 'white',
- fontSize: normalize(18)
- },
- button2Connection: {
- width: '100%',
- height: normalize(92),
- backgroundColor: '#232123',
- borderTopColor: '#3C3C3C',
- borderTopWidth: 1,
- justifyContent: 'center',
- alignItems: 'center',
- position: 'absolute',
- bottom: normalize(0)
- },
- mascot: {
- width: normalize(130),
- height: normalize(130),
- position: 'absolute',
- bottom: normalize(90),
- right: normalize(0)
- }
-})
diff --git a/src/FLAD/assets/GraphicalCharterDark.tsx b/src/FLAD/assets/GraphicalCharterDark.tsx
new file mode 100644
index 0000000..abedb9c
--- /dev/null
+++ b/src/FLAD/assets/GraphicalCharterDark.tsx
@@ -0,0 +1,4 @@
+export const GraphicalCharterDark = {
+ "body": "#141414",
+ "Text": "white",
+}
\ No newline at end of file
diff --git a/src/FLAD/assets/GraphicalCharterLight.tsx b/src/FLAD/assets/GraphicalCharterLight.tsx
new file mode 100644
index 0000000..5422020
--- /dev/null
+++ b/src/FLAD/assets/GraphicalCharterLight.tsx
@@ -0,0 +1,4 @@
+export const GraphicalCharterLight = {
+ "body": "#E7E7E7",
+ "Text": "black",
+}
\ No newline at end of file
diff --git a/src/FLAD/assets/images/Board_Image.png b/src/FLAD/assets/images/Board_Image.png
index de93bdd..10532a6 100644
Binary files a/src/FLAD/assets/images/Board_Image.png and b/src/FLAD/assets/images/Board_Image.png differ
diff --git a/src/FLAD/assets/images/FLADYCry.png b/src/FLAD/assets/images/FLADYCry.png
new file mode 100644
index 0000000..e7079fb
Binary files /dev/null and b/src/FLAD/assets/images/FLADYCry.png differ
diff --git a/src/FLAD/assets/images/FLADYHate.png b/src/FLAD/assets/images/FLADYHate.png
new file mode 100644
index 0000000..da322f7
Binary files /dev/null and b/src/FLAD/assets/images/FLADYHate.png differ
diff --git a/src/FLAD/assets/sounds/Click.mp3 b/src/FLAD/assets/sounds/Click.mp3
new file mode 100644
index 0000000..42d254a
Binary files /dev/null and b/src/FLAD/assets/sounds/Click.mp3 differ
diff --git a/src/FLAD/components/AdjustSize.tsx b/src/FLAD/components/AdjustSize.tsx
index 409be07..65142a6 100644
--- a/src/FLAD/components/AdjustSize.tsx
+++ b/src/FLAD/components/AdjustSize.tsx
@@ -1,6 +1,5 @@
import React from 'react';
-// @ts-ignore
export default function AdjustSize(Text: String) {
const titleLength = Text.length;
const minFontSize = 23;
diff --git a/src/FLAD/components/CardMusic.tsx b/src/FLAD/components/CardMusic.tsx
index 89b1602..4c8e34b 100644
--- a/src/FLAD/components/CardMusic.tsx
+++ b/src/FLAD/components/CardMusic.tsx
@@ -1,34 +1,34 @@
import React from 'react';
-import { StyleSheet, Text, View , Image } from 'react-native';
+import { StyleSheet, Text, View, Image } from 'react-native';
import { SharedElement } from 'react-navigation-shared-element';
import { useSelector } from 'react-redux';
import normalize from '../components/Normalize';
type CustomCardMusic = { //Props
- image: string;
- title: string;
- description: string;
- id : string;
+ image: string;
+ title: string;
+ description: string;
+ id: string;
}
export default function CardMusic(CBP: CustomCardMusic) {
-const currentMusic = useSelector(state => state.appReducer.currentMusic);
+ const currentMusic = useSelector(state => state.appReducer.currentMusic);
const source = typeof CBP.image === 'string' ? { uri: CBP.image } : CBP.image;
return (
-
-
-
-
- {/* currentMusic.id === CBP.id && styles.currentMusic */}
- {CBP.title}
- {CBP.description}
-
+
+
+
+
+ {/* currentMusic.id === CBP.id && styles.currentMusic */}
+ {CBP.title}
+ {CBP.description}
+
);
}
diff --git a/src/FLAD/components/FladyComponent.tsx b/src/FLAD/components/FladyComponent.tsx
index 76bbf4d..4dee542 100644
--- a/src/FLAD/components/FladyComponent.tsx
+++ b/src/FLAD/components/FladyComponent.tsx
@@ -4,28 +4,28 @@ import normalize from './Normalize';
type Flady = {
image: string | object;
- };
+};
export default function FladyComponent(monFlady: Flady) {
const source = typeof monFlady.image === 'string' ? { uri: monFlady.image } : monFlady.image;
return (
-
+
)
}
-const styles = StyleSheet.create ({
+const styles = StyleSheet.create({
container: {
- alignItems: "flex-start",
width: normalize(152),
height: normalize(152),
borderRadius: 90,
- backgroundColor: "white",
marginHorizontal: normalize(15),
+ overflow: 'hidden',
},
image: {
- width: normalize(200),
- height: normalize(200),
+ width: normalize(220),
+ height: normalize(220),
+ marginLeft: -1
}
})
\ No newline at end of file
diff --git a/src/FLAD/components/NextButton.tsx b/src/FLAD/components/NextButton.tsx
index 47b5bd6..4ab5e91 100644
--- a/src/FLAD/components/NextButton.tsx
+++ b/src/FLAD/components/NextButton.tsx
@@ -1,12 +1,15 @@
import React, { useRef, useEffect } from 'react';
-import { View, StyleSheet, TouchableOpacity , Animated } from 'react-native';
+import { View, StyleSheet, TouchableOpacity , Animated, useColorScheme } from 'react-native';
import Svg, { G, Circle } from 'react-native-svg';
import { AntDesign } from '@expo/vector-icons';
-
+import { GraphicalCharterDark } from '../assets/GraphicalCharterDark';
+import { GraphicalCharterLight } from '../assets/GraphicalCharterLight';
import normalize from '../components/Normalize';
// @ts-ignore
export default function NextButton({ percentage, scrollTo }) {
+ const style = useColorScheme() == 'light' ? GraphicalCharterLight : GraphicalCharterDark;
+
const size = normalize(148);
const strokeWidth = 2;
const center = size / 2;
@@ -56,11 +59,11 @@ export default function NextButton({ percentage, scrollTo }) {
Dark Mode
-
+
-
-
-
+
+
+
Notification
-
+
-
+
Localisation
-
+
-
-
-
-
-
+
+
+
+
+
- En cours d’écoute...
+ En cours d’écoute...
-
-
+
+
-
-
+
+
- console.log("Tkt t deconnecter")}>
+ Deconnection()}>
Se deconnecter
@@ -171,7 +176,7 @@ const styles = StyleSheet.create({
marginBottom: 22
},
inputSearch: {
- placeholderTextColor:'red',
+ placeholderTextColor: 'red',
color: 'white',
width: normalize(350),
},
@@ -192,7 +197,7 @@ const styles = StyleSheet.create({
NameProfil: {
fontWeight: 'bold',
color: 'white',
- fontSize: normalize(22)
+ fontSize: normalize(22)
},
description: {
color: 'white',
diff --git a/src/FLAD/screens/SettingProfil.tsx b/src/FLAD/screens/SettingProfil.tsx
index bf239b1..3dc5aae 100644
--- a/src/FLAD/screens/SettingProfil.tsx
+++ b/src/FLAD/screens/SettingProfil.tsx
@@ -1,9 +1,9 @@
import React, { useState, useRef } from 'react';
-import { View, Text, StyleSheet, TouchableWithoutFeedback, Keyboard, ScrollView, Image } from 'react-native';
+import { View, Text, StyleSheet, TouchableWithoutFeedback, Keyboard, ScrollView, Image } from 'react-native';
import { TextInput, TouchableOpacity } from 'react-native-gesture-handler';
import { Svg, Path } from 'react-native-svg';
import Modal from "react-native-modal";
-import {useNavigation} from "@react-navigation/native";
+import { useNavigation } from "@react-navigation/native";
import normalize from '../components/Normalize';
import * as ImagePicker from 'expo-image-picker';
@@ -32,16 +32,16 @@ export default function SettingProfil() {
const pickImage = async () => {
// No permissions request is necessary for launching the image library
let result = await ImagePicker.launchImageLibraryAsync({
- mediaTypes: ImagePicker.MediaTypeOptions.All,
- allowsEditing: true,
- aspect: [4, 3],
- quality: 1,
+ mediaTypes: ImagePicker.MediaTypeOptions.All,
+ allowsEditing: true,
+ aspect: [4, 3],
+ quality: 1,
});
console.log(result);
if (!result.canceled) {
- setImage(result.assets[0].uri);
+ setImage(result.assets[0].uri);
}
};
@@ -52,8 +52,8 @@ export default function SettingProfil() {
navigation.navigate('Setting')}>
-
- Exit
+
+ Exit
@@ -64,27 +64,27 @@ export default function SettingProfil() {
-
+ source={require('../assets/icons/icons/edit.png')} style={{ resizeMode: "stretch", height: '85%', aspectRatio: 1 }}
+ />
+
Identifiant
-
+
Mail
-
+
-
+
-
+
@@ -96,12 +96,12 @@ export default function SettingProfil() {
-
-
-
-
-
-
+
+
+
+
+
+
console.log("Tkt t deconnecter")}>
@@ -121,20 +121,20 @@ export default function SettingProfil() {
Modifier
-
+
Ancien
-
+
Nouveau
-
+
Confirmer
-
+
@@ -204,7 +204,7 @@ const styles = StyleSheet.create({
borderRadius: 63,
borderWidth: 3,
borderColor: 'white',
- overflow: 'hidden',
+ overflow: 'hidden',
marginVertical: 20,
alignItems: 'center',
justifyContent: 'center',
@@ -260,11 +260,11 @@ const styles = StyleSheet.create({
marginLeft: 12
},
optionId: {
- flexDirection:'row',
+ flexDirection: 'row',
marginBottom: 20,
},
optionMail: {
- flexDirection:'row',
+ flexDirection: 'row',
},
textInputId: {
marginLeft: 50,