<?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="WorkFlowCheck.MAUI.MainPage"
             Title="Főmenü"
             BackgroundColor="#f0f0f0">

    <Grid RowDefinitions="Auto, * , Auto" Padding="30,0">

        <ScrollView Grid.Row="1"
                    Padding="25">
            <VerticalStackLayout Spacing="25">
                <Frame BorderColor="Gray" 
                       Padding="5" 
                       CornerRadius="10"
                       Margin="1" 
                       HasShadow="True">
                    <VerticalStackLayout>
                        <Label Text="Alapműveletek" FontAttributes="Bold" FontSize="Medium" HorizontalOptions="Center" />
                        <Button
                            x:Name="ButtonSync" Margin="5"
                            Text="Adatok szinkronizálása" 
                            SemanticProperties.Hint="Adatok szinkronizálása"
                            Clicked="OnButtonSync"
                            HorizontalOptions="Fill" />
                        <Button
                            x:Name="ButtonBase" Margin="5"
                            Text="Törzsadatok" 
                            SemanticProperties.Hint="Törzsadatok"
                            Clicked="OnButtonBaseStock"
                            HorizontalOptions="Fill" />
                        <Button
                            x:Name="NFCTestBtn" Margin="5"
                            Text="NFC olvasó teszt" 
                            SemanticProperties.Hint="NFC olvasó teszt"
                            Clicked="OnButtonNFCTest"
                            HorizontalOptions="Fill" />
                    </VerticalStackLayout>
                </Frame>
                <Frame BorderColor="Gray" 
                       Padding="5" 
                       Margin="1" 
                       CornerRadius="10"
                       HasShadow="True">
                    <VerticalStackLayout>
                        <Label Text="Ellenőrzés" FontAttributes="Bold" FontSize="Medium" HorizontalOptions="Center" />
                        <Button
                            x:Name="ButtonCheckList" Margin="5"
                            Text="Ellenőrzési feladatok" 
                            SemanticProperties.Hint="Ellenőrzési feadatok"
                            Clicked="OnButtonCheckList"
                            HorizontalOptions="Fill" />
                    </VerticalStackLayout>
                </Frame>

            </VerticalStackLayout>
        </ScrollView>

        <Frame Grid.Row="2" 
               BorderColor="Gray" 
               CornerRadius="10"
               Padding="5" 
               Margin="1" 
               HasShadow="True">
            <Button
                x:Name="LogoutBtn" Margin="5"
                BackgroundColor="DarkRed"
                Text="Kijelentkezés"
                SemanticProperties.Hint="Kijelentkezés"
                Clicked="OnButtonLogout"
                HorizontalOptions="Fill"
                VerticalOptions="Center">
                <Button.ImageSource>
                    <FontImageSource FontFamily="FontAwesome" Glyph="" Size="20" />
                </Button.ImageSource>
            </Button>
        </Frame>

    </Grid>

</ContentPage>
