From 382bb13650e9a5e2561878171617ffe793a4acae Mon Sep 17 00:00:00 2001 From: "maxime.BATISTA@etu.uca.fr" Date: Wed, 19 Apr 2023 14:45:37 +0200 Subject: [PATCH] fix all headers to be centered --- AppShell.xaml | 6 ++++++ ShoopNCook.csproj | 3 +++ Views/FavoritesPage.xaml | 17 +++++++++++------ Views/MyRecipesPage.xaml | 32 ++++++++++++++++++++++++++++++++ Views/MyRecipesPage.xaml.cs | 9 +++++++++ Views/ProfilePage.xaml | 26 ++++++++++++++------------ Views/RecipePage.xaml | 5 +---- Views/SearchPage.xaml | 27 ++++++++++++++++----------- 8 files changed, 92 insertions(+), 33 deletions(-) create mode 100644 Views/MyRecipesPage.xaml create mode 100644 Views/MyRecipesPage.xaml.cs diff --git a/AppShell.xaml b/AppShell.xaml index 2f54421..260e05d 100644 --- a/AppShell.xaml +++ b/AppShell.xaml @@ -38,5 +38,11 @@ Title="Favorites Page" ContentTemplate="{DataTemplate views:FavoritesPage}" Route="Favorites" /> + + + \ No newline at end of file diff --git a/ShoopNCook.csproj b/ShoopNCook.csproj index d32645e..56b5262 100644 --- a/ShoopNCook.csproj +++ b/ShoopNCook.csproj @@ -74,6 +74,9 @@ MSBuild:Compile + + MSBuild:Compile + MSBuild:Compile diff --git a/Views/FavoritesPage.xaml b/Views/FavoritesPage.xaml index 5aa1b63..ef36e98 100644 --- a/Views/FavoritesPage.xaml +++ b/Views/FavoritesPage.xaml @@ -11,21 +11,26 @@ + Padding="20, 40, 0, 30" + ColumnDefinitions="*" + MaximumHeightRequest="60"> + Source="arrow_back.svg" + HorizontalOptions="Start"/> + diff --git a/Views/MyRecipesPage.xaml b/Views/MyRecipesPage.xaml new file mode 100644 index 0000000..09e1b98 --- /dev/null +++ b/Views/MyRecipesPage.xaml @@ -0,0 +1,32 @@ + + + + + + + + + + + \ No newline at end of file diff --git a/Views/MyRecipesPage.xaml.cs b/Views/MyRecipesPage.xaml.cs new file mode 100644 index 0000000..aaf6794 --- /dev/null +++ b/Views/MyRecipesPage.xaml.cs @@ -0,0 +1,9 @@ +namespace ShoopNCook.Views; + +public partial class MyRecipesPage : ContentPage +{ + public MyRecipesPage() + { + InitializeComponent(); + } +} \ No newline at end of file diff --git a/Views/ProfilePage.xaml b/Views/ProfilePage.xaml index 7f795ff..8426e3d 100644 --- a/Views/ProfilePage.xaml +++ b/Views/ProfilePage.xaml @@ -13,23 +13,25 @@ - - - + Padding="10, 20, 0, 30" + ColumnDefinitions="*" + MaximumHeightRequest="60"> + + + diff --git a/Views/RecipePage.xaml b/Views/RecipePage.xaml index 9423b7c..e763845 100644 --- a/Views/RecipePage.xaml +++ b/Views/RecipePage.xaml @@ -8,8 +8,7 @@ + Padding="10"> @@ -141,9 +140,7 @@ HorizontalOptions="Center" Text="Submit"/> - - diff --git a/Views/SearchPage.xaml b/Views/SearchPage.xaml index 5c4c873..baf00fb 100644 --- a/Views/SearchPage.xaml +++ b/Views/SearchPage.xaml @@ -12,26 +12,31 @@ + Grid.Row="0" + Padding="10, 20, 0, 30" + ColumnDefinitions="*" + MaximumHeightRequest="60"> + + - - - +