💄 Modification line

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

@ -4,23 +4,21 @@
x:Class="PocketBook.BookDetail" x:Class="PocketBook.BookDetail"
Title="BookDetail"> Title="BookDetail">
<Grid> <Grid>
<!-- Première rangée pour l'en-tête -->
<Grid.RowDefinitions> <Grid.RowDefinitions>
<RowDefinition Height="Auto" /> <RowDefinition Height="Auto" />
<RowDefinition Height="*" /> <RowDefinition Height="*" />
</Grid.RowDefinitions> </Grid.RowDefinitions>
<Border Stroke="#D0D0D2" Scale="1.01"> <StackLayout Orientation="Vertical">
<StackLayout Grid.Row="0" Orientation="Horizontal" BackgroundColor="#F2F1F6" Padding="0,10,60,65"> <StackLayout Grid.Row="0" Orientation="Horizontal" BackgroundColor="#F2F1F6" Padding="0,10,60,20">
<Image Source="chevron_left.svg" HorizontalOptions="Start"/> <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 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"/> <Label Text="Détail du livre" FontAttributes="Bold" FontSize="18" VerticalTextAlignment="Center" HorizontalOptions="CenterAndExpand"/>
</StackLayout> </StackLayout>
</Border> <Line BackgroundColor="#E6E6E6"/>
<!-- Deuxième rangée pour le contenu défilable --> </StackLayout>
<ScrollView Grid.Row="1"> <ScrollView Grid.Row="1">
<StackLayout> <StackLayout>
<StackLayout Orientation="Horizontal" Margin="15,0,0,20"> <StackLayout Orientation="Horizontal" Margin="15,0,0,20">
<Image x:Name="bookImage" Source="buveurencre.jpg" Margin="0,0,10,0" WidthRequest="90" HeightRequest="160"/> <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" xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
x:Class="PocketBook.ContentViewFilter"> x:Class="PocketBook.ContentViewFilter">
<VerticalStackLayout> <VerticalStackLayout>
<Border Stroke="#E6E6E6" BackgroundColor="#F8F8F8" Scale="1.1" Margin="0,-2,0,0"> <StackLayout Orientation="Horizontal" BackgroundColor="#F8F8F8" Padding="0,5,0,5">
<StackLayout Orientation="Horizontal" Padding="0,5,0,5" Margin="0,0,0,2"> <Image WidthRequest="20" HeightRequest="20" x:Name="filterImage" Margin="20,0,10,0"/>
<Image WidthRequest="19.5" HeightRequest="19.5" x:Name="filterImage" Margin="35,0,10,0"/>
<Label x:Name="filterNameLabel" Margin="5,0,0,0" VerticalTextAlignment="Center" HorizontalOptions="StartAndExpand"/> <Label x:Name="filterNameLabel" Margin="5,0,0,0" VerticalTextAlignment="Center" HorizontalOptions="StartAndExpand"/>
<Label x:Name="filterNumLabel" VerticalTextAlignment="Center" TextColor="#AFAFAF"/> <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> </StackLayout>
</Border>
</VerticalStackLayout> </VerticalStackLayout>
</ContentView> </ContentView>

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

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

@ -26,9 +26,10 @@ public partial class Auteur
books = new List<Book> books = new List<Book>
{ {
new Book("Buveur d'encre", "En lecture", name), new Book("Buveur d'encre", "En lecture", name),
new Book("Caca boudin", "En lecture", name), new Book("Harry Potter et la pierre philosophale", "Non lu",name),
new Book("Prout", "En lecture", name), new Book("Le Seigneur des anneaux", "En lecture", name),
new Book("Benjamin", "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> mesAuteurs = new List<Auteur>
{ {
new Auteur("Paul caca"), new Auteur("J.K. Rowling"),
new Auteur("Caca paul") new Auteur("J.R.R. Tolkien")
}; };
InitializeComponent(); InitializeComponent();
BindingContext=this; BindingContext=this;

Loading…
Cancel
Save