💄 Modification line

master
Lucas EVARD 2 years ago
parent 7251bd37c4
commit 6f1f436af2

@ -4,23 +4,21 @@
x:Class="PocketBook.BookDetail"
Title="BookDetail">
<Grid>
<!-- Première rangée pour l'en-tête -->
<Grid.RowDefinitions>
<RowDefinition Height="Auto" />
<RowDefinition Height="*" />
</Grid.RowDefinitions>
<Border Stroke="#D0D0D2" Scale="1.01">
<StackLayout Grid.Row="0" Orientation="Horizontal" BackgroundColor="#F2F1F6" Padding="0,10,60,65">
<StackLayout Orientation="Vertical">
<StackLayout Grid.Row="0" Orientation="Horizontal" BackgroundColor="#F2F1F6" Padding="0,10,60,20">
<Image Source="chevron_left.svg" HorizontalOptions="Start"/>
<Label VerticalTextAlignment="Center" Text="Tous" FontAttributes="Bold" TextColor="{StaticResource Primary}" FontSize="15" Margin="5,0,0,0"/>
<Label Text="Détail du livre" FontAttributes="Bold" FontSize="18" VerticalTextAlignment="Center" HorizontalOptions="CenterAndExpand"/>
</StackLayout>
</Border>
<!-- Deuxième rangée pour le contenu défilable -->
<Line BackgroundColor="#E6E6E6"/>
</StackLayout>
<ScrollView Grid.Row="1">
<StackLayout>
<StackLayout Orientation="Horizontal" Margin="15,0,0,20">
<Image x:Name="bookImage" Source="buveurencre.jpg" Margin="0,0,10,0" WidthRequest="90" HeightRequest="160"/>

@ -3,13 +3,11 @@
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
x:Class="PocketBook.ContentViewFilter">
<VerticalStackLayout>
<Border Stroke="#E6E6E6" BackgroundColor="#F8F8F8" Scale="1.1" Margin="0,-2,0,0">
<StackLayout Orientation="Horizontal" Padding="0,5,0,5" Margin="0,0,0,2">
<Image WidthRequest="19.5" HeightRequest="19.5" x:Name="filterImage" Margin="35,0,10,0"/>
<StackLayout Orientation="Horizontal" BackgroundColor="#F8F8F8" Padding="0,5,0,5">
<Image WidthRequest="20" HeightRequest="20" x:Name="filterImage" Margin="20,0,10,0"/>
<Label x:Name="filterNameLabel" Margin="5,0,0,0" VerticalTextAlignment="Center" HorizontalOptions="StartAndExpand"/>
<Label x:Name="filterNumLabel" VerticalTextAlignment="Center" TextColor="#AFAFAF"/>
<Image Source="chevron_right.svg" Scale="0.5" HorizontalOptions="End" Margin="0,0,20,0"/>
<Image Source="chevron_right.svg" Scale="0.5" HorizontalOptions="End" Margin="0,0,5,0"/>
</StackLayout>
</Border>
</VerticalStackLayout>
</ContentView>

@ -11,6 +11,8 @@
<Label VerticalTextAlignment="Center" HorizontalOptions="EndAndExpand" Text="+" TextColor="{StaticResource Primary}" FontSize="30" />
</StackLayout>
<Label Padding="15,0,0,0" Text="Mes Livres" FontSize="38" FontAttributes="Bold" Margin="0,0,0,10"/>
<Line BackgroundColor="#E6E6E6"/>
<StackLayout Background="#F8F8F8">
<local:ContentViewFilter FilterImageName="tray_second_fill.svg"
FilterName="Tous"
FilterNum="45">
@ -18,26 +20,39 @@
<TapGestureRecognizer Tapped="OnContentViewFilterTappedTous"/>
</local:ContentViewFilter.GestureRecognizers>
</local:ContentViewFilter>
<Line BackgroundColor="#E6E6E6" Margin="25,0,0,0"/>
<local:ContentViewFilter FilterImageName="person_badge_clock_fill.svg"
FilterName="En prêt"
FilterNum="1"/>
<Line BackgroundColor="#E6E6E6" Margin="25,0,0,0"/>
<local:ContentViewFilter FilterImageName="arrow_forward.svg"
FilterName="A lire plus tard"/>
<Line BackgroundColor="#E6E6E6" Margin="25,0,0,0"/>
<local:ContentViewFilter FilterImageName="eyeglasses.svg"
FilterName="Statut de lecture"/>
<Line BackgroundColor="#E6E6E6" Margin="25,0,0,0"/>
<local:ContentViewFilter FilterImageName="heart_fill.svg"
FilterName="Favoris"/>
</StackLayout>
<Line BackgroundColor="#E6E6E6"/>
<Label Text="Filtres" FontSize="20" Margin="20,20,0,20" FontAttributes="Bold"/>
<Line BackgroundColor="#E6E6E6"/>
<StackLayout Background="#F8F8F8">
<local:ContentViewFilter FilterImageName="person_fill.svg"
FilterName="Auteur">
<local:ContentViewFilter.GestureRecognizers>
<TapGestureRecognizer Tapped="OnContentViewFilterTappedAuteur"/>
</local:ContentViewFilter.GestureRecognizers>
</local:ContentViewFilter>
<Line BackgroundColor="#E6E6E6" Margin="25,0,0,0"/>
<local:ContentViewFilter FilterImageName="calendar.svg"
FilterName="Date de publication"/>
<Line BackgroundColor="#E6E6E6" Margin="25,0,0,0"/>
<local:ContentViewFilter FilterImageName="sparkles.svg"
FilterName="Note"/>
</StackLayout>
<Line BackgroundColor="#E6E6E6"/>
</VerticalStackLayout>
</ScrollView>

@ -8,13 +8,14 @@
<StackLayout Orientation="Horizontal" Padding="5,0">
<Image Source="chevron_left.svg"/>
<Label VerticalTextAlignment="Center" Text="Mes livres" FontAttributes="Bold" HorizontalOptions="StartAndExpand" TextColor="{StaticResource Primary}" FontSize="15" Margin="5,0,0,0"/>
<Label Text="Tous" FontAttributes="Bold" FontSize="18" VerticalTextAlignment="Center" HorizontalOptions="Center"/>
<Label Text="Tous" FontAttributes="Bold" FontSize="18" VerticalTextAlignment="Center" HorizontalOptions="CenterAndExpand" Margin="0,0,15,0"/>
<StackLayout HorizontalOptions="EndAndExpand" Orientation="Horizontal">
<Label VerticalTextAlignment="Center" Text="+" TextColor="{StaticResource Primary}" FontSize="30" />
<Image Margin="15,0,0,0" x:Name="imageArrows" WidthRequest="25" HeightRequest="25" Source="arrows.svg"/>
</StackLayout>
</StackLayout>
<CollectionView ItemsSource="{Binding mesAuteurs}">
<CollectionView.ItemTemplate>
<DataTemplate>

@ -26,9 +26,10 @@ public partial class Auteur
books = new List<Book>
{
new Book("Buveur d'encre", "En lecture", name),
new Book("Caca boudin", "En lecture", name),
new Book("Prout", "En lecture", name),
new Book("Benjamin", "En lecture", name)
new Book("Harry Potter et la pierre philosophale", "Non lu",name),
new Book("Le Seigneur des anneaux", "En lecture", name),
new Book("1984", "Terminé", name),
new Book("Le Petit Prince", "Non lu", name)
};
}
}
@ -42,8 +43,8 @@ public partial class TousPage : ContentPage
{
mesAuteurs = new List<Auteur>
{
new Auteur("Paul caca"),
new Auteur("Caca paul")
new Auteur("J.K. Rowling"),
new Auteur("J.R.R. Tolkien")
};
InitializeComponent();
BindingContext=this;

Loading…
Cancel
Save