<?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="GameAtlas.Views.PageConnexion"
             Title="ECRAN DE CONNEXION" WidthRequest="390" HeightRequest="844"
             BackgroundColor="#FAD05D">

    <VerticalStackLayout>

        <MauiImage Include="Resources\Images\logo.png" BaseSize="376,678" />

        <Label
            Text="Se Connecter"
            Margin="10"
        />

        <Entry x:Name="pseudonyme" Placeholder="Nom d'utilisateur" TextChanged="OnEntryTextChanged" Completed="OnEntryCompleted" ClearButtonVisibility="WhileEditing"/>

        <Entry x:Name="password" Placeholder="Mot de passe" IsPassword="True" TextChanged="OnEntryTextChanged" Completed="OnEntryCompleted" ClearButtonVisibility="WhileEditing"/>

        <Button Text="Connexion"
                VerticalOptions="Center"
                HorizontalOptions="Center"
                Clicked="OnButtonClicked"
        />

        <HorizontalStackLayout>

            <Label>
                <Label.FormattedText>
                    <FormattedString>
                        <x:HyperlinkSpan Text="Mot de Passe oublié"
                                         Url=""
                        />
                    </FormattedString>
                </Label.FormattedText>
            </Label>

            <Label>
                <Label.FormattedText>
                    <FormattedString>
                        <x:HyperlinkSpan Text="S'inscrire >"
                                         Url=""
                        />
                    </FormattedString>
                </Label.FormattedText>
            </Label>

        </HorizontalStackLayout>

    </VerticalStackLayout>
</ContentPage>