<?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:toolkit="http://schemas.microsoft.com/dotnet/2022/maui/toolkit"
             x:Class="Stim.AddGamePage"
             Title="Ajouter un jeu"
             Background="{StaticResource Secondary}">
    
    <ScrollView>
        <Grid>
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="*"/>
                <ColumnDefinition Width="10*"/>
                <ColumnDefinition Width="*"/>
            </Grid.ColumnDefinitions>

            <Grid.RowDefinitions>
                <RowDefinition Height="auto"/>
                <RowDefinition Height="auto"/>
                <RowDefinition Height="auto"/>
                <RowDefinition Height="auto"/>
                <RowDefinition Height="auto"/>
                <RowDefinition Height="auto"/>
                <RowDefinition Height="*"/>
            </Grid.RowDefinitions>

            <VerticalStackLayout Style="{StaticResource pageBorder}" Grid.Column="0"/>
            <VerticalStackLayout Background="{StaticResource Tertiary}" Grid.Column="1" Grid.RowSpan="7"/>
            <VerticalStackLayout Style="{StaticResource pageBorder}" Grid.Column="4"/>

            <VerticalStackLayout Grid.Column="1">
                <Label Text="Nom" FontSize="30" HorizontalOptions="Center"/>
                <Entry x:Name="NameEntry"/>
            </VerticalStackLayout>
            <VerticalStackLayout Grid.Column="1" Grid.Row="1">
                <Label Text="Description" FontSize="30" HorizontalOptions="Center"/>
                <Editor x:Name="DescriptionEntry" HeightRequest="200" Margin="10,0,10,0"/>
            </VerticalStackLayout>
            <VerticalStackLayout Grid.Column="1" Grid.Row="2" Padding="0,150,0,0">
                <Label Text="Année de sortie" FontSize="30" HorizontalOptions="Center"/>
                <Entry x:Name="YearEntry"/>
            </VerticalStackLayout>
            <VerticalStackLayout Grid.Column="1" Grid.Row="3" Padding="0,150,0,0">
                <Label Text="Jaquette" FontSize="30" HorizontalOptions="Center"/>
                <Button Margin="5" Clicked="Button_Clicked"/>
            </VerticalStackLayout>
            <VerticalStackLayout Grid.Column="1" Grid.Row="4" Padding="0,150,0,0">
                <Grid>
                    <Grid.RowDefinitions>
                        <RowDefinition Height="*"/>
                        <RowDefinition Height="auto"/>
                    </Grid.RowDefinitions>
                    <Grid.ColumnDefinitions>
                        <ColumnDefinition Width="*"/>
                        <ColumnDefinition Width="*"/>
                        <ColumnDefinition Width="*"/>
                    </Grid.ColumnDefinitions>

                    <Label Grid.ColumnSpan="3" Text="Tags" FontSize="30" HorizontalOptions="Center"/>
                    <Entry Grid.Row="1" x:Name="TagEntry1"/>
                    <Entry Grid.Row="1" Grid.Column="1" x:Name="TagEntry2"/>
                    <Entry Grid.Row="1" Grid.Column="2" x:Name="TagEntry3"/>
                </Grid>
                <Entry Grid.Row="5" Grid.Column="1" x:Name="LinkEntry"/>
            </VerticalStackLayout>
            <Button HorizontalOptions="Center" VerticalOptions="Center" Grid.Row="6" Grid.Column="1" Margin="5" FontSize="30" Text="Ajouter" Background="{StaticResource Transparent}" BorderWidth="3" BorderColor="{StaticResource Secondary}" Clicked="AddGame"/>
        </Grid>
    </ScrollView>
</ContentPage>