Przeprowadzka
This commit is contained in:
Executable
+23
@@ -0,0 +1,23 @@
|
||||
<?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"
|
||||
xmlns:controls="clr-namespace:HomePantry.Views.Controls"
|
||||
x:Class="HomePantry.Views.PantryPage">
|
||||
<ScrollView>
|
||||
<VerticalStackLayout>
|
||||
<Grid ColumnDefinitions="*, *" RowDefinitions="auto, auto, auto, auto, auto" Padding="20" RowSpacing="15">
|
||||
<Label Text="{Binding AppTitle}" FontSize="28" FontAttributes="Bold" Grid.ColumnSpan="2" HorizontalTextAlignment="Center" />
|
||||
<Image Source="dotnet_bot.png" Grid.Column="0" Grid.Row="1" WidthRequest="100" Aspect="AspectFit" />
|
||||
<Label Text="{Binding Subtitle}" Grid.Row="1" Grid.Column="1" FontSize="16" VerticalOptions="Center" />
|
||||
<Label Text="{Binding CurrentDate}" Grid.Row="2" Grid.ColumnSpan="2" />
|
||||
<Label Text="{Binding TotalProducts, StringFormat='Produktów: {0}'}" Grid.Row="3" />
|
||||
<Label Text="{Binding ExpiredProducts, StringFormat='Przeterminowanych: {0}'}" Grid.Row="3" Grid.Column="1" />
|
||||
<Button Text="Dodaj pierwszy produkt" Grid.ColumnSpan="2" Grid.Row="4" x:Name="Przycisk" Clicked="Button_Clicked" />
|
||||
</Grid>
|
||||
<controls:ProductCard ProductName="🥛 Mleko 3,2%" ProductInfo="2 l | Nabiał" ExpiryDate="Ważność: 12.03.2026" />
|
||||
<controls:ProductCard ProductName="🍞 Chleb żytni" ProductInfo="1 szt. | Pieczywo" ExpiryDate="Ważność: 10.03.2026" />
|
||||
<controls:ProductCard ProductName="🥩 Pierś z kurczaka" ProductInfo="0.5 kg | Mięso i wędliny" ExpiryDate="Ważność: 08.03.2026" />
|
||||
<controls:ProductCard ProductName="🍎 Jabłka Gala" ProductInfo="1 kg | Warzywa i owoce" ExpiryDate="Ważność: 20.03.2026" />
|
||||
</VerticalStackLayout>
|
||||
</ScrollView>
|
||||
</ContentPage>
|
||||
Reference in New Issue
Block a user