diff --git a/MangaMap/Resources/Styles/Styles.xaml b/MangaMap/Resources/Styles/Styles.xaml
index 8379488..2e2b1c4 100644
--- a/MangaMap/Resources/Styles/Styles.xaml
+++ b/MangaMap/Resources/Styles/Styles.xaml
@@ -405,6 +405,22 @@
+
+
+
+
+
+
+
diff --git a/MangaMap/Views/loginPage.xaml b/MangaMap/Views/loginPage.xaml
index 6ab0ff7..fc375a1 100644
--- a/MangaMap/Views/loginPage.xaml
+++ b/MangaMap/Views/loginPage.xaml
@@ -9,11 +9,11 @@
-
+
-
+
-
+
diff --git a/MangaMap/Views/settingsPage.xaml b/MangaMap/Views/settingsPage.xaml
index 7410941..dd77c2f 100644
--- a/MangaMap/Views/settingsPage.xaml
+++ b/MangaMap/Views/settingsPage.xaml
@@ -10,9 +10,9 @@
-
+
-
+
diff --git a/MangaMap/Views/signUpPage.xaml b/MangaMap/Views/signUpPage.xaml
index 4808c1a..3b010d4 100644
--- a/MangaMap/Views/signUpPage.xaml
+++ b/MangaMap/Views/signUpPage.xaml
@@ -5,31 +5,29 @@
Background="{StaticResource Secondary}">
-
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
-
+
+
diff --git a/MangaMap/Views/signUpPage.xaml.cs b/MangaMap/Views/signUpPage.xaml.cs
index 19a9e15..c20fb34 100644
--- a/MangaMap/Views/signUpPage.xaml.cs
+++ b/MangaMap/Views/signUpPage.xaml.cs
@@ -24,11 +24,6 @@ public partial class signUpPage : ContentPage
string password = passwordEntry.Text;
string confirmPassword = confirmPasswordEntry.Text;
- if (age < 5)
- {
- await DisplayAlert("Erreur", "Il faut avoir au minimum 5 ans pour utiliser l'application.", "OK");
- return;
- }
if (string.IsNullOrWhiteSpace(email) ||
string.IsNullOrWhiteSpace(password) || string.IsNullOrWhiteSpace(confirmPassword))
@@ -37,6 +32,12 @@ public partial class signUpPage : ContentPage
return;
}
+ if (age < 5)
+ {
+ await DisplayAlert("Erreur", "Il faut avoir au minimum 5 ans pour utiliser l'application.", "OK");
+ return;
+ }
+
// Vérifier que l'e-mail a la bonne forme
if (!Regex.IsMatch(email, @"^[^@\s]+@[^@\s]+\.[^@\s]+$"))
{