<?xml version="1.0" encoding="UTF-8"?>
<ContentPage
    BackgroundColor="#4d4c4b"
    xmlns="http://xamarin.com/schemas/2014/forms"
    xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
    x:Class="TheGameExtreme.view.HomePage">
    <StackLayout BackgroundColor="Transparent">
        <Grid>
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="*"/>
                <ColumnDefinition Width="*"/>
                <ColumnDefinition Width="*"/>
            </Grid.ColumnDefinitions>
            <Grid.RowDefinitions>
                <RowDefinition Height="*"/>
                <RowDefinition Height="*"/>
                <RowDefinition Height="*"/>
                <RowDefinition Height="*"/>
            </Grid.RowDefinitions>

            <Label Text="THE GAME" TextColor="DarkBlue"
                   Grid.Row="0" Grid.Column="1" 
                   HorizontalTextAlignment="Center"  
                   FontSize="28"                   
                   VerticalTextAlignment="Center"/>

            <ImageButton Source="Engrenage.jpeg"
                    Grid.Row="0" Grid.Column="2" 
                    VerticalOptions="CenterAndExpand" 
                    HorizontalOptions="End" 
                    HeightRequest="60" 
                    WidthRequest="68"
                         
                         Clicked="OpenSetting"/>
            
            <Button Text="Solo" Grid.Row="1" Grid.Column="1" 
                    HorizontalOptions="Center" 
                    WidthRequest="150" 
                    HeightRequest="60" 
                    VerticalOptions="Center"
                    Clicked="OpenGame"/>
            
            <Button Text="Multijoueur" Grid.Row="2" Grid.Column="1" 
                    HorizontalOptions="Center" 
                    VerticalOptions="Center"
                    HeightRequest="60" 
                    WidthRequest="180"
                    Clicked="OpenMultiPlayerMode"/>
            
            <Button Text="Connexion en ligne" Grid.Row="3" Grid.Column="1"
                    HorizontalOptions="Center" 
                    VerticalOptions="Center" 
                    WidthRequest="230"
                    HeightRequest="60"/>
        </Grid>  
    </StackLayout>
</ContentPage>
