You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

145 lines
4.9 KiB

<?xml version="1.0" encoding="utf-8" ?>
<ContentPage xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
xmlns:model="clr-namespace:CanYouBuildIt.Model"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
x:Class="CanYouBuildIt.Views.Acceuil"
Title="Can You Build It"
BackgroundColor="#26B4BE">
<VerticalStackLayout>
<Grid>
<Grid.RowDefinitions>
<RowDefinition />
</Grid.RowDefinitions>
<Grid.ColumnDefinitions>
<ColumnDefinition />
<ColumnDefinition />
<ColumnDefinition />
</Grid.ColumnDefinitions>
<Image Source="logoapp.png"
Grid.Row="0" Grid.Column="1"
MaximumHeightRequest="150"/>
<Button BackgroundColor="DimGrey"
Clicked="NavLogin"
Grid.Row="0" Grid.Column="2"
HorizontalOptions="End"
Margin="0,0,75,0"
MaximumHeightRequest="50"
Text="Login"
TextColor="Snow"
x:Name="Log"/>
</Grid>
<Grid Margin="0,50,0,0">
<Grid.RowDefinitions>
<RowDefinition />
<RowDefinition Height="1"/>
</Grid.RowDefinitions>
<Grid.ColumnDefinitions>
<ColumnDefinition />
<ColumnDefinition />
<ColumnDefinition />
<ColumnDefinition />
<ColumnDefinition />
<ColumnDefinition />
</Grid.ColumnDefinitions>
<Image Source="pc1.png"
Grid.Row="0" Grid.Column="0"
HeightRequest="200"
/>
<Image Source="pc3.png"
Grid.Row="0" Grid.Column="2"
HeightRequest="200"
/>
<Image Source="pc3.png"
Grid.Row="0" Grid.Column="4"
HeightRequest="200"
/>
<Image Source="pc2.png"
Grid.Row="1" Grid.Column="1"
HeightRequest="200"
/>
<Image Source="pc4.png"
Grid.Row="1" Grid.Column="3"
HeightRequest="200"
/>
<Image Source="pc2.png"
Grid.Row="1" Grid.Column="5"
HeightRequest="200"
/>
</Grid>
<Grid Margin="0,250">
<Grid.RowDefinitions>
<RowDefinition />
<RowDefinition />
<RowDefinition />
</Grid.RowDefinitions>
<Grid.ColumnDefinitions>
<ColumnDefinition />
<ColumnDefinition />
<ColumnDefinition />
<ColumnDefinition />
<ColumnDefinition />
<ColumnDefinition />
<ColumnDefinition />
<ColumnDefinition />
</Grid.ColumnDefinitions>
<Button BackgroundColor="DimGrey"
Clicked="NavLogin"
Grid.Row="0" Grid.Column="2"
HorizontalOptions="Center"
Text="Configurateur"
TextColor="Snow"
x:Name="Config"/>
<Button BackgroundColor="DimGrey"
Clicked="NavFav"
Grid.Row="0" Grid.Column="5"
HorizontalOptions="Center"
Text="Favoris"
TextColor="Snow"
x:Name="Fav"/>
<Label Text="{Binding listUtil[0].username}"/>
<Button BackgroundColor="DimGrey"
Clicked="ToQuit"
Grid.Row="1" Grid.Column="1"
HorizontalOptions="Center"
Text="Quitter"
TextColor="Snow"
x:Name="Quit"/>
<Button BackgroundColor="DimGrey"
Clicked="NavCreds"
Grid.Row="1" Grid.Column="6"
HorizontalOptions="Center"
Text="Credits"
TextColor="Snow"
x:Name="Creds"/>
</Grid>
<Label BackgroundColor="Red"
FontAttributes="Bold"
HorizontalOptions="Center"
IsVisible="false"
Margin="0,-125"
Text="WARNING ! Vous devez vous connecter pour acceder au favoris."
WidthRequest="500"
x:Name="aConnecter"/>
</VerticalStackLayout>
</ContentPage>