Merge pull request 'xaml/favorites' (#27) from xaml/favorites into master
Reviewed-on: ShopNCook/ShopNCook#27pull/28/head^2
commit
d3b0799ca3
@ -0,0 +1,54 @@
|
||||
<?xml version="1.0" encoding="utf-8" ?>
|
||||
<ContentPage xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
|
||||
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
|
||||
x:Class="ShoopNCook.Views.FavoritesPage"
|
||||
Title="FavoritesPage"
|
||||
xmlns:views="clr-namespace:ShoopNCook.Views"
|
||||
BackgroundColor="{StaticResource BackgroundPrimary}">
|
||||
|
||||
<Grid
|
||||
RowDefinitions="Auto, *">
|
||||
<!-- Header label and return button -->
|
||||
<Grid
|
||||
Grid.Row="0"
|
||||
ColumnDefinitions="Auto, *"
|
||||
Padding="10, 20, 0, 30">
|
||||
|
||||
<ImageButton
|
||||
Grid.Column="0"
|
||||
HeightRequest="50"
|
||||
WidthRequest="50"
|
||||
Source="arrow_back.svg"/>
|
||||
<Label
|
||||
Grid.Column="1"
|
||||
FontSize="24"
|
||||
TextColor="{StaticResource TextColorPrimary}"
|
||||
Text="Favorites recipes"
|
||||
FontFamily="PoppinsBold"
|
||||
HorizontalOptions="Center"/>
|
||||
</Grid>
|
||||
|
||||
<!-- Favorite items -->
|
||||
<ScrollView
|
||||
Grid.Row="1">
|
||||
<FlexLayout
|
||||
JustifyContent="Center"
|
||||
AlignItems="Start"
|
||||
AlignContent="Start"
|
||||
Direction="Row"
|
||||
Wrap="Wrap">
|
||||
|
||||
<views:RecipeView Margin="5" Note="4.5" Title="Spaghetti Bolognese" Subtitle="30 min"/>
|
||||
<views:RecipeView Margin="5" Note="3" Title="Chickend Curry" Subtitle="45 min"/>
|
||||
<views:RecipeView Margin="5" Note="0.2" Title="Beef Stroganoff" Subtitle="10 min"/>
|
||||
<views:RecipeView Margin="5" Note="1.6" Title="Fish And Ships" Subtitle="15 min"/>
|
||||
<views:RecipeView Margin="5" Note="5" Title="Caesar Salad" Subtitle="20 min"/>
|
||||
<views:RecipeView Margin="5" Note="3.5" Title="Vegetables" Subtitle="60 min"/>
|
||||
<views:RecipeView Margin="5" Note="4.6" Title="Guacamole" Subtitle="90 min"/>
|
||||
<views:RecipeView Margin="5" Note="4" Title="Pad Thai" Subtitle="10 min"/>
|
||||
<views:RecipeView Margin="5" Note="3" Title="French Toast" Subtitle="5 min"/>
|
||||
<views:RecipeView Margin="5" Note="2" Title="Margherita Pizza" Subtitle="2 min"/>
|
||||
</FlexLayout>
|
||||
</ScrollView>
|
||||
</Grid>
|
||||
</ContentPage>
|
@ -0,0 +1,9 @@
|
||||
namespace ShoopNCook.Views;
|
||||
|
||||
public partial class FavoritesPage : ContentPage
|
||||
{
|
||||
public FavoritesPage()
|
||||
{
|
||||
InitializeComponent();
|
||||
}
|
||||
}
|
Loading…
Reference in new issue