view login finished

pull/29/head
Roxane 2 years ago
parent 813938d6ef
commit 020dab1fef

@ -30,7 +30,7 @@ namespace Views
/* - Comment(ctrl-k + ctrl-c)/Uncomment(ctrl-k + ctrl-u) to change page - */
MainPage = new ViewRecette();
MainPage = new Login();
//MainPage = new MyPosts();
}
}

@ -0,0 +1,59 @@
<?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"
x:Class="Views.Login"
xmlns:local="clr-namespace:Views"
Title="Login"
x:Name="nlogin">
<VerticalStackLayout>
<local:MiniHeader
TitleMini="Connection"
NeedReturn="True"
HeightRequest="100"/>
<Grid ColumnDefinitions="350,*,350">
<Grid.RowDefinitions>
<RowDefinition Height="auto"/>
<RowDefinition Height="auto"/>
<RowDefinition Height="auto"/>
<RowDefinition Height="auto"/>
<RowDefinition Height="*"/>
<RowDefinition Height="*"/>
</Grid.RowDefinitions>
<Label Grid.Column="1"
Grid.Row="0"
Text="Login :"
FontAttributes="Bold"
FontSize="Medium"
Padding="0,50,0,10"
MinimumWidthRequest="200"/>
<Entry Grid.Column="1"
Grid.Row="1"
BackgroundColor="#D1E8E2"
Margin="0,0,0,20"/>
<Label Grid.Column="1"
Grid.Row="2"
Text="Mot de passe :"
FontAttributes="Bold"
FontSize="Medium"
Padding="0,50,0,10"
MinimumWidthRequest="200"/>
<Entry Grid.Column="1"
Grid.Row="3"
BackgroundColor="#D1E8E2"
Margin="0,0,0,50"/>
<CheckBox Grid.Column="1"
Grid.Row="4"/>
<Label Grid.Column="1"
Grid.Row="4"
Text="première connection"
Margin="50,0,0,0"
FontAttributes="Italic"/>
<Button BackgroundColor="#D1E8E2"
Grid.Column="1"
Grid.Row="5"/>
</Grid>
</VerticalStackLayout>
</ContentPage>

@ -0,0 +1,9 @@
namespace Views;
public partial class Login : ContentPage
{
public Login()
{
InitializeComponent();
}
}

@ -65,6 +65,9 @@
<MauiXaml Update="CustomHeader.xaml">
<Generator>MSBuild:Compile</Generator>
</MauiXaml>
<MauiXaml Update="Login.xaml">
<Generator>MSBuild:Compile</Generator>
</MauiXaml>
<MauiXaml Update="MiniHeader.xaml">
<Generator>MSBuild:Compile</Generator>
</MauiXaml>

Loading…
Cancel
Save