Page d'accueil mise en place des trois boutons

master
Pauline PRADY 1 year ago
parent 663fd82809
commit 97933588ad

@ -1,24 +1,41 @@
<?xml version="1.0" encoding="utf-8" ?>
<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="mastermind.Pages.Accueil" x:Class="mastermind.Pages.Accueil"
Title="Accueil"> Title="Accueil">
<VerticalStackLayout>
<Label
Text="MASTERMIND"
VerticalOptions="Center"
HorizontalOptions="Center"
FontSize="Header" />
<Button Text="Perso" <Grid>
BackgroundColor="BlueViolet" <Grid.RowDefinitions>
HeightRequest="40" <RowDefinition Height="*" />
Margin="50,0" </Grid.RowDefinitions>
/>
<!-- Titre -->
<Button Text="JOUER" <Label Text="Mastermind"
BackgroundColor="LightSkyBlue" FontSize="24"
Margin="50,0" HorizontalOptions="Center"
/> VerticalOptions="Center"/>
</VerticalStackLayout>
</ContentPage> <!-- Boutons -->
<Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="*" />
<ColumnDefinition Width="*" />
</Grid.ColumnDefinitions>
<!-- Bouton en haut à droite -->
<Button Text="Bouton 1"
HorizontalOptions="End"
VerticalOptions="Start"
Grid.Column="1"/>
<!-- Bouton en bas à gauche -->
<Button Text="Bouton 3"
HorizontalOptions="Start"
VerticalOptions="End"/>
</Grid>
<!-- Bouton en bas à droite -->
<Button Text="Bouton 2"
HorizontalOptions="End"
VerticalOptions="End"/>
</Grid>
</ContentPage>

Loading…
Cancel
Save