diff --git a/AppShell.xaml b/AppShell.xaml index 9c51092..df3a2c6 100644 --- a/AppShell.xaml +++ b/AppShell.xaml @@ -13,12 +13,22 @@ Title="Login Page" ContentTemplate="{DataTemplate pages:LoginPage}" Route="Login" /> + + + + + + + + + + \ No newline at end of file diff --git a/MauiProgram.cs b/MauiProgram.cs index f4b9bbc..c09f521 100644 --- a/MauiProgram.cs +++ b/MauiProgram.cs @@ -14,10 +14,10 @@ public static class MauiProgram fonts.AddFont("OpenSans-Regular.ttf", "OpenSansRegular"); fonts.AddFont("OpenSans-Semibold.ttf", "OpenSansSemibold"); fonts.AddFont("Poppins-Bold.ttf", "PoppinsBold"); + fonts.AddFont("Poppins-Regular.ttf", "Poppins"); fonts.AddFont("Poppins-Medium.ttf", "PoppinsMedium"); fonts.AddFont("Poppins-Regular.ttf", "Poppins"); }); - #if DEBUG builder.Logging.AddDebug(); #endif diff --git a/Models/Account.cs b/Models/Account.cs new file mode 100644 index 0000000..ff30e30 --- /dev/null +++ b/Models/Account.cs @@ -0,0 +1,15 @@ +namespace ShoopNCook.Models +{ + internal class Account + { + + public Account(User usr, string mail) + { + User = usr; + Email = mail; + } + + public User User { get; init; } + public string Email { get; init; } + } +} diff --git a/Models/Ingredient.cs b/Models/Ingredient.cs new file mode 100644 index 0000000..6778eac --- /dev/null +++ b/Models/Ingredient.cs @@ -0,0 +1,18 @@ + +namespace ShoopNCook.Models +{ + internal class Ingredient + { + + + public Ingredient(string name, float amount, Quantity quantity) { + Name = name; + Amount = amount; + Quantity = quantity; + } + + public string Name { get; init; } + public float Amount { get; init; } + public Quantity Quantity { get; init; } + } +} diff --git a/Models/PreparationStep.cs b/Models/PreparationStep.cs new file mode 100644 index 0000000..e9427f3 --- /dev/null +++ b/Models/PreparationStep.cs @@ -0,0 +1,17 @@ + +namespace ShoopNCook.Models +{ + + internal class PreparationStep + { + + public PreparationStep(string name, string description) + { + this.Name = name; + this.Description = description; + } + + public string Name { get; init; } + public string Description { get; init; } + } +} diff --git a/Models/Quantity.cs b/Models/Quantity.cs new file mode 100644 index 0000000..b788f56 --- /dev/null +++ b/Models/Quantity.cs @@ -0,0 +1,7 @@ + +namespace ShoopNCook.Models +{ + internal class Quantity + { + } +} diff --git a/Models/Recipe.cs b/Models/Recipe.cs new file mode 100644 index 0000000..dde2b65 --- /dev/null +++ b/Models/Recipe.cs @@ -0,0 +1,26 @@ + +namespace ShoopNCook.Models +{ + internal class Recipe + { + + public RecipeInfo Info { get; init; } + + public User Owner { get; init; } + + public List Ingredients { get; init; } + public List Steps { get; init; } + + public Recipe( + RecipeInfo info, + User owner, + List ingredients, + List steps) + { + Info = info; + Owner = owner; + Ingredients = ingredients; + Steps = steps; + } + } +} \ No newline at end of file diff --git a/Models/RecipeInfo.cs b/Models/RecipeInfo.cs new file mode 100644 index 0000000..1cdfe18 --- /dev/null +++ b/Models/RecipeInfo.cs @@ -0,0 +1,20 @@ + +namespace ShoopNCook.Models +{ + + internal class RecipeInfo + { + public string Name { get; init; } + public string Description { get; init; } + public Uri Image { get; init; } + public float AverageNote { get; init; } + + public RecipeInfo(string name, string description, Uri image, float averageNote) + { + Name = name; + Description = description; + Image = image; + AverageNote = averageNote; + } + } +} diff --git a/Models/User.cs b/Models/User.cs new file mode 100644 index 0000000..918032f --- /dev/null +++ b/Models/User.cs @@ -0,0 +1,16 @@ + +namespace ShoopNCook.Models +{ + internal class User + { + + public User(Uri profilePicture, string name) + { + ProfilePicture = profilePicture; + Name = name; + } + + public Uri ProfilePicture { get; init; } + public string Name { get; init; } + } +} diff --git a/Pages/ChangePassword.xaml b/Pages/ChangePassword.xaml new file mode 100644 index 0000000..73d11ca --- /dev/null +++ b/Pages/ChangePassword.xaml @@ -0,0 +1,146 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + +