<?xml version="1.0" encoding="utf-8" ?>
<ContentPage
    x:Class="Payesh.Maui.Views.Pages.FactoriesMonitorPage"
    xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
    xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
    Title="FactoriesMonitorPage"
    FlowDirection="RightToLeft"
    NavigationPage.HasNavigationBar="False">
    <Grid RowDefinitions="*,3*,Auto">
        <Frame
            Margin="0,-40,0,0"
            Padding="20,35,20,75"
            BackgroundColor="{StaticResource PrimaryColor}"
            CornerRadius="35"
            HasShadow="False">
            <Grid ColumnDefinitions="*,Auto">
                <StackLayout VerticalOptions="Center">

                    <Label
                        FontFamily="{StaticResource ShabnameBold}"
                        FontSize="Title"
                        Text="صنعتــــ"
                        TextColor="{StaticResource AccentColor}" />
                    <Label
                        Margin="0,-8,0,0"
                        FontFamily="{StaticResource Shabname}"
                        FontSize="Caption"
                        JustifyText="True"
                        Text="پایش بار و انرژی مورد استفاده در مراکز صنعتی"
                        TextColor="{StaticResource AccentColor}" />
                </StackLayout>
                <Button
                    Grid.Column="1"
                    Margin="0,8,0,0"
                    Padding="0"
                    BackgroundColor="#90333333"
                    Command="{Binding BackNavigationCommand}"
                    CornerRadius="30"
                    FontFamily="{StaticResource MaterialFontFamily}"
                    FontSize="28"
                    HeightRequest="40"
                    HorizontalOptions="End"
                    Text="{x:Static model:MaterialIconFont.ChevronLeft}"
                    TextColor="White"
                    VerticalOptions="Center"
                    WidthRequest="40" />
            </Grid>
        </Frame>

        <Frame
            Grid.Row="1"
            Grid.RowSpan="2"
            Margin="0,-85,0,-25"
            Padding="0,0,0,40"
            CornerRadius="35"
            HasShadow="False">
            <Grid Margin="15,35,15,15" RowDefinitions="*,Auto">
                <StackLayout>
                    <StackLayout Margin="0,15">
                        <Grid
                            Margin="5,0"
                            ColumnDefinitions="Auto,Auto"
                            RowDefinitions="Auto,Auto">
                            <Frame
                                Grid.Row="0"
                                Grid.RowSpan="2"
                                Grid.Column="0"
                                Padding="12,6,12,8"
                                BackgroundColor="{StaticResource AccentColor}"
                                CornerRadius="35"
                                VerticalOptions="Center">
                                <Label
                                    Margin="-5,0"
                                    FontFamily="{StaticResource MaterialFontFamily}"
                                    FontSize="25"
                                    Text="{x:Static model:MaterialIconFont.CityVariantOutline}"
                                    TextColor="{StaticResource PrimaryColor}"
                                    VerticalOptions="Center" />
                            </Frame>
                            <Label
                                Grid.Row="0"
                                Grid.Column="1"
                                FontFamily="{StaticResource ShabnameBold}"
                                FontSize="Large"
                                Text="استان" />
                            <Label
                                Grid.Row="1"
                                Grid.Column="1"
                                Margin="0,-8,0,0"
                                FontFamily="{StaticResource Shabname}"
                                FontSize="Caption"
                                Text="استان مورد نظر خود را انتخاب کنید" />
                        </Grid>
                        <Frame Padding="25" CornerRadius="10" />
                    </StackLayout>
                    <StackLayout Margin="0,15">
                        <Grid
                            Margin="5,0"
                            ColumnDefinitions="Auto,Auto"
                            RowDefinitions="Auto,Auto">
                            <Frame
                                Grid.Row="0"
                                Grid.RowSpan="2"
                                Grid.Column="0"
                                Padding="12,6,12,8"
                                BackgroundColor="{StaticResource AccentColor}"
                                CornerRadius="35"
                                VerticalOptions="Center">
                                <Label
                                    Margin="-5,0"
                                    FontFamily="{StaticResource MaterialFontFamily}"
                                    FontSize="25"
                                    Text="{x:Static model:MaterialIconFont.Factory}"
                                    TextColor="{StaticResource PrimaryColor}"
                                    VerticalOptions="Center" />
                            </Frame>
                            <Label
                                Grid.Row="0"
                                Grid.Column="1"
                                FontFamily="{StaticResource ShabnameBold}"
                                FontSize="Large"
                                Text="صنعتــــ" />
                            <Label
                                Grid.Row="1"
                                Grid.Column="1"
                                Margin="0,-8,0,0"
                                FontFamily="{StaticResource Shabname}"
                                FontSize="Caption"
                                Text="صنعت مورد نظر خود را انتخاب کنید" />
                        </Grid>
                        <Frame Padding="25" CornerRadius="10" />
                    </StackLayout>
                    <StackLayout Margin="0,15">
                        <Grid
                            Margin="5,0"
                            ColumnDefinitions="Auto,Auto"
                            RowDefinitions="Auto,Auto">
                            <Frame
                                Grid.Row="0"
                                Grid.RowSpan="2"
                                Grid.Column="0"
                                Padding="12,6,12,8"
                                BackgroundColor="{StaticResource AccentColor}"
                                CornerRadius="35"
                                VerticalOptions="Center">
                                <Label
                                    Margin="-5,0"
                                    FontFamily="{StaticResource MaterialFontFamily}"
                                    FontSize="25"
                                    Text="{x:Static model:MaterialIconFont.AlphaFBoxOutline}"
                                    TextColor="{StaticResource PrimaryColor}"
                                    VerticalOptions="Center" />
                            </Frame>
                            <Label
                                Grid.Row="0"
                                Grid.Column="1"
                                FontFamily="{StaticResource ShabnameBold}"
                                FontSize="Large"
                                Text="صنایع" />
                            <Label
                                Grid.Row="1"
                                Grid.Column="1"
                                Margin="0,-8,0,0"
                                FontFamily="{StaticResource Shabname}"
                                FontSize="Caption"
                                Text="صنایع مورد نظر خود را انتخاب کنید" />
                        </Grid>
                        <Frame Padding="25" CornerRadius="10" />
                    </StackLayout>

                </StackLayout>


                <Frame
                    Grid.Row="1"
                    Padding="0"
                    BackgroundColor="{StaticResource AccentColor}"
                    CornerRadius="8">
                    <Grid ColumnDefinitions="Auto,*">
                        <Frame
                            Margin="-1"
                            Padding="20,20"
                            BackgroundColor="{StaticResource PrimaryColor}"
                            HorizontalOptions="Start">

                            <Label
                                Margin="-5,0"
                                FontFamily="{StaticResource MaterialFontFamily}"
                                FontSize="40"
                                Text="{x:Static model:MaterialIconFont.Information}"
                                TextColor="{StaticResource AccentColor}"
                                VerticalOptions="Center" />
                        </Frame>
                        <Label
                            Grid.Column="1"
                            Margin="0,0,-10,0"
                            FontFamily="{StaticResource ShabnameBold}"
                            FontSize="Large"
                            HorizontalOptions="Center"
                            Text="نمایش اطلاعاتـــ"
                            TextColor="{StaticResource Gray-100}"
                            VerticalOptions="Center" />
                    </Grid>
                    <Frame.GestureRecognizers>
                        <TapGestureRecognizer Tapped="CompleteTapGestureRecognizer_Tapped" />
                    </Frame.GestureRecognizers>
                </Frame>
            </Grid>
        </Frame>
    </Grid>
</ContentPage>