diff --git a/assets/images/backgroundWourkout.jpg b/assets/images/backgroundWourkout.jpg new file mode 100644 index 0000000..282c985 Binary files /dev/null and b/assets/images/backgroundWourkout.jpg differ diff --git a/components/LinearProgressBar.tsx b/components/LinearProgressBar.tsx index 6431193..5fbb0ac 100644 --- a/components/LinearProgressBar.tsx +++ b/components/LinearProgressBar.tsx @@ -36,7 +36,7 @@ export default function LinearProgressBar({ duration = 10 }) { return ( - Temps restant : {timeLeft}s + Temps restant : {timeLeft}s {isRunning ? 'En cours...' : 'Play'} + diff --git a/components/WorkoutPresentationComponent.tsx b/components/WorkoutPresentationComponent.tsx index f9fcad2..c395ff6 100644 --- a/components/WorkoutPresentationComponent.tsx +++ b/components/WorkoutPresentationComponent.tsx @@ -1,28 +1,48 @@ -import {ImageBackground, TouchableOpacity, View} from "react-native"; +import {ImageBackground, TouchableOpacity, View, Text} from "react-native"; import Screen from "@/components/ui/Screen"; import * as React from "react"; import {Ionicons} from "@expo/vector-icons"; import {useRouter} from "expo-router"; import LinearProgressBar from "@/components/LinearProgressBar"; +import {Workout} from "@/model/Workout"; +import {LinearGradient} from "expo-linear-gradient"; +import WelcomeComponent from "@/components/WelcomeComponent"; +import HeaderProfileComponent from "@/components/HeaderProfileComponent"; -export default function WorkoutPresentationComponent() { +export default function WorkoutPresentationComponent(workout: Workout, dataExercise: any) { const router = useRouter() return ( + source={require("assets/images/backgroundWourkout.jpg")}> - - { - router.replace("/ExercicesScreen"); - }}> - - + + + {/* Bouton Retour */} + + { router.replace("/ExercicesScreen"); }}> + + + + + {/* Permet de pousser le reste du contenu vers le bas */} + + + {/* Texte en bas */} + + + Exercise 1 + + Back Warmup + + + {/* Barre de progression */} + + + + - - - ) + ); } \ No newline at end of file