Légères modifications de la Page Parcourir et Page Accueil

pull/63/head
Rémi LAVERGNE 2 years ago
parent 337434215a
commit 0e6ebdc6b5

Binary file not shown.

After

Width:  |  Height:  |  Size: 28 KiB

@ -26,34 +26,29 @@
RowDefinitions="auto, auto, auto, auto, auto, auto, *"> RowDefinitions="auto, auto, auto, auto, auto, auto, *">
<HorizontalStackLayout> <Grid HorizontalOptions="Start" Padding="25,20,0,20">
<Frame Margin="10" <HorizontalStackLayout Spacing="10">
BorderColor="DarkViolet" <Frame Grid.Row="0" WidthRequest="50" HeightRequest="50" CornerRadius="25" VerticalOptions="Start" >
CornerRadius="50" <Frame.Background>
HeightRequest="50" <LinearGradientBrush EndPoint="1,0">
WidthRequest="50" <GradientStop Color="#C57CFF"
IsClippedToBounds="True" Offset="0.1" />
HorizontalOptions="Start" <GradientStop Color="#8F00FF"
VerticalOptions="Center" Offset="1.0" />
Grid.Row="1" </LinearGradientBrush>
/> </Frame.Background>
<Frame HeightRequest="48" WidthRequest="48" CornerRadius="24" VerticalOptions="Center" HorizontalOptions="Center" IsClippedToBounds="True">
<Label <Image Source="default_user.png" Aspect="AspectFill"/>
Text="{Binding ConnectedUser.Pseudo}" </Frame>
FontFamily="AladinRegular" </Frame>
FontSize="18" <Label Text="{Binding AccueilManager.ConnectedUser.Pseudo}" FontSize="18" FontFamily="AladinRegular" TextColor="{StaticResource Black}" VerticalTextAlignment="Center"/>
Grid.Row="1"
HorizontalOptions="Start"
VerticalOptions="Center">
<Label.GestureRecognizers>
<TapGestureRecognizer Tapped="OnProfil_Tapped"/>
</Label.GestureRecognizers>
</Label>
</HorizontalStackLayout> </HorizontalStackLayout>
</Grid>
<StackLayout HorizontalOptions="Center" VerticalOptions="Center" Grid.Row="2"> <StackLayout HorizontalOptions="Center" VerticalOptions="Center" Grid.Row="2">
<SearchBar Placeholder="Rechercher" BackgroundColor="#D9D9D9" TextColor="Black"/> <Frame HeightRequest="40" WidthRequest="250" CornerRadius="8">
<SearchBar Placeholder="Rechercher" TextColor="Black" BackgroundColor="#D9D9D9"/>
</Frame>
</StackLayout> </StackLayout>
<Label <Label
@ -95,11 +90,15 @@
HeightRequest="20" HeightRequest="20"
WidthRequest="20" WidthRequest="20"
Margin="23,125,0,0"/> Margin="23,125,0,0"/>
<Label Text="{Binding NbTelechargement}"
TextColor="White" <Label FontSize="8" FontFamily="PTSansCaption-Bold" TextColor="{StaticResource White}" Padding="46,138,0,0">
FontFamily="PTSansCaption-Bold" <Label.FormattedText>
FontSize="8" <FormattedString>
Padding="46,138,0,0"/> <Span Text="{Binding NbTelechargement}"/>
<Span Text="k de téléchargements"/>
</FormattedString>
</Label.FormattedText>
</Label>
</Grid> </Grid>
</DataTemplate> </DataTemplate>
</BindableLayout.ItemTemplate> </BindableLayout.ItemTemplate>

@ -21,23 +21,22 @@
<SearchBar Placeholder="Rechercher" <StackLayout Padding="0,30,0,0" HorizontalOptions="Center" VerticalOptions="Center" Grid.Row="2">
BackgroundColor="White" <Frame HeightRequest="40" WidthRequest="300" CornerRadius="8">
TextColor="Black" <SearchBar Placeholder="Rechercher" TextColor="Black" BackgroundColor="#D9D9D9" TextChanged="SearchBar_TextChanged"/>
HorizontalOptions="Center" </Frame>
TextChanged="SearchBar_TextChanged" </StackLayout>
/>
<Label <Label
Text="Rechercher" Text="Rechercher"
FontFamily="PTSansCBold" FontFamily="PTSansCBold"
FontSize="24" FontSize="24"
Grid.Row="3" Grid.Row="3"
Padding="20" Padding="25"
/> />
<Grid> <Grid>
<CollectionView ItemsSource="{Binding ListJeux}" Margin="0,10,0,0" VerticalScrollBarVisibility="Never" x:Name="searchResults"> <CollectionView ItemsSource="{Binding ListJeux}" Margin="25,0,25,0" VerticalScrollBarVisibility="Never" x:Name="searchResults">
<CollectionView.ItemTemplate> <CollectionView.ItemTemplate>
<DataTemplate> <DataTemplate>
<Border HeightRequest="97.5" StrokeShape="RoundRectangle 5" VerticalOptions="Start" HorizontalOptions="Center"> <Border HeightRequest="97.5" StrokeShape="RoundRectangle 5" VerticalOptions="Start" HorizontalOptions="Center">

@ -26,7 +26,7 @@
</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="https://codefirst.iut.uca.fr/git/avatars/4045f9272217b1c04fb71402eac9c97d" Aspect="AspectFill"/> <Image Source="default_user.png" Aspect="AspectFill"/>
</Frame> </Frame>
</Frame> </Frame>
</Grid> </Grid>

Loading…
Cancel
Save