From d1c96f65d5561d06b51cbf1cb881c600ffdc0cc7 Mon Sep 17 00:00:00 2001 From: "maxime.BATISTA@etu.uca.fr" Date: Wed, 12 Apr 2023 14:20:02 +0200 Subject: [PATCH] add vote system to recipe page --- .../Images/{earth_off.svg => hearth_off.svg} | 0 .../Images/{earth_on.svg => hearth_on.svg} | 0 Resources/Images/star_empty.svg | 3 + Resources/Images/star_full.svg | 3 + ShoopNCook.csproj | 6 +- Views/RecipePage.xaml | 52 +++++++++++++++- Views/RecipePage.xaml.cs | 60 ++++++++++++++----- 7 files changed, 103 insertions(+), 21 deletions(-) rename Resources/Images/{earth_off.svg => hearth_off.svg} (100%) rename Resources/Images/{earth_on.svg => hearth_on.svg} (100%) create mode 100644 Resources/Images/star_empty.svg create mode 100644 Resources/Images/star_full.svg diff --git a/Resources/Images/earth_off.svg b/Resources/Images/hearth_off.svg similarity index 100% rename from Resources/Images/earth_off.svg rename to Resources/Images/hearth_off.svg diff --git a/Resources/Images/earth_on.svg b/Resources/Images/hearth_on.svg similarity index 100% rename from Resources/Images/earth_on.svg rename to Resources/Images/hearth_on.svg diff --git a/Resources/Images/star_empty.svg b/Resources/Images/star_empty.svg new file mode 100644 index 0000000..2ee298f --- /dev/null +++ b/Resources/Images/star_empty.svg @@ -0,0 +1,3 @@ + + + diff --git a/Resources/Images/star_full.svg b/Resources/Images/star_full.svg new file mode 100644 index 0000000..58bea28 --- /dev/null +++ b/Resources/Images/star_full.svg @@ -0,0 +1,3 @@ + + + diff --git a/ShoopNCook.csproj b/ShoopNCook.csproj index de34a4b..ff78320 100644 --- a/ShoopNCook.csproj +++ b/ShoopNCook.csproj @@ -50,14 +50,16 @@ - - + + + + diff --git a/Views/RecipePage.xaml b/Views/RecipePage.xaml index 95bb063..73b3319 100644 --- a/Views/RecipePage.xaml +++ b/Views/RecipePage.xaml @@ -3,6 +3,7 @@ xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml" x:Class="ShoopNCook.Views.RecipePage" Title="RecipePage" + x:Name="RecipeViewPage" BackgroundColor="{StaticResource BackgroundPrimary}"> + RowDefinitions="*, Auto, Auto, 0.5*"> @@ -99,6 +100,51 @@ x:Name="StepList"/> + + + + + + + + + + + + +