<Page x:Class="SASDesktop.Views.Portal"
      xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
      xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
      xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
      xmlns:root="clr-namespace:SASDesktop" 
      xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
      xmlns:local="clr-namespace:SASDesktop.Views"
      mc:Ignorable="d" 
      d:DesignHeight="600" d:DesignWidth="791"
      Title="Portal">
    <!--Страница портала функциональности-->
    <StackPanel Style="{StaticResource FormContainer}">
        <TextBlock 
            HorizontalAlignment="Center"
            Style="{StaticResource H2}"
            Text="Главная"/>

        <WrapPanel
            ItemHeight="256"
            ItemWidth="256"
            Orientation="Horizontal">

            <!--Водители-->
            <Border Style="{StaticResource Card}">
                <StackPanel Style="{StaticResource CardInner}">
                    <TextBlock
                        Style="{StaticResource H3}"
                        Text="Водители"/>
                    <Button
                        Content="Создать"
                        Style="{StaticResource CardButton}"
                        Command="{Binding Source={x:Static root:Navigation.ToDriverCreate}}"/>
                    <Button
                        Content="Просмотр списка"
                        Style="{StaticResource CardButton}"
                        Command="{Binding Source={x:Static root:Navigation.ToDriverList}}"/>
                </StackPanel>
            </Border>
            
            <!--Транспортные средства-->
            <Border Style="{StaticResource Card}">
                <StackPanel Style="{StaticResource CardInner}">
                    <TextBlock
                        Style="{StaticResource H3}"
                        Text="Транспортные средства"/>
                    <Button
                        Content="Создать"
                        Command="{Binding Source={x:Static root:Navigation.ToTransportCreate}}"
                        Margin="0,4"/>
                    <Button
                        Content="Просмотр списка"
                        Command="{Binding Source={x:Static root:Navigation.ToTransportList}}"
                        Margin="0,4"/>
                </StackPanel>
            </Border>
            
        </WrapPanel>
    </StackPanel>
</Page>
