Fusion branche Accueil avec branche Master

master
Pauline PRADY 1 year ago
commit d612ff260a

@ -9,3 +9,4 @@ Mastermind en C#, MAUI, et .net
BARBOSA Céleste
PRADY Pauline
TURPIN--ETIENNE Camille

Binary file not shown.

After

Width:  |  Height:  |  Size: 62 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.6 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 879 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.5 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 613 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.7 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 696 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 386 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 362 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 241 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 384 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 450 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 641 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 568 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 466 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 870 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 401 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 545 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 641 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 486 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 392 KiB

@ -5,12 +5,15 @@
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
xmlns:local="clr-namespace:mastermind"
xmlns:pages="clr-namespace:mastermind.Pages"
Shell.FlyoutBehavior="Disabled"
Title="mastermind">
Shell.FlyoutBehavior="Flyout"
Title="Mastermind">
<ShellContent
Title="Home"
ContentTemplate="{DataTemplate pages:Accueil}"
Route="pages:Accueil" />
<ShellContent
Title="Connexion"
ContentTemplate="{DataTemplate pages:ConnexionPage}" />
</Shell>

@ -1,36 +0,0 @@
<?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="mastermind.MainPage">
<ScrollView>
<VerticalStackLayout
Padding="30,0"
Spacing="25">
<Image
Source="dotnet_bot.png"
HeightRequest="185"
Aspect="AspectFit"
SemanticProperties.Description="dot net bot in a race car number eight" />
<Label
Text="Hello, World!"
Style="{StaticResource Headline}"
SemanticProperties.HeadingLevel="Level1" />
<Label
Text="Welcome to &#10;.NET Multi-platform App UI"
Style="{StaticResource SubHeadline}"
SemanticProperties.HeadingLevel="Level2"
SemanticProperties.Description="Welcome to dot net Multi platform App U I" />
<Button
x:Name="CounterBtn"
Text="Click me"
SemanticProperties.Hint="Counts the number of times you click"
Clicked="OnCounterClicked"
HorizontalOptions="Fill" />
</VerticalStackLayout>
</ScrollView>
</ContentPage>

@ -1,25 +0,0 @@
namespace mastermind
{
public partial class MainPage : ContentPage
{
int count = 0;
public MainPage()
{
InitializeComponent();
}
private void OnCounterClicked(object sender, EventArgs e)
{
count++;
if (count == 1)
CounterBtn.Text = $"Clicked {count} time";
else
CounterBtn.Text = $"Clicked {count} times";
SemanticScreenReader.Announce(CounterBtn.Text);
}
}
}

@ -0,0 +1,21 @@
<?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:Views="clr-namespace:mastermind.Views"
x:Class="mastermind.Pages.ConnexionPage"
Title="Connexion">
<VerticalStackLayout>
<Label
Text="JOUEURS"
HorizontalOptions="Center"
FontSize="Header"
Margin="0, 0, 0, 50"/>
<Views:UsernameEntryView/>
<Views:UsernameEntryView/>
<Button
Text="Se connecter"
Margin="200, 100, 200, 0"/>
</VerticalStackLayout>
</ContentPage>

@ -0,0 +1,9 @@
namespace mastermind.Pages;
public partial class ConnexionPage : ContentPage
{
public ConnexionPage()
{
InitializeComponent();
}
}

@ -4,6 +4,7 @@
xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml">
<Style TargetType="ActivityIndicator">
<Setter Property="Color" Value="{AppThemeBinding Light={StaticResource Primary}, Dark={StaticResource White}}" />
</Style>

@ -0,0 +1,24 @@
<?xml version="1.0" encoding="utf-8" ?>
<ContentView xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
x:Class="mastermind.Views.UsernameEntryView">
<Grid
Margin="0, 50"
ColumnDefinitions="auto, *, 8*, *"
RowDefinitions="auto">
<Label
Text="Joueur X"
FontSize="Large"
Margin="50, 0, 0, 0"
VerticalOptions="Center"
HorizontalOptions="Center"/>
<Entry
Grid.Column="2"
FontSize="Medium"
Margin="50, 0"/>
</Grid>
</ContentView>

@ -0,0 +1,9 @@
namespace mastermind.Views;
public partial class UsernameEntryView : ContentView
{
public UsernameEntryView()
{
InitializeComponent();
}
}

@ -62,6 +62,24 @@
<PackageReference Include="Microsoft.Extensions.Logging.Debug" Version="8.0.0" />
</ItemGroup>
<ItemGroup>
<Compile Update="Connexion.xaml.cs">
<DependentUpon>Connexion.xaml</DependentUpon>
</Compile>
<Compile Update="Pages\connexionPage.xaml.cs">
<DependentUpon>ConnexionPage.xaml</DependentUpon>
</Compile>
</ItemGroup>
<ItemGroup>
<MauiXaml Update="Pages\ConnexionPage.xaml">
<Generator>MSBuild:Compile</Generator>
</MauiXaml>
<MauiXaml Update="Views\UsernameEntry.xaml">
<Generator>MSBuild:Compile</Generator>
</MauiXaml>
</ItemGroup>
<ItemGroup>
<MauiXaml Update="Pages\Accueil.xaml">
<Generator>MSBuild:Compile</Generator>

Loading…
Cancel
Save