diff --git a/AppShell.xaml b/AppShell.xaml
index 4579ff8..11750bd 100644
--- a/AppShell.xaml
+++ b/AppShell.xaml
@@ -38,5 +38,10 @@
Title="Recipe Page"
ContentTemplate="{DataTemplate pages:RecipePage}"
Route="Recipe" />
+
+
\ No newline at end of file
diff --git a/Pages/FavoritesPage.xaml b/Pages/FavoritesPage.xaml
new file mode 100644
index 0000000..efd7b6e
--- /dev/null
+++ b/Pages/FavoritesPage.xaml
@@ -0,0 +1,54 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/Pages/FavoritesPage.xaml.cs b/Pages/FavoritesPage.xaml.cs
new file mode 100644
index 0000000..6becb10
--- /dev/null
+++ b/Pages/FavoritesPage.xaml.cs
@@ -0,0 +1,9 @@
+namespace ShoopNCook.Pages;
+
+public partial class FavoritesPage : ContentPage
+{
+ public FavoritesPage()
+ {
+ InitializeComponent();
+ }
+}
\ No newline at end of file
diff --git a/Pages/RecipePage.xaml b/Pages/RecipePage.xaml
index 87e6d49..e8c2942 100644
--- a/Pages/RecipePage.xaml
+++ b/Pages/RecipePage.xaml
@@ -107,26 +107,26 @@
x:Name="Stars"
Spacing="2"
Margin="10, 0, 0, 0">
-
-
-
-
-
+
+
+
+
+
+
+
-
@@ -89,6 +90,9 @@
MSBuild:Compile
+ MSBuild:Compile
+
+
MSBuild:Compile
@@ -107,6 +111,12 @@
MSBuild:Compile
+ MSBuild:Compile
+
+
+ MSBuild:Compile
+
+
MSBuild:Compile
diff --git a/Views/RecipeView.xaml b/Views/RecipeView.xaml
index 60a9b67..5b051ee 100644
--- a/Views/RecipeView.xaml
+++ b/Views/RecipeView.xaml
@@ -19,16 +19,39 @@
Stroke="Transparent"
StrokeShape="RoundRectangle 20"
BackgroundColor="AliceBlue">
-
+
+
+
+
+
+
+
+
+
+
+ x:Name="TitleLabel"/>
+ x:Name="SubtitleLabel"/>
diff --git a/Views/RecipeView.xaml.cs b/Views/RecipeView.xaml.cs
index 07d00b6..577e29e 100644
--- a/Views/RecipeView.xaml.cs
+++ b/Views/RecipeView.xaml.cs
@@ -2,8 +2,46 @@ namespace ShoopNCook.Views;
public partial class RecipeView : ContentView
{
- public RecipeView()
+
+
+ public RecipeView(): this(5, "Title", "Subtitle")
+ {}
+
+ public RecipeView(float note, string title, string subtitle)
{
InitializeComponent();
+ Note = note;
+ Title = title;
+ Subtitle = subtitle;
+ }
+
+ public float Note
+ {
+ set => SetNote(value);
+ }
+
+ public string Title
+ {
+ set => TitleLabel.Text = value;
+ }
+
+ public string Subtitle
+ {
+ set => SubtitleLabel.Text = value;
+ }
+
+
+ private void SetNote(float note)
+ {
+ int i = 1;
+ foreach (Image img in Stars.Children)
+ {
+ if (i <= note)
+ {
+ img.Opacity = 0;
+ i++;
+ }
+ else img.Opacity = 1;
+ }
}
}
\ No newline at end of file