|
|
@ -3,7 +3,7 @@
|
|
|
|
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
|
|
|
|
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
|
|
|
|
xmlns:toolkit="http://schemas.microsoft.com/dotnet/2022/maui/toolkit"
|
|
|
|
xmlns:toolkit="http://schemas.microsoft.com/dotnet/2022/maui/toolkit"
|
|
|
|
xmlns:views="clr-namespace:GameAtlas.Views.Composants"
|
|
|
|
xmlns:views="clr-namespace:GameAtlas.Views.Composants"
|
|
|
|
x:Class="GameAtlas.Views.PageAcceuil"
|
|
|
|
x:Class="GameAtlas.Views.PageAccueil"
|
|
|
|
Title="ACCUEIL">
|
|
|
|
Title="ACCUEIL">
|
|
|
|
|
|
|
|
|
|
|
|
<Grid>
|
|
|
|
<Grid>
|
|
|
@ -23,7 +23,7 @@
|
|
|
|
RowDefinitions="auto, auto, auto, auto, auto, auto, *">
|
|
|
|
RowDefinitions="auto, auto, auto, auto, auto, auto, *">
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<Grid HorizontalOptions="Start" Padding="25,20,0,20">
|
|
|
|
<Grid HorizontalOptions="Start" Padding="25,20,0,20" IsVisible="{Binding IsConnected}">
|
|
|
|
<HorizontalStackLayout Spacing="10">
|
|
|
|
<HorizontalStackLayout Spacing="10">
|
|
|
|
<Frame Grid.Row="0" WidthRequest="50" HeightRequest="50" CornerRadius="25" VerticalOptions="Start" >
|
|
|
|
<Frame Grid.Row="0" WidthRequest="50" HeightRequest="50" CornerRadius="25" VerticalOptions="Start" >
|
|
|
|
<Frame.Background>
|
|
|
|
<Frame.Background>
|
|
|
@ -35,11 +35,12 @@
|
|
|
|
</LinearGradientBrush>
|
|
|
|
</LinearGradientBrush>
|
|
|
|
</Frame.Background>
|
|
|
|
</Frame.Background>
|
|
|
|
<Frame HeightRequest="48" WidthRequest="48" CornerRadius="24" VerticalOptions="Center" HorizontalOptions="Center" IsClippedToBounds="True">
|
|
|
|
<Frame HeightRequest="48" WidthRequest="48" CornerRadius="24" VerticalOptions="Center" HorizontalOptions="Center" IsClippedToBounds="True">
|
|
|
|
<Image Source="{Binding AccueilManager.ConnectedUser.PhotoProfil}" Aspect="AspectFill"/>
|
|
|
|
<Image Source="{Binding ConnectedUser.PhotoProfil}" Aspect="AspectFill"/>
|
|
|
|
</Frame>
|
|
|
|
</Frame>
|
|
|
|
</Frame>
|
|
|
|
</Frame>
|
|
|
|
<Label Text="{Binding AccueilManager.ConnectedUser.Pseudo}" FontSize="18" FontFamily="AladinRegular" TextColor="{StaticResource Black}" VerticalTextAlignment="Center"/>
|
|
|
|
<Label Text="{Binding ConnectedUser.Pseudo}" FontSize="18" FontFamily="AladinRegular" TextColor="{StaticResource Black}" VerticalTextAlignment="Center"/>
|
|
|
|
</HorizontalStackLayout>
|
|
|
|
</HorizontalStackLayout>
|
|
|
|
|
|
|
|
|
|
|
|
</Grid>
|
|
|
|
</Grid>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -52,7 +53,7 @@
|
|
|
|
/>
|
|
|
|
/>
|
|
|
|
|
|
|
|
|
|
|
|
<ScrollView Orientation="Horizontal" Grid.Row="4" Padding="20,0,20,0" HorizontalOptions="FillAndExpand" VerticalOptions="FillAndExpand" HorizontalScrollBarVisibility="Never">
|
|
|
|
<ScrollView Orientation="Horizontal" Grid.Row="4" Padding="20,0,20,0" HorizontalOptions="FillAndExpand" VerticalOptions="FillAndExpand" HorizontalScrollBarVisibility="Never">
|
|
|
|
<HorizontalStackLayout BindableLayout.ItemsSource="{Binding AccueilManager.ListJeuxAffiches}" Spacing="15">
|
|
|
|
<HorizontalStackLayout BindableLayout.ItemsSource="{Binding ListJeuxAffiches}" Spacing="15">
|
|
|
|
<BindableLayout.ItemTemplate>
|
|
|
|
<BindableLayout.ItemTemplate>
|
|
|
|
<DataTemplate>
|
|
|
|
<DataTemplate>
|
|
|
|
<Grid>
|
|
|
|
<Grid>
|
|
|
@ -106,7 +107,7 @@
|
|
|
|
/>
|
|
|
|
/>
|
|
|
|
|
|
|
|
|
|
|
|
<Grid Grid.Row="6" Padding="0,0,0,20">
|
|
|
|
<Grid Grid.Row="6" Padding="0,0,0,20">
|
|
|
|
<VerticalStackLayout Spacing="30" BindableLayout.ItemsSource="{Binding AccueilManager.TopRatedGames}">
|
|
|
|
<VerticalStackLayout Spacing="30" BindableLayout.ItemsSource="{Binding TopRatedGames}">
|
|
|
|
<BindableLayout.ItemTemplate>
|
|
|
|
<BindableLayout.ItemTemplate>
|
|
|
|
<DataTemplate>
|
|
|
|
<DataTemplate>
|
|
|
|
<Grid ColumnDefinitions="auto,*,auto">
|
|
|
|
<Grid ColumnDefinitions="auto,*,auto">
|
|
|
|