|
|
|
@ -3,6 +3,7 @@
|
|
|
|
|
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
|
|
|
|
|
xmlns:toolkit="http://schemas.microsoft.com/dotnet/2022/maui/toolkit"
|
|
|
|
|
xmlns:local="clr-namespace:Views"
|
|
|
|
|
xmlns:model="clr-namespace:Model;assembly=Model"
|
|
|
|
|
x:Class="Views.Home">
|
|
|
|
|
|
|
|
|
|
<local:ContainerBase
|
|
|
|
@ -12,19 +13,29 @@
|
|
|
|
|
<local:ContainerBase.MyFlyoutContent>
|
|
|
|
|
<VerticalStackLayout Grid.Row="1">
|
|
|
|
|
<!-- Research -->
|
|
|
|
|
<Button Text="Recherche" ImageSource="search_icon.png"
|
|
|
|
|
<Button
|
|
|
|
|
Text="Recherche"
|
|
|
|
|
ImageSource="search_icon.png"
|
|
|
|
|
MaximumHeightRequest="20"
|
|
|
|
|
Style="{StaticResource button1}"/>
|
|
|
|
|
<SearchBar Placeholder="Mots-clés (ex.: rapide, fromage)" FontAttributes="Italic" TextColor="Black"
|
|
|
|
|
<SearchBar
|
|
|
|
|
Placeholder="Mots-clés (ex.: rapide, fromage)"
|
|
|
|
|
FontAttributes="Italic" TextColor="Black"
|
|
|
|
|
BackgroundColor="{AppThemeBinding Light={StaticResource White}, Dark={StaticResource Gray300}}"
|
|
|
|
|
Margin="15, 10, 15, 40"/>
|
|
|
|
|
|
|
|
|
|
<!-- Direct research -->
|
|
|
|
|
<Button Text="Entrées" ImageSource="flatware_icon.png"
|
|
|
|
|
<Button
|
|
|
|
|
Text="Entrées"
|
|
|
|
|
ImageSource="flatware_icon.png"
|
|
|
|
|
Style="{StaticResource button1}"/>
|
|
|
|
|
<Button Text="Plats" ImageSource="room_service_icon.png"
|
|
|
|
|
<Button
|
|
|
|
|
Text="Plats"
|
|
|
|
|
ImageSource="room_service_icon.png"
|
|
|
|
|
Style="{StaticResource button1}"/>
|
|
|
|
|
<Button Text="Desserts" ImageSource="coffee_icon.png"
|
|
|
|
|
<Button
|
|
|
|
|
Text="Desserts"
|
|
|
|
|
ImageSource="coffee_icon.png"
|
|
|
|
|
Style="{StaticResource button1}"/>
|
|
|
|
|
</VerticalStackLayout>
|
|
|
|
|
</local:ContainerBase.MyFlyoutContent>
|
|
|
|
@ -32,9 +43,12 @@
|
|
|
|
|
<!-- Master -->
|
|
|
|
|
<local:ContainerBase.MyContent>
|
|
|
|
|
<ScrollView>
|
|
|
|
|
<StackLayout>
|
|
|
|
|
<Label Text="Suggestions" TextColor="{AppThemeBinding Light={StaticResource Black}, Dark={StaticResource Gray100}}"
|
|
|
|
|
FontSize="24" Padding="15"/>
|
|
|
|
|
<StackLayout BindingContext="{Binding AllRecipes}">
|
|
|
|
|
<Label
|
|
|
|
|
Text="{Binding Description}"
|
|
|
|
|
TextColor="{AppThemeBinding Light={StaticResource Black}, Dark={StaticResource Gray100}}"
|
|
|
|
|
FontSize="24"
|
|
|
|
|
Padding="15"/>
|
|
|
|
|
|
|
|
|
|
<FlexLayout
|
|
|
|
|
Margin="0, 15"
|
|
|
|
@ -42,8 +56,35 @@
|
|
|
|
|
JustifyContent="Start"
|
|
|
|
|
AlignItems="Center"
|
|
|
|
|
AlignContent="SpaceEvenly"
|
|
|
|
|
HorizontalOptions="Center">
|
|
|
|
|
HorizontalOptions="Center"
|
|
|
|
|
BindableLayout.ItemsSource="{Binding}">
|
|
|
|
|
|
|
|
|
|
<BindableLayout.ItemTemplate>
|
|
|
|
|
<DataTemplate x:DataType="model:Recipe">
|
|
|
|
|
<Border Style="{StaticResource recipeCase}">
|
|
|
|
|
<Grid RowDefinitions="*, 40">
|
|
|
|
|
<!--<local:RecipeCase
|
|
|
|
|
CaseImageSource="room_service_icon.png"
|
|
|
|
|
Title="{Binding Title}"/>-->
|
|
|
|
|
|
|
|
|
|
<Image
|
|
|
|
|
Grid.Row="0" VerticalOptions="Fill"
|
|
|
|
|
Source="room_service_icon.png"/>
|
|
|
|
|
|
|
|
|
|
<Label
|
|
|
|
|
Text="{Binding Title}" FontSize="18"
|
|
|
|
|
Grid.Row="1" HorizontalOptions="Center"/>
|
|
|
|
|
</Grid>
|
|
|
|
|
</Border>
|
|
|
|
|
</DataTemplate>
|
|
|
|
|
</BindableLayout.ItemTemplate>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<!--<local:RecipeCase CaseImageSource="room_service_icon.png"/>
|
|
|
|
|
<local:RecipeCase CaseImageSource="room_service_icon.png"/>
|
|
|
|
|
<local:RecipeCase CaseImageSource="room_service_icon.png"/>
|
|
|
|
|
<local:RecipeCase CaseImageSource="room_service_icon.png"/>
|
|
|
|
@ -53,8 +94,7 @@
|
|
|
|
|
<local:RecipeCase CaseImageSource="room_service_icon.png"/>
|
|
|
|
|
<local:RecipeCase CaseImageSource="room_service_icon.png"/>
|
|
|
|
|
<local:RecipeCase CaseImageSource="room_service_icon.png"/>
|
|
|
|
|
<local:RecipeCase CaseImageSource="room_service_icon.png"/>
|
|
|
|
|
<local:RecipeCase CaseImageSource="room_service_icon.png"/>
|
|
|
|
|
<local:RecipeCase CaseImageSource="room_service_icon.png"/>-->
|
|
|
|
|
|
|
|
|
|
</FlexLayout>
|
|
|
|
|
</StackLayout>
|
|
|
|
|