|
|
@ -2,17 +2,16 @@
|
|
|
|
<ContentPage xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
|
|
|
|
<ContentPage xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
|
|
|
|
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
|
|
|
|
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
|
|
|
|
x:Class="CanYouBuildIt.Views.Login"
|
|
|
|
x:Class="CanYouBuildIt.Views.Login"
|
|
|
|
Title="Login">
|
|
|
|
Title="Login"
|
|
|
|
|
|
|
|
BackgroundColor="#26B4BE">
|
|
|
|
|
|
|
|
|
|
|
|
<AbsoluteLayout>
|
|
|
|
<AbsoluteLayout>
|
|
|
|
<Image Source="fond.jpg"/>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<VerticalStackLayout
|
|
|
|
<VerticalStackLayout
|
|
|
|
BackgroundColor="#320639"
|
|
|
|
BackgroundColor="#408097"
|
|
|
|
AbsoluteLayout.LayoutBounds="0.5,0.5,500,700"
|
|
|
|
AbsoluteLayout.LayoutBounds="0.5,0.5,500,700"
|
|
|
|
AbsoluteLayout.LayoutFlags="PositionProportional">
|
|
|
|
AbsoluteLayout.LayoutFlags="PositionProportional">
|
|
|
|
<Image Source="logo.png"
|
|
|
|
<Image Source="logocybi.png"
|
|
|
|
MaximumWidthRequest="90"
|
|
|
|
|
|
|
|
Margin="25,60,25,0"/>
|
|
|
|
Margin="25,60,25,0"/>
|
|
|
|
|
|
|
|
|
|
|
|
<Label Text="Connexion"
|
|
|
|
<Label Text="Connexion"
|
|
|
@ -22,32 +21,32 @@
|
|
|
|
FontAttributes="Bold"
|
|
|
|
FontAttributes="Bold"
|
|
|
|
FontSize="30"
|
|
|
|
FontSize="30"
|
|
|
|
WidthRequest="500"/>
|
|
|
|
WidthRequest="500"/>
|
|
|
|
<Entry
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<Entry BackgroundColor="#EEEEFF"
|
|
|
|
Margin="25,60,25,0"
|
|
|
|
Margin="25,60,25,0"
|
|
|
|
x:Name="Nom"
|
|
|
|
x:Name="Nom"
|
|
|
|
Placeholder="Nom"
|
|
|
|
Placeholder="Nom"
|
|
|
|
PlaceholderColor="#BF730A"
|
|
|
|
PlaceholderColor="Black"
|
|
|
|
HeightRequest="20"
|
|
|
|
HeightRequest="20"/>
|
|
|
|
BackgroundColor="#BDA7C1" />
|
|
|
|
|
|
|
|
<Entry
|
|
|
|
<Entry BackgroundColor="#EEEEFF"
|
|
|
|
Margin="25,60,25,0"
|
|
|
|
Margin="25,60,25,0"
|
|
|
|
x:Name="Mdp"
|
|
|
|
x:Name="Mdp"
|
|
|
|
IsPassword="True"
|
|
|
|
IsPassword="True"
|
|
|
|
Placeholder="Mot de Passe"
|
|
|
|
Placeholder="Mot de Passe"
|
|
|
|
PlaceholderColor="#BF730A"
|
|
|
|
PlaceholderColor="Black"
|
|
|
|
HeightRequest="20"
|
|
|
|
HeightRequest="20"/>
|
|
|
|
BackgroundColor="#BDA7C1"/>
|
|
|
|
|
|
|
|
<Entry
|
|
|
|
<Entry BackgroundColor="#EEEEFF"
|
|
|
|
BackgroundColor="#BDA7C1"
|
|
|
|
|
|
|
|
Margin="25,60,25,0"
|
|
|
|
Margin="25,60,25,0"
|
|
|
|
x:Name="Adresse"
|
|
|
|
x:Name="Adresse"
|
|
|
|
Placeholder="Mail"
|
|
|
|
Placeholder="Mail"
|
|
|
|
PlaceholderColor="#BF730A"
|
|
|
|
PlaceholderColor="Black"
|
|
|
|
HeightRequest="20"/>
|
|
|
|
HeightRequest="20"/>
|
|
|
|
|
|
|
|
|
|
|
|
<HorizontalStackLayout>
|
|
|
|
<HorizontalStackLayout>
|
|
|
|
<Button
|
|
|
|
<Button BackgroundColor="DimGrey"
|
|
|
|
BackgroundColor="#882297"
|
|
|
|
|
|
|
|
Margin="220,60,0,0"
|
|
|
|
Margin="220,60,0,0"
|
|
|
|
x:Name="BtnValider"
|
|
|
|
x:Name="BtnValider"
|
|
|
|
Text="LOGIN"
|
|
|
|
Text="LOGIN"
|
|
|
@ -55,7 +54,9 @@
|
|
|
|
TextColor="White"
|
|
|
|
TextColor="White"
|
|
|
|
Clicked="BoutonValider"
|
|
|
|
Clicked="BoutonValider"
|
|
|
|
HorizontalOptions="Center" />
|
|
|
|
HorizontalOptions="Center" />
|
|
|
|
<Button Margin="90,60,0,0"
|
|
|
|
|
|
|
|
|
|
|
|
<Button BackgroundColor="DimGrey"
|
|
|
|
|
|
|
|
Margin="90,60,0,0"
|
|
|
|
x:Name="btn_insc"
|
|
|
|
x:Name="btn_insc"
|
|
|
|
Text="inscription"
|
|
|
|
Text="inscription"
|
|
|
|
FontAttributes="Bold"
|
|
|
|
FontAttributes="Bold"
|
|
|
@ -66,7 +67,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
<HorizontalStackLayout>
|
|
|
|
<HorizontalStackLayout>
|
|
|
|
|
|
|
|
|
|
|
|
<Label Text="ERREUR ! les cases Nom et Mot de Passe doivent etre remplie."
|
|
|
|
<Label Text="WARNING ! Les champs Nom et Mot de Passe sont obligatoire."
|
|
|
|
IsVisible="false"
|
|
|
|
IsVisible="false"
|
|
|
|
x:Name="error"
|
|
|
|
x:Name="error"
|
|
|
|
BackgroundColor="Red"
|
|
|
|
BackgroundColor="Red"
|
|
|
@ -76,7 +77,7 @@
|
|
|
|
HorizontalOptions="Center"
|
|
|
|
HorizontalOptions="Center"
|
|
|
|
WidthRequest="500"/>
|
|
|
|
WidthRequest="500"/>
|
|
|
|
|
|
|
|
|
|
|
|
<Label Text="ERREUR ! mauvais mdp et nom."
|
|
|
|
<Label Text="Le Nom et/ou le mdp sont erroné."
|
|
|
|
IsVisible="false"
|
|
|
|
IsVisible="false"
|
|
|
|
x:Name="wrong"
|
|
|
|
x:Name="wrong"
|
|
|
|
BackgroundColor="Red"
|
|
|
|
BackgroundColor="Red"
|
|
|
@ -86,7 +87,7 @@
|
|
|
|
HorizontalOptions="Center"
|
|
|
|
HorizontalOptions="Center"
|
|
|
|
WidthRequest="500"/>
|
|
|
|
WidthRequest="500"/>
|
|
|
|
|
|
|
|
|
|
|
|
<Label Text="mot de passe et nom VALIDE."
|
|
|
|
<Label Text="Nom et MDP valide."
|
|
|
|
IsVisible="false"
|
|
|
|
IsVisible="false"
|
|
|
|
x:Name="valide"
|
|
|
|
x:Name="valide"
|
|
|
|
BackgroundColor="Green"
|
|
|
|
BackgroundColor="Green"
|
|
|
|