diff --git a/.gitignore b/.gitignore
index 55de648..a8fb408 100644
--- a/.gitignore
+++ b/.gitignore
@@ -6,6 +6,7 @@ obj/
#locks and backup
.~*
+ShoopNCook - Backup*
.nuspec/
.buildtasks/
diff --git a/AppShell.xaml b/AppShell.xaml
index 260e05d..277d3d1 100644
--- a/AppShell.xaml
+++ b/AppShell.xaml
@@ -4,45 +4,50 @@
xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
xmlns:local="clr-namespace:ShoopNCook"
- xmlns:views="clr-namespace:ShoopNCook.Views"
+ xmlns:pages="clr-namespace:ShoopNCook.Pages"
Shell.FlyoutBehavior="Disabled"
Shell.NavBarIsVisible="False">
+
+
-
+ ContentTemplate="{DataTemplate pages:RegisterPage}"
+ Route="Register"/>
+
\ No newline at end of file
diff --git a/MauiProgram.cs b/MauiProgram.cs
index 5a4fcfa..f4b9bbc 100644
--- a/MauiProgram.cs
+++ b/MauiProgram.cs
@@ -15,6 +15,7 @@ public static class MauiProgram
fonts.AddFont("OpenSans-Semibold.ttf", "OpenSansSemibold");
fonts.AddFont("Poppins-Bold.ttf", "PoppinsBold");
fonts.AddFont("Poppins-Medium.ttf", "PoppinsMedium");
+ fonts.AddFont("Poppins-Regular.ttf", "Poppins");
});
#if DEBUG
diff --git a/Views/FavoritesPage.xaml b/Pages/FavoritesPage.xaml
similarity index 97%
rename from Views/FavoritesPage.xaml
rename to Pages/FavoritesPage.xaml
index ef36e98..7966adf 100644
--- a/Views/FavoritesPage.xaml
+++ b/Pages/FavoritesPage.xaml
@@ -1,7 +1,7 @@
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/Views/LoginPage.xaml b/Pages/LoginPage.xaml
similarity index 95%
rename from Views/LoginPage.xaml
rename to Pages/LoginPage.xaml
index f6c1c4b..2ea9c7c 100644
--- a/Views/LoginPage.xaml
+++ b/Pages/LoginPage.xaml
@@ -1,144 +1,144 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/Views/LoginPage.xaml.cs b/Pages/LoginPage.xaml.cs
similarity index 72%
rename from Views/LoginPage.xaml.cs
rename to Pages/LoginPage.xaml.cs
index bb308e8..cae2c76 100644
--- a/Views/LoginPage.xaml.cs
+++ b/Pages/LoginPage.xaml.cs
@@ -1,9 +1,9 @@
-namespace ShoopNCook.Views;
-
-public partial class LoginPage : ContentPage
-{
- public LoginPage()
- {
- InitializeComponent();
- }
+namespace ShoopNCook.Pages;
+
+public partial class LoginPage : ContentPage
+{
+ public LoginPage()
+ {
+ InitializeComponent();
+ }
}
\ No newline at end of file
diff --git a/Pages/MorePage.xaml b/Pages/MorePage.xaml
new file mode 100644
index 0000000..90910d5
--- /dev/null
+++ b/Pages/MorePage.xaml
@@ -0,0 +1,40 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/Pages/MorePage.xaml.cs b/Pages/MorePage.xaml.cs
new file mode 100644
index 0000000..8f5bcb3
--- /dev/null
+++ b/Pages/MorePage.xaml.cs
@@ -0,0 +1,15 @@
+namespace ShoopNCook.Pages;
+
+public partial class MorePage : ContentPage
+{
+ public MorePage(): this("Adom Shafi", ImageSource.FromFile("default_profile_picture.png"))
+ {
+ }
+
+ public MorePage(string userName, ImageSource userImage)
+ {
+ InitializeComponent();
+ ProfileImage.Source = userImage;
+ ProfileName.Text = userName;
+ }
+}
\ No newline at end of file
diff --git a/Views/MyRecipesPage.xaml b/Pages/MyRecipesPage.xaml
similarity index 57%
rename from Views/MyRecipesPage.xaml
rename to Pages/MyRecipesPage.xaml
index e59de70..209977a 100644
--- a/Views/MyRecipesPage.xaml
+++ b/Pages/MyRecipesPage.xaml
@@ -1,7 +1,7 @@
@@ -40,16 +40,16 @@
Direction="Row"
Wrap="Wrap">
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
diff --git a/Views/MyRecipesPage.xaml.cs b/Pages/MyRecipesPage.xaml.cs
similarity index 78%
rename from Views/MyRecipesPage.xaml.cs
rename to Pages/MyRecipesPage.xaml.cs
index aaf6794..9e0f53a 100644
--- a/Views/MyRecipesPage.xaml.cs
+++ b/Pages/MyRecipesPage.xaml.cs
@@ -1,4 +1,4 @@
-namespace ShoopNCook.Views;
+namespace ShoopNCook.Pages;
public partial class MyRecipesPage : ContentPage
{
diff --git a/Views/ProfilePage.xaml b/Pages/ProfilePage.xaml
similarity index 98%
rename from Views/ProfilePage.xaml
rename to Pages/ProfilePage.xaml
index 8426e3d..fa1e736 100644
--- a/Views/ProfilePage.xaml
+++ b/Pages/ProfilePage.xaml
@@ -1,7 +1,7 @@
diff --git a/Views/ProfilePage.xaml.cs b/Pages/ProfilePage.xaml.cs
similarity index 78%
rename from Views/ProfilePage.xaml.cs
rename to Pages/ProfilePage.xaml.cs
index 6102df7..52470f6 100644
--- a/Views/ProfilePage.xaml.cs
+++ b/Pages/ProfilePage.xaml.cs
@@ -1,4 +1,4 @@
-namespace ShoopNCook.Views;
+namespace ShoopNCook.Pages;
public partial class ProfilePage : ContentPage
{
diff --git a/Views/RecipePage.xaml b/Pages/RecipePage.xaml
similarity index 99%
rename from Views/RecipePage.xaml
rename to Pages/RecipePage.xaml
index e763845..4704ea5 100644
--- a/Views/RecipePage.xaml
+++ b/Pages/RecipePage.xaml
@@ -1,7 +1,7 @@
diff --git a/Views/RecipePage.xaml.cs b/Pages/RecipePage.xaml.cs
similarity index 97%
rename from Views/RecipePage.xaml.cs
rename to Pages/RecipePage.xaml.cs
index e5a8424..17bd514 100644
--- a/Views/RecipePage.xaml.cs
+++ b/Pages/RecipePage.xaml.cs
@@ -1,7 +1,7 @@
-using Microsoft.Maui.Controls;
+using ShoopNCook.Views;
using System.Windows.Input;
-namespace ShoopNCook.Views;
+namespace ShoopNCook.Pages;
public partial class RecipePage : ContentPage
{
diff --git a/Views/RegisterPage.xaml b/Pages/RegisterPage.xaml
similarity index 98%
rename from Views/RegisterPage.xaml
rename to Pages/RegisterPage.xaml
index 4558723..2164b30 100644
--- a/Views/RegisterPage.xaml
+++ b/Pages/RegisterPage.xaml
@@ -1,7 +1,7 @@
diff --git a/Views/RegisterPage.xaml.cs b/Pages/RegisterPage.xaml.cs
similarity index 78%
rename from Views/RegisterPage.xaml.cs
rename to Pages/RegisterPage.xaml.cs
index 94f1dd6..8544462 100644
--- a/Views/RegisterPage.xaml.cs
+++ b/Pages/RegisterPage.xaml.cs
@@ -1,4 +1,4 @@
-namespace ShoopNCook.Views;
+namespace ShoopNCook.Pages;
public partial class RegisterPage : ContentPage
{
diff --git a/Views/SearchPage.xaml b/Pages/SearchPage.xaml
similarity index 98%
rename from Views/SearchPage.xaml
rename to Pages/SearchPage.xaml
index baf00fb..c7494b4 100644
--- a/Views/SearchPage.xaml
+++ b/Pages/SearchPage.xaml
@@ -1,7 +1,7 @@
diff --git a/Views/SearchPage.xaml.cs b/Pages/SearchPage.xaml.cs
similarity index 77%
rename from Views/SearchPage.xaml.cs
rename to Pages/SearchPage.xaml.cs
index bd259e7..aef458a 100644
--- a/Views/SearchPage.xaml.cs
+++ b/Pages/SearchPage.xaml.cs
@@ -1,4 +1,4 @@
-namespace ShoopNCook.Views;
+namespace ShoopNCook.Pages;
public partial class SearchPage : ContentPage
{
diff --git a/Resources/Fonts/Poppins-Regular.ttf b/Resources/Fonts/Poppins-Regular.ttf
new file mode 100644
index 0000000..e48144e
Binary files /dev/null and b/Resources/Fonts/Poppins-Regular.ttf differ
diff --git a/Resources/Images/bin.svg b/Resources/Images/bin.svg
new file mode 100644
index 0000000..5408f69
--- /dev/null
+++ b/Resources/Images/bin.svg
@@ -0,0 +1,3 @@
+
diff --git a/Resources/Images/cookie.svg b/Resources/Images/cookie.svg
new file mode 100644
index 0000000..a1a9554
--- /dev/null
+++ b/Resources/Images/cookie.svg
@@ -0,0 +1,3 @@
+
diff --git a/Resources/Images/logout_arrow.svg b/Resources/Images/logout_arrow.svg
new file mode 100644
index 0000000..e1dd9b4
--- /dev/null
+++ b/Resources/Images/logout_arrow.svg
@@ -0,0 +1,3 @@
+
diff --git a/Resources/Images/moon_white.svg b/Resources/Images/moon_white.svg
new file mode 100644
index 0000000..5cc0b99
--- /dev/null
+++ b/Resources/Images/moon_white.svg
@@ -0,0 +1,3 @@
+
diff --git a/Resources/Images/share.svg b/Resources/Images/share.svg
new file mode 100644
index 0000000..df811c7
--- /dev/null
+++ b/Resources/Images/share.svg
@@ -0,0 +1,3 @@
+
diff --git a/Resources/Images/user_fill.svg b/Resources/Images/user_fill.svg
new file mode 100644
index 0000000..90e367c
--- /dev/null
+++ b/Resources/Images/user_fill.svg
@@ -0,0 +1,4 @@
+
diff --git a/ShoopNCook - Backup (1).csproj b/ShoopNCook - Backup (1).csproj
deleted file mode 100644
index 9ca6f83..0000000
--- a/ShoopNCook - Backup (1).csproj
+++ /dev/null
@@ -1,87 +0,0 @@
-
-
-
- net7.0-android;net7.0-ios;net7.0-maccatalyst
- $(TargetFrameworks);net7.0-windows10.0.19041.0
-
-
- Exe
- ShoopNCook
- true
- true
- enable
-
-
- ShoopNCook
-
-
- com.companyname.shoopncook
- bf17e1fe-a722-42f6-a24d-3327d351c924
-
-
- 1.0
- 1
-
- 11.0
- 13.1
- 21.0
- 10.0.17763.0
- 10.0.17763.0
- 6.5
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- MSBuild:Compile
-
-
- MSBuild:Compile
-
-
- MSBuild:Compile
-
-
-
-
-
-
diff --git a/ShoopNCook - Backup (2).csproj b/ShoopNCook - Backup (2).csproj
deleted file mode 100644
index 9099e0e..0000000
--- a/ShoopNCook - Backup (2).csproj
+++ /dev/null
@@ -1,104 +0,0 @@
-
-
-
- net7.0-android;net7.0-ios;net7.0-maccatalyst
- $(TargetFrameworks);net7.0-windows10.0.19041.0
-
-
- Exe
- ShoopNCook
- true
- true
- enable
-
-
- ShoopNCook
-
-
- com.companyname.shoopncook
- bf17e1fe-a722-42f6-a24d-3327d351c924
-
-
- 1.0
- 1
-
- 11.0
- 13.1
- 21.0
- 10.0.17763.0
- 10.0.17763.0
- 6.5
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- MSBuild:Compile
-
-
- MSBuild:Compile
-
-
- MSBuild:Compile
-
-
- MSBuild:Compile
-
-
- MSBuild:Compile
-
-
- MSBuild:Compile
-
-
-
-
-
-
diff --git a/ShoopNCook - Backup.csproj b/ShoopNCook - Backup.csproj
deleted file mode 100644
index 9ca6f83..0000000
--- a/ShoopNCook - Backup.csproj
+++ /dev/null
@@ -1,87 +0,0 @@
-
-
-
- net7.0-android;net7.0-ios;net7.0-maccatalyst
- $(TargetFrameworks);net7.0-windows10.0.19041.0
-
-
- Exe
- ShoopNCook
- true
- true
- enable
-
-
- ShoopNCook
-
-
- com.companyname.shoopncook
- bf17e1fe-a722-42f6-a24d-3327d351c924
-
-
- 1.0
- 1
-
- 11.0
- 13.1
- 21.0
- 10.0.17763.0
- 10.0.17763.0
- 6.5
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- MSBuild:Compile
-
-
- MSBuild:Compile
-
-
- MSBuild:Compile
-
-
-
-
-
-
diff --git a/ShoopNCook.csproj b/ShoopNCook.csproj
index 0974f50..64d5f50 100644
--- a/ShoopNCook.csproj
+++ b/ShoopNCook.csproj
@@ -49,6 +49,7 @@
+
diff --git a/Views/FavoritesPage.xaml.cs b/Views/FavoritesPage.xaml.cs
deleted file mode 100644
index b9372af..0000000
--- a/Views/FavoritesPage.xaml.cs
+++ /dev/null
@@ -1,9 +0,0 @@
-namespace ShoopNCook.Views;
-
-public partial class FavoritesPage : ContentPage
-{
- public FavoritesPage()
- {
- InitializeComponent();
- }
-}
\ No newline at end of file
diff --git a/Views/HeadedButton.xaml b/Views/HeadedButton.xaml
new file mode 100644
index 0000000..26a3f4d
--- /dev/null
+++ b/Views/HeadedButton.xaml
@@ -0,0 +1,28 @@
+
+
+
+
+
+
+
+
+
diff --git a/Views/HeadedButton.xaml.cs b/Views/HeadedButton.xaml.cs
new file mode 100644
index 0000000..3558072
--- /dev/null
+++ b/Views/HeadedButton.xaml.cs
@@ -0,0 +1,37 @@
+namespace ShoopNCook.Views;
+
+public partial class HeadedButton : ContentView
+{
+
+ private readonly BindableProperty TextProperty =
+ BindableProperty.Create("Text", typeof(string), typeof(HeadedButton), "No Text Defined.");
+
+ private readonly BindableProperty HeadColorProperty =
+ BindableProperty.Create("HeadColor", typeof(string), typeof(HeadedButton), "#FFFFFF");
+
+ private readonly BindableProperty HeadSourceProperty =
+ BindableProperty.Create("HeadSource", typeof(string), typeof(HeadedButton), default(string));
+
+ public string Text
+ {
+ get => (string)GetValue(TextProperty);
+ set => SetValue(TextProperty, value);
+ }
+
+ public string HeadColor
+ {
+ get => (string)GetValue(HeadColorProperty);
+ set => SetValue(HeadColorProperty, value);
+ }
+
+ public string HeadSource
+ {
+ get => (string)GetValue(HeadSourceProperty);
+ set => SetValue(HeadSourceProperty, value);
+ }
+
+ public HeadedButton()
+ {
+ InitializeComponent();
+ }
+}
\ No newline at end of file
diff --git a/Views/OwnedRecipeView.xaml b/Views/OwnedRecipeView.xaml
index adcf9e6..0a2fb71 100644
--- a/Views/OwnedRecipeView.xaml
+++ b/Views/OwnedRecipeView.xaml
@@ -2,5 +2,78 @@
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/Views/OwnedRecipeView.xaml.cs b/Views/OwnedRecipeView.xaml.cs
index 9f8f54f..d10a211 100644
--- a/Views/OwnedRecipeView.xaml.cs
+++ b/Views/OwnedRecipeView.xaml.cs
@@ -3,12 +3,42 @@ namespace ShoopNCook.Views;
public partial class OwnedRecipeView : ContentView
{
- private readonly RecipeView recipeView;
+ public OwnedRecipeView() : this(5, "Title")
+ { }
- public OwnedRecipeView(float note, string title, string subtitle)
- {
- recipeView = new RecipeView(note, title, subtitle);
+ public OwnedRecipeView(float note, string title)
+ {
InitializeComponent();
+ Note = note;
+ Title = title;
}
+ public float Note
+ {
+ set => SetNote(value);
+ }
+
+ public string Title
+ {
+ set => TitleLabel.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;
+ }
+ }
+
+ private void TapGestureRecognizer_Tapped(object sender, TappedEventArgs e)
+ {
+ Console.WriteLine("This is a test");
+ }
}
\ No newline at end of file
diff --git a/Views/RecipeView.xaml.cs b/Views/RecipeView.xaml.cs
index 5051268..4d17b90 100644
--- a/Views/RecipeView.xaml.cs
+++ b/Views/RecipeView.xaml.cs
@@ -42,5 +42,5 @@ public partial class RecipeView : ContentView
}
else img.Opacity = 1;
}
- }
+ }
}
\ No newline at end of file