💄 Ordonnancement de fichier, mise en place des styles et des colors, ajout des dernières pages, changement de logo pour le calendrier

master
Lucas EVARD 2 years ago
parent 8a14c4a337
commit c56e47c4b8

@ -1,69 +0,0 @@
<?xml version="1.0" encoding="utf-8" ?>
<ContentPage xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
x:Class="PocketBook.Auteur"
Title="Auteur"
xmlns:local="clr-namespace:PocketBook"
xmlns:toolkit="http://schemas.microsoft.com/dotnet/2022/maui/toolkit">
<Grid RowDefinitions="auto,auto, *">
<StackLayout Orientation="Vertical">
<StackLayout Orientation="Horizontal" VerticalOptions="Start" Padding="5,0,0,0">
<StackLayout Orientation="Horizontal" HorizontalOptions="StartAndExpand">
<StackLayout.GestureRecognizers>
<TapGestureRecognizer Tapped="RetourMainMenu"/>
</StackLayout.GestureRecognizers>
<Image Source="chevron_left.png">
<Image.Behaviors>
<toolkit:IconTintColorBehavior TintColor="{StaticResource Primary}"/>
</Image.Behaviors>
</Image>
<Label VerticalTextAlignment="Center" Text="Mes livres" FontAttributes="Bold" TextColor="{StaticResource Primary}" FontSize="15" Margin="5,0,0,0"/>
</StackLayout>
<Label Text="Auteur" FontAttributes="Bold" FontSize="18" VerticalTextAlignment="Center" HorizontalOptions="CenterAndExpand"/>
<ImageButton x:Name="imageArrows" WidthRequest="25" HeightRequest="25" HorizontalOptions="EndAndExpand" Scale="0.6" Source="arrows.png">
<ImageButton.Behaviors>
<toolkit:IconTintColorBehavior TintColor="{StaticResource Primary}"/>
</ImageButton.Behaviors>
</ImageButton>
</StackLayout>
<Line BackgroundColor="#E6E6E6"/>
</StackLayout>
<SearchBar VerticalOptions="Start" Grid.Row="1" x:Name="searchBar"
Placeholder="Rechercher"
FontSize="16"
BackgroundColor="White"
CancelButtonColor="Grey"
PlaceholderColor="#C7C7CC"/>
<ScrollView Grid.Row="2">
<StackLayout>
<local:Filtrage Dataname="Alain Damasio" Margin="0,0,0,5" NumberData="2"/>
<Line BackgroundColor="#E6E6E6" Margin="60,0,0,0"/>
<local:Filtrage Dataname="Cixin Lui" Margin="0,0,0,5" NumberData="3"/>
<Line BackgroundColor="#E6E6E6" Margin="60,0,0,0"/>
<local:Filtrage Dataname="Daniel Pennac" Margin="0,0,0,5" NumberData="2"/>
<Line BackgroundColor="#E6E6E6" Margin="60,0,0,0"/>
<local:Filtrage Dataname="Evgenij Ivanovic Zamâtin" Margin="0,0,0,5" NumberData="1"/>
<Line BackgroundColor="#E6E6E6" Margin="60,0,0,0"/>
<local:Filtrage Dataname="Frank Herbert" Margin="0,0,0,5" NumberData="6"/>
<Line BackgroundColor="#E6E6E6" Margin="60,0,0,0"/>
<local:Filtrage Dataname="Herbert George Wells" Margin="0,0,0,5" NumberData="3"/>
<Line BackgroundColor="#E6E6E6" Margin="60,0,0,0"/>
<local:Filtrage Dataname="James S. A. Corey" Margin="0,0,0,5" NumberData="6"/>
<Line BackgroundColor="#E6E6E6" Margin="60,0,0,0"/>
<local:Filtrage Dataname="James Tynion" Margin="0,0,0,5" NumberData="1"/>
<Line BackgroundColor="#E6E6E6" Margin="60,0,0,0"/>
<local:Filtrage Dataname="James Tynion (IV)" Margin="0,0,0,5" NumberData="1"/>
<Line BackgroundColor="#E6E6E6" Margin="60,0,0,0"/>
<local:Filtrage Dataname="Ken Kesey" Margin="0,0,0,5" NumberData="1"/>
<Line BackgroundColor="#E6E6E6" Margin="60,0,0,0"/>
<local:Filtrage Dataname="Ken Liu" Margin="0,0,0,5" NumberData="1"/>
<Line BackgroundColor="#E6E6E6" Margin="60,0,0,0"/>
</StackLayout>
</ScrollView>
</Grid>
</ContentPage>

@ -1,108 +0,0 @@
<?xml version="1.0" encoding="utf-8" ?>
<ContentPage xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
x:Class="PocketBook.BookDetail"
xmlns:local="clr-namespace:PocketBook"
xmlns:toolkit="http://schemas.microsoft.com/dotnet/2022/maui/toolkit">
<Grid RowDefinitions="auto, *">
<StackLayout Orientation="Vertical">
<StackLayout Grid.Row="0" Orientation="Horizontal" BackgroundColor="#F2F1F6" Padding="0,10,60,20">
<StackLayout.GestureRecognizers>
<TapGestureRecognizer Tapped="RetourMainMenu"/>
</StackLayout.GestureRecognizers>
<Image Source="chevron_left.png" Margin="5,0,0,0" HorizontalOptions="Start">
<Image.Behaviors>
<toolkit:IconTintColorBehavior TintColor="{StaticResource Primary}"/>
</Image.Behaviors>
</Image>
<Label VerticalTextAlignment="Center" Text="Tous" FontAttributes="Bold" TextColor="{StaticResource Primary}" FontSize="15" Margin="5,0,0,0"/>
<Label Text="Détails du livre" FontAttributes="Bold" FontSize="18" VerticalTextAlignment="Center" HorizontalOptions="CenterAndExpand"/>
</StackLayout>
<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"/>
<StackLayout Orientation="Vertical">
<Label x:Name="titreBook" FontAttributes="Bold" Margin="0,25,0,0"/>
<Label Text="★★★★★" TextColor="#D1D1D1" Margin="0,90,0,0"/>
</StackLayout>
</StackLayout>
<StackLayout Margin="15,0,0,0">
<Line BackgroundColor="#D0D0D2" />
<StackLayout Orientation="Horizontal">
<Label Text="Infos en ligne" FontSize="20" HorizontalOptions="StartAndExpand" Margin="10,10,0,10"/>
<Image Source="chevron_right.png" HorizontalOptions="Start" Scale="0.6"/>
</StackLayout>
<Line BackgroundColor="#D0D0D2" />
<StackLayout Margin="10,10,0,10">
<Label Text="Auteur" FontSize="16" FontAttributes="Bold"/>
<Label x:Name="bookAuteur" TextColor="#9D9D9D" FontSize="20" Margin="0,10,0,0"/>
</StackLayout>
<Line BackgroundColor="#D0D0D2" />
<StackLayout Margin="10,10,0,10">
<Label Text="Maison d'édition" FontSize="16" FontAttributes="Bold"/>
<Label x:Name="bookEdition" TextColor="#9D9D9D" FontSize="20" Margin="0,10,0,0"/>
</StackLayout>
<Line BackgroundColor="#D0D0D2" />
<StackLayout Margin="10,10,0,10">
<Label Text="Résumé" FontSize="16" FontAttributes="Bold"/>
<Label x:Name="bookResume" TextColor="#9D9D9D" FontSize="13" Text="Lorem ipsum dolor sit amet, consectetur adipiscing elit. Donec sodales viverra justo, nec rutrum ligula elementum vitae. Suspendisse sit amet mi nec nulla pretium vulputate. Nam pretium volutpat ante, at viverra ex elementum quis. Pellentesque egestas nisl ac enim sollicitudin blandit. Mauris id scelerisque augue. Curabitur dui nibh, convallis quis sagittis eu, pretium vel erat. Sed ut aliquet mi. Class aptent taciti sociosqu ad litora torquent per conubia nostra, per inceptos himenaeos. Vestibulum eget lacus quis nisl auctor semper. Vestibulum feugiat ut tortor vel ultrices.
Curabitur tempus erat nec sapien aliquam venenatis. In ornare odio in lacus ornare finibus. Maecenas semper nulla non tortor gravida tincidunt ut ut arcu. Sed magna sem, semper quis justo vitae, lacinia laoreet ex. Curabitur at mauris a velit pharetra fringilla commodo non elit. Quisque sollicitudin, ipsum id dapibus consectetur, sapien tortor mattis lectus, vitae tempor nisl nisl sed ipsum. In in orci nec odio hendrerit posuere a vel libero." Margin="0,10,15,0"/>
</StackLayout>
<Line BackgroundColor="#D0D0D2" />
<StackLayout Margin="0,10,0,0">
<Label Text="Détails" FontSize="14" Margin="10,0,0,5" FontAttributes="Bold"/>
<StackLayout Orientation="Horizontal">
<Label Text="Nombre de pages" TextColor="#9D9D9D" Margin="10,0,0,5" FontSize="18"/>
<Label FontSize="18" x:Name="bookNbPages" TextColor="#9D9D9D" HorizontalOptions="EndAndExpand" Margin="10,0,15,0"/>
</StackLayout>
<StackLayout Orientation="Horizontal">
<Label Text="Langue" TextColor="#9D9D9D" Margin="10,0,0,5" FontSize="18"/>
<Label x:Name="bookLangue" FontSize="18" TextColor="#9D9D9D" HorizontalOptions="EndAndExpand" Margin="10,0,15,0"/>
</StackLayout>
<StackLayout Orientation="Horizontal" Margin="10,0,0,10">
<Label Text="ISBN" TextColor="#9D9D9D" FontSize="18"/>
<Label x:Name="bookISBN" TextColor="#9D9D9D" FontSize="18" HorizontalOptions="EndAndExpand" Margin="0,0,15,0"/>
</StackLayout>
<Line BackgroundColor="#D0D0D2"/>
<Label Text="Statut de lecture" FontSize="14" Margin="10,10,0,5" FontAttributes="Bold"/>
<StackLayout Orientation="Horizontal">
<Label Text="Statut" TextColor="#9D9D9D" Margin="10,0,0,5" FontSize="18"/>
<Label x:Name="bookStatus" TextColor="#9D9D9D" FontSize="18" HorizontalOptions="EndAndExpand" Margin="0,0,15,0"/>
</StackLayout>
<Line BackgroundColor="#D0D0D2"/>
<Label Text="Bibliothèque" FontSize="14" Margin="10,10,0,5" FontAttributes="Bold"/>
<StackLayout Orientation="Horizontal">
<Label Text="Ajouté le" TextColor="#9D9D9D" Margin="10,0,0,10" FontSize="18"/>
<Label x:Name="bookAdd" TextColor="#9D9D9D" FontSize="18" HorizontalOptions="EndAndExpand" Margin="0,0,15,0"/>
</StackLayout>
<Line BackgroundColor="#D0D0D2"/>
<StackLayout Padding="50"/>
<Line BackgroundColor="#D0D0D2"/>
<local:BookChange PropertyName="Déplacer le livre" ImageName="folder.png"/>
<Line BackgroundColor="#D0D0D2"/>
<local:BookChange PropertyName="Ajouter à la liste à lire plus tard" ImageName="plus_round.png"/>
<Line BackgroundColor="#D0D0D2"/>
<local:BookChange PropertyName="Changer le statut de lecture" ImageName="eyeglasses.png"/>
<Line BackgroundColor="#D0D0D2"/>
<local:BookChange PropertyName="Prêter le livre" ImageName="person.png"/>
</StackLayout>
</StackLayout>
</StackLayout>
</ScrollView>
</Grid>
</ContentPage>

@ -1,43 +0,0 @@
<?xml version="1.0" encoding="utf-8" ?>
<ContentView xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
x:Class="PocketBook.ContentViewBook"
xmlns:toolkit="http://schemas.microsoft.com/dotnet/2022/maui/toolkit">
<VerticalStackLayout Margin="15,0,0,0">
<StackLayout Orientation="Horizontal" Margin="0,5,0,0">
<Image x:Name="bookImage" Margin="0,0,10,0" WidthRequest="75" HeightRequest="110"/>
<StackLayout Orientation="Vertical">
<Label x:Name="bookName" FontAttributes="Bold"/>
<Label x:Name="autorName" FontSize="12"/>
<Label x:Name="bookStatus" FontSize="12" TextColor="#AFAFAF"/>
<StackLayout Orientation="Horizontal" Margin="0,30,0,0">
<Image Source="star.png" WidthRequest="20" HeightRequest="20">
<Image.Behaviors>
<toolkit:IconTintColorBehavior TintColor="#E6E6E6"/>
</Image.Behaviors>
</Image>
<Image Source="star.png" WidthRequest="20" HeightRequest="20">
<Image.Behaviors>
<toolkit:IconTintColorBehavior TintColor="#E6E6E6"/>
</Image.Behaviors>
</Image>
<Image Source="star.png" WidthRequest="20" HeightRequest="20">
<Image.Behaviors>
<toolkit:IconTintColorBehavior TintColor="#E6E6E6"/>
</Image.Behaviors>
</Image>
<Image Source="star.png" WidthRequest="20" HeightRequest="20">
<Image.Behaviors>
<toolkit:IconTintColorBehavior TintColor="#E6E6E6"/>
</Image.Behaviors>
</Image>
<Image Source="star.png" WidthRequest="20" HeightRequest="20">
<Image.Behaviors>
<toolkit:IconTintColorBehavior TintColor="#E6E6E6"/>
</Image.Behaviors>
</Image>
</StackLayout>
</StackLayout>
</StackLayout>
</VerticalStackLayout>
</ContentView>

@ -1,66 +0,0 @@
<?xml version="1.0" encoding="utf-8" ?>
<ContentPage xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
xmlns:local="clr-namespace:PocketBook"
x:Class="PocketBook.MainPage">
<ScrollView>
<VerticalStackLayout>
<StackLayout Orientation="Horizontal" Padding="10,0">
<Label VerticalTextAlignment="Center" Text="Modifier" TextColor="{StaticResource Primary}" FontSize="15"/>
<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.png"
FilterName="Tous"
FilterNum="45">
<local:ContentViewFilter.GestureRecognizers>
<TapGestureRecognizer Tapped="OnContentViewFilterTappedTous"/>
</local:ContentViewFilter.GestureRecognizers>
</local:ContentViewFilter>
<Line BackgroundColor="#E6E6E6" Margin="25,0,0,0"/>
<local:ContentViewFilter FilterImageName="person_badge_clock_fill.png"
FilterName="En prêt"
FilterNum="1"/>
<Line BackgroundColor="#E6E6E6" Margin="25,0,0,0"/>
<local:ContentViewFilter FilterImageName="arrow_forward.png"
FilterName="A lire plus tard"/>
<Line BackgroundColor="#E6E6E6" Margin="25,0,0,0"/>
<local:ContentViewFilter FilterImageName="eyeglasses.png"
FilterName="Statut de lecture"/>
<Line BackgroundColor="#E6E6E6" Margin="25,0,0,0"/>
<local:ContentViewFilter FilterImageName="heart_fill.png"
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.png"
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.png"
FilterName="Date de publication">
<local:ContentViewFilter.GestureRecognizers>
<TapGestureRecognizer Tapped="OnContentViewFilterTappedDate"/>
</local:ContentViewFilter.GestureRecognizers>
</local:ContentViewFilter>
<Line BackgroundColor="#E6E6E6" Margin="25,0,0,0"/>
<local:ContentViewFilter FilterImageName="sparkles.png"
FilterName="Note"/>
</StackLayout>
<Line BackgroundColor="#E6E6E6"/>
</VerticalStackLayout>
</ScrollView>
</ContentPage>

@ -1,24 +0,0 @@
namespace PocketBook;
public partial class MainPage : ContentPage
{
public MainPage()
{
InitializeComponent();
}
private async void OnContentViewFilterTappedTous(object sender, EventArgs e)
{
await Navigation.PushAsync(new TousPage());
}
private async void OnContentViewFilterTappedAuteur(object sender, EventArgs e)
{
await Navigation.PushAsync(new Auteur());
}
private async void OnContentViewFilterTappedDate(object sender,EventArgs e)
{
await Navigation.PushAsync(new DatePublic());
}
}

@ -0,0 +1,61 @@
<?xml version="1.0" encoding="utf-8" ?>
<ContentPage xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
x:Class="PocketBook.Auteur"
Title="Auteur"
xmlns:local="clr-namespace:PocketBook"
xmlns:toolkit="http://schemas.microsoft.com/dotnet/2022/maui/toolkit">
<Grid RowDefinitions="auto,auto,*">
<StackLayout Orientation="Vertical">
<StackLayout Orientation="Horizontal" VerticalOptions="Start" Padding="5,10,0,10">
<StackLayout Orientation="Horizontal" HorizontalOptions="StartAndExpand">
<StackLayout.GestureRecognizers>
<TapGestureRecognizer Tapped="RetourMainMenu" />
</StackLayout.GestureRecognizers>
<Image Source="chevron_left.png">
<Image.Behaviors>
<toolkit:IconTintColorBehavior TintColor="{StaticResource Primary}" />
</Image.Behaviors>
</Image>
<Label Style="{StaticResource TitleLabelLeftStyle}" Text="Mes livres" />
</StackLayout>
<Label Style="{StaticResource TitleLabelStyle}" Text="Auteur" />
<ImageButton x:Name="imageArrows" Style="{StaticResource RightIconToolBar}" Source="arrows.png">
<ImageButton.Behaviors>
<toolkit:IconTintColorBehavior TintColor="{StaticResource Primary}"/>
</ImageButton.Behaviors>
</ImageButton>
</StackLayout>
<Line BackgroundColor="{StaticResource LineColorAutor}" />
</StackLayout>
<SearchBar Grid.Row="1" x:Name="searchBar" Style="{StaticResource SearchBarStyle}" Placeholder="Rechercher" />
<ScrollView Grid.Row="2">
<StackLayout>
<local:Filtrage Dataname="Alain Damasio" Margin="0,0,0,5" NumberData="2"/>
<Line Style="{StaticResource LineStyle}"/>
<local:Filtrage Dataname="Cixin Lui" Margin="0,0,0,5" NumberData="3"/>
<Line Style="{StaticResource LineStyle}"/>
<local:Filtrage Dataname="Daniel Pennac" Margin="0,0,0,5" NumberData="2"/>
<Line Style="{StaticResource LineStyle}"/>
<local:Filtrage Dataname="Evgenij Ivanovic Zamâtin" Margin="0,0,0,5" NumberData="1"/>
<Line Style="{StaticResource LineStyle}"/>
<local:Filtrage Dataname="Frank Herbert" Margin="0,0,0,5" NumberData="6"/>
<Line Style="{StaticResource LineStyle}"/>
<local:Filtrage Dataname="Herbert George Wells" Margin="0,0,0,5" NumberData="3"/>
<Line Style="{StaticResource LineStyle}"/>
<local:Filtrage Dataname="James S. A. Corey" Margin="0,0,0,5" NumberData="6"/>
<Line Style="{StaticResource LineStyle}"/>
<local:Filtrage Dataname="James Tynion" Margin="0,0,0,5" NumberData="1"/>
<Line Style="{StaticResource LineStyle}"/>
<local:Filtrage Dataname="James Tynion (IV)" Margin="0,0,0,5" NumberData="1"/>
<Line Style="{StaticResource LineStyle}"/>
<local:Filtrage Dataname="Ken Kesey" Margin="0,0,0,5" NumberData="1"/>
<Line Style="{StaticResource LineStyle}"/>
<local:Filtrage Dataname="Ken Liu" Margin="0,0,0,5" NumberData="1"/>
</StackLayout>
</ScrollView>
</Grid>
</ContentPage>

@ -0,0 +1,105 @@
<?xml version="1.0" encoding="utf-8" ?>
<ContentPage xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
x:Class="PocketBook.BookDetail"
xmlns:local="clr-namespace:PocketBook"
xmlns:toolkit="http://schemas.microsoft.com/dotnet/2022/maui/toolkit">
<Grid RowDefinitions="auto, *">
<StackLayout Orientation="Vertical">
<StackLayout Grid.Row="0" Orientation="Horizontal" BackgroundColor="{StaticResource TopBackgroundGrey}" Padding="0,10,60,20">
<StackLayout Orientation="Horizontal">
<StackLayout.GestureRecognizers>
<TapGestureRecognizer Tapped="RetourMainMenu"/>
</StackLayout.GestureRecognizers>
<Image Source="chevron_left.png" Margin="5,0,0,0" HorizontalOptions="Start">
<Image.Behaviors>
<toolkit:IconTintColorBehavior TintColor="{StaticResource Primary}"/>
</Image.Behaviors>
</Image>
<Label Style="{StaticResource TitleLabelLeftStyle}" Text="Tous"/>
</StackLayout>
<Label Text="Détails du livre" Style="{StaticResource TitleLabelStyleDetailBook}"/>
</StackLayout>
<Line BackgroundColor="{StaticResource LineColor1}"/>
</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"/>
<StackLayout Orientation="Vertical">
<Label x:Name="titreBook" FontAttributes="Bold" FontSize="20" Margin="0,15,0,0"/>
<local:Stars NbStars="1" Margin="0,90,0,0"/>
</StackLayout>
</StackLayout>
<StackLayout Margin="15,0,0,0">
<Line BackgroundColor="{StaticResource LineColor1}"/>
<StackLayout Orientation="Horizontal">
<Label Text="Infos en ligne" FontSize="20" HorizontalOptions="StartAndExpand" Margin="10,10,0,10"/>
<Image Source="chevron_right.png" HorizontalOptions="Start" Scale="0.6"/>
</StackLayout>
<Line BackgroundColor="{StaticResource LineColor1}"/>
<StackLayout >
<Label Text="Auteur" Style="{StaticResource LabelStyleDetailBook3}"/>
<Label x:Name="bookAuteur" Style="{StaticResource LabelStyleDetailBook4}"/>
</StackLayout>
<Line BackgroundColor="{StaticResource LineColor1}"/>
<StackLayout>
<Label Text="Maison d'édition" Style="{StaticResource LabelStyleDetailBook3}"/>
<Label x:Name="bookEdition" Style="{StaticResource LabelStyleDetailBook4}"/>
</StackLayout>
<Line BackgroundColor="{StaticResource LineColor1}"/>
<StackLayout Margin="0,0,0,10">
<Label Text="Résumé" Style="{StaticResource LabelStyleDetailBook3}"/>
<Label x:Name="bookResume" TextColor="#9D9D9D" Margin="10,10,20,0" FontSize="13" Text="Lorem ipsum dolor sit amet, consectetur adipiscing elit. Donec sodales viverra justo, nec rutrum ligula elementum vitae. Suspendisse sit amet mi nec nulla pretium vulputate. Nam pretium volutpat ante, at viverra ex elementum quis. Pellentesque egestas nisl ac enim sollicitudin blandit. Mauris id scelerisque augue. Curabitur dui nibh, convallis quis sagittis eu, pretium vel erat. Sed ut aliquet mi. Class aptent taciti sociosqu ad litora torquent per conubia nostra, per inceptos himenaeos. Vestibulum eget lacus quis nisl auctor semper. Vestibulum feugiat ut tortor vel ultrices.
Curabitur tempus erat nec sapien aliquam venenatis. In ornare odio in lacus ornare finibus. Maecenas semper nulla non tortor gravida tincidunt ut ut arcu. Sed magna sem, semper quis justo vitae, lacinia laoreet ex. Curabitur at mauris a velit pharetra fringilla commodo non elit. Quisque sollicitudin, ipsum id dapibus consectetur, sapien tortor mattis lectus, vitae tempor nisl nisl sed ipsum. In in orci nec odio hendrerit posuere a vel libero."/>
</StackLayout>
<Line BackgroundColor="{StaticResource LineColor1}"/>
<StackLayout>
<Label Text="Détails" Style="{StaticResource LabelStyleDetailBook3}"/>
<StackLayout Orientation="Horizontal">
<Label Text="Nombre de pages" Style="{StaticResource LabelStyleDetailBook4}"/>
<Label x:Name="bookNbPages" Style="{StaticResource LabelStyleDetailBook2}"/>
</StackLayout>
<StackLayout Orientation="Horizontal">
<Label Text="Langue" Style="{StaticResource LabelStyleDetailBook4}"/>
<Label x:Name="bookLangue" Style="{StaticResource LabelStyleDetailBook2}"/>
</StackLayout>
<StackLayout Orientation="Horizontal">
<Label Text="ISBN" Style="{StaticResource LabelStyleDetailBook4}"/>
<Label x:Name="bookISBN" Style="{StaticResource LabelStyleDetailBook2}"/>
</StackLayout>
<Line BackgroundColor="{StaticResource LineColor1}"/>
<Label Text="Statut de lecture" Style="{StaticResource LabelStyleDetailBook3}"/>
<StackLayout Orientation="Horizontal">
<Label Text="Statut" Style="{StaticResource LabelStyleDetailBook4}"/>
<Label x:Name="bookStatus" Style="{StaticResource LabelStyleDetailBook2}"/>
</StackLayout>
<Line BackgroundColor="{StaticResource LineColor1}"/>
<Label Text="Bibliothèque" Style="{StaticResource LabelStyleDetailBook3}"/>
<StackLayout Orientation="Horizontal">
<Label Text="Ajouté le" Style="{StaticResource LabelStyleDetailBook4}"/>
<Label x:Name="bookAdd" Style="{StaticResource LabelStyleDetailBook2}"/>
</StackLayout>
<Line BackgroundColor="{StaticResource LineColor1}"/>
<StackLayout Padding="50"/>
<Line BackgroundColor="{StaticResource LineColor1}"/>
<local:BookChange PropertyName="Déplacer le livre" ImageName="folder.png"/>
<Line BackgroundColor="{StaticResource LineColor1}"/>
<local:BookChange PropertyName="Ajouter à la liste à lire plus tard" ImageName="plus_round.png"/>
<Line BackgroundColor="{StaticResource LineColor1}"/>
<local:BookChange PropertyName="Changer le statut de lecture" ImageName="eyeglasses.png"/>
<Line BackgroundColor="{StaticResource LineColor1}"/>
<local:BookChange PropertyName="Prêter le livre" ImageName="person.png"/>
</StackLayout>
</StackLayout>
</StackLayout>
</ScrollView>
</Grid>
</ContentPage>

@ -3,6 +3,7 @@
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
x:Class="PocketBook.BookChange"
xmlns:toolkit="http://schemas.microsoft.com/dotnet/2022/maui/toolkit">
<StackLayout Orientation="Horizontal" Margin="10,15,0,15">
<Image x:Name="imageName" WidthRequest="20" HeightRequest="20">
<Image.Behaviors>

@ -0,0 +1,20 @@
<?xml version="1.0" encoding="utf-8" ?>
<ContentView xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
x:Class="PocketBook.ContentViewBook"
xmlns:toolkit="http://schemas.microsoft.com/dotnet/2022/maui/toolkit"
xmlns:local="clr-namespace:PocketBook">
<VerticalStackLayout Margin="15,0,0,0">
<StackLayout Orientation="Horizontal" Margin="0,5,0,0">
<Image x:Name="bookImage" Margin="0,0,10,0" WidthRequest="75" HeightRequest="110"/>
<StackLayout Orientation="Vertical">
<Label x:Name="bookName" FontAttributes="Bold"/>
<Label x:Name="autorName" FontSize="12"/>
<Label x:Name="bookStatus" FontSize="12" TextColor="#AFAFAF"/>
<StackLayout Orientation="Horizontal" Margin="0,30,0,0">
<local:Stars NbStars="1" Margin="0,0,0,5"/>
</StackLayout>
</StackLayout>
</StackLayout>
</VerticalStackLayout>
</ContentView>

@ -3,10 +3,10 @@
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
x:Class="PocketBook.ContentViewFilter">
<VerticalStackLayout>
<StackLayout Orientation="Horizontal" BackgroundColor="#F8F8F8" Padding="0,5,0,5">
<StackLayout Orientation="Horizontal" BackgroundColor="{StaticResource TopBackgroundGrey}" 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"/>
<Label x:Name="filterNumLabel" VerticalTextAlignment="Center" TextColor="{StaticResource FontColor2}"/>
<Image Source="chevron_right.png" Scale="0.5" HorizontalOptions="End" Margin="0,0,5,0"/>
</StackLayout>
</VerticalStackLayout>

@ -11,7 +11,7 @@
</Image>
<Label VerticalOptions="Center" HorizontalOptions="StartAndExpand" Margin="15,0,0,0" x:Name="dataname"/>
<Label x:Name="numberData" VerticalTextAlignment="Center" TextColor="#AFAFAF" FontSize="16"/>
<Label x:Name="numberData" VerticalTextAlignment="Center" TextColor="{StaticResource FontColor2}" FontSize="16"/>
<Image Source="chevron_right.png" Scale="0.5" HorizontalOptions="End" Margin="0,0,5,0"/>
</StackLayout>
</ContentView>

@ -0,0 +1,14 @@
<?xml version="1.0" encoding="utf-8" ?>
<ContentView xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
x:Class="PocketBook.Stars"
xmlns:toolkit="http://schemas.microsoft.com/dotnet/2022/maui/toolkit">
<StackLayout Orientation="Horizontal" Margin="0,30,0,0" x:Name="StarsList">
<Image Source="star.png" WidthRequest="20" HeightRequest="20"/>
<Image Source="star.png" WidthRequest="20" HeightRequest="20"/>
<Image Source="star.png" WidthRequest="20" HeightRequest="20"/>
<Image Source="star.png" WidthRequest="20" HeightRequest="20"/>
<Image Source="star.png" WidthRequest="20" HeightRequest="20"/>
</StackLayout>
</ContentView>

@ -0,0 +1,53 @@
using CommunityToolkit.Maui.Behaviors;
namespace PocketBook;
public partial class Stars : ContentView
{
public static readonly BindableProperty NbStarsProperty =
BindableProperty.Create(nameof(NbStars), typeof(int), typeof(Stars), defaultValue: 0, propertyChanged: OnNbStarsChanged);
public int NbStars
{
get { return (int)GetValue(NbStarsProperty); }
set { SetValue(NbStarsProperty, value); }
}
public Stars()
{
InitializeComponent();
}
private static void OnNbStarsChanged(BindableObject bindable, object oldValue, object newValue)
{
if (bindable is Stars stars)
{
stars.UpdateStars();
}
}
private void UpdateStars()
{
int z = 0;
var behaviorYellow = new IconTintColorBehavior
{
TintColor = Color.FromArgb("#FFFF00"),
};
var behaviorGrey = new IconTintColorBehavior
{
TintColor = Color.FromArgb("#E6E6E6"),
};
foreach (Image i in StarsList.Children.Where(c => c is Image))
{
if (z < NbStars)
{
i.Behaviors.Add(behaviorYellow);
z++;
}
else i.Behaviors.Add(behaviorGrey);
}
}
}

@ -0,0 +1,8 @@
<?xml version="1.0" encoding="utf-8" ?>
<ContentView xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
x:Class="PocketBook.TitledAuthor">
<StackLayout BackgroundColor="{StaticResource BackgroundMainPage}" Padding="5">
<Label x:Name="nameText" TextColor="{StaticResource FontColor2}" FontAttributes="Bold" Margin="15,0,0,0" />
</StackLayout>
</ContentView>

@ -0,0 +1,20 @@
namespace PocketBook;
public partial class TitledAuthor : ContentView
{
public static readonly BindableProperty NameTextProperty =
BindableProperty.Create(nameof(NameText), typeof(string), typeof(Filtrage), string.Empty);
public string NameText
{
get { return (string)GetValue(NameTextProperty); }
set { SetValue(NameTextProperty, value); }
}
public TitledAuthor()
{
InitializeComponent();
nameText.SetBinding(Label.TextProperty, new Binding(nameof(NameText), source: this));
}
}

@ -4,8 +4,5 @@
xmlns:toolkit="http://schemas.microsoft.com/dotnet/2022/maui/toolkit"
x:Class="PocketBook.AddBook" >
<VerticalStackLayout>
<Label Text="This is a very important message!" />
</VerticalStackLayout>
</toolkit:Popup>

@ -6,7 +6,7 @@
xmlns:toolkit="http://schemas.microsoft.com/dotnet/2022/maui/toolkit">
<Grid RowDefinitions="auto,auto, *">
<StackLayout Orientation="Vertical">
<StackLayout Orientation="Horizontal" VerticalOptions="Start" Padding="5,0,0,0">
<StackLayout Orientation="Horizontal" VerticalOptions="Start" Padding="5,10,0,10">
<StackLayout Orientation="Horizontal" HorizontalOptions="StartAndExpand">
<StackLayout.GestureRecognizers>
<TapGestureRecognizer Tapped="RetourMainMenu"/>
@ -17,8 +17,8 @@
</Image.Behaviors>
</Image>
</StackLayout>
<Label Text="Date de publication" FontAttributes="Bold" FontSize="18" VerticalTextAlignment="Center" HorizontalOptions="Center"/>
<ImageButton x:Name="imageArrows" WidthRequest="25" HeightRequest="25" HorizontalOptions="EndAndExpand" Scale="0.6" Source="arrows.png">
<Label Text="Date de publication" Style="{StaticResource TitleLabelStyle}"/>
<ImageButton x:Name="imageArrows" Style="{StaticResource RightIconToolBar}" Source="arrows.png">
<ImageButton.Behaviors>
<toolkit:IconTintColorBehavior TintColor="{StaticResource Primary}"/>
</ImageButton.Behaviors>
@ -29,37 +29,31 @@
</StackLayout>
<SearchBar VerticalOptions="Start" Grid.Row="1" x:Name="searchBar"
Placeholder="Rechercher"
FontSize="16"
BackgroundColor="White"
CancelButtonColor="Grey"
PlaceholderColor="#C7C7CC"/>
<SearchBar Style="{StaticResource SearchBarStyle}"/>
<ScrollView Grid.Row="2">
<StackLayout>
<local:Filtrage Dataname="2022" Margin="0,0,0,5" NumberData="1"/>
<Line BackgroundColor="#E6E6E6" Margin="60,0,0,0"/>
<Line Style="{StaticResource LineStyle}"/>
<local:Filtrage Dataname="2021" Margin="0,0,0,5" NumberData="6"/>
<Line BackgroundColor="#E6E6E6" Margin="60,0,0,0"/>
<Line Style="{StaticResource LineStyle}"/>
<local:Filtrage Dataname="2020" Margin="0,0,0,5" NumberData="6"/>
<Line BackgroundColor="#E6E6E6" Margin="60,0,0,0"/>
<Line Style="{StaticResource LineStyle}"/>
<local:Filtrage Dataname="2019" Margin="0,0,0,5" NumberData="3"/>
<Line BackgroundColor="#E6E6E6" Margin="60,0,0,0"/>
<Line Style="{StaticResource LineStyle}"/>
<local:Filtrage Dataname="2018" Margin="0,0,0,5" NumberData="2"/>
<Line BackgroundColor="#E6E6E6" Margin="60,0,0,0"/>
<Line Style="{StaticResource LineStyle}"/>
<local:Filtrage Dataname="2016" Margin="0,0,0,5" NumberData="4"/>
<Line BackgroundColor="#E6E6E6" Margin="60,0,0,0"/>
<Line Style="{StaticResource LineStyle}"/>
<local:Filtrage Dataname="2015" Margin="0,0,0,5" NumberData="4"/>
<Line BackgroundColor="#E6E6E6" Margin="60,0,0,0"/>
<Line Style="{StaticResource LineStyle}"/>
<local:Filtrage Dataname="2012" Margin="0,0,0,5" NumberData="1"/>
<Line BackgroundColor="#E6E6E6" Margin="60,0,0,0"/>
<Line Style="{StaticResource LineStyle}"/>
<local:Filtrage Dataname="2010" Margin="0,0,0,5" NumberData="1"/>
<Line BackgroundColor="#E6E6E6" Margin="60,0,0,0"/>
<Line Style="{StaticResource LineStyle}"/>
<local:Filtrage Dataname="2004" Margin="0,0,0,5" NumberData="1"/>
<Line BackgroundColor="#E6E6E6" Margin="60,0,0,0"/>
<Line Style="{StaticResource LineStyle}"/>
<local:Filtrage Dataname="1997" Margin="0,0,0,5" NumberData="1"/>
<Line BackgroundColor="#E6E6E6" Margin="60,0,0,0"/>
</StackLayout>

@ -0,0 +1,64 @@
<?xml version="1.0" encoding="utf-8" ?>
<ContentPage xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
x:Class="PocketBook.LaterPage"
xmlns:local="clr-namespace:PocketBook"
xmlns:toolkit="http://schemas.microsoft.com/dotnet/2022/maui/toolkit">
<Grid RowDefinitions="auto, *">
<StackLayout Orientation="Vertical">
<StackLayout Orientation="Horizontal" Padding="5,10,0,10" >
<StackLayout Orientation="Horizontal" HorizontalOptions="StartAndExpand">
<StackLayout.GestureRecognizers>
<TapGestureRecognizer Tapped="RetourMainMenu"/>
</StackLayout.GestureRecognizers>
<Image Source="chevron_left.png">
<Image.Behaviors>
<toolkit:IconTintColorBehavior TintColor="{StaticResource Primary}"/>
</Image.Behaviors>
</Image>
<Label Text="Mes livres" Style="{StaticResource TitleLabelLeftStyle}"/>
</StackLayout>
<Label Text="À lire plus tard" Style="{StaticResource TitleLabelStyle}"/>
<StackLayout HorizontalOptions="EndAndExpand" Orientation="Horizontal">
<ImageButton Source="plus.png" Style="{StaticResource RightIconToolBar2}">
<ImageButton.Behaviors>
<toolkit:IconTintColorBehavior TintColor="{StaticResource Primary}"/>
</ImageButton.Behaviors>
</ImageButton>
<ImageButton x:Name="imageArrows" Style="{StaticResource RightIconToolBar}" Source="arrows.png">
<ImageButton.Behaviors>
<toolkit:IconTintColorBehavior TintColor="{StaticResource Primary}"/>
</ImageButton.Behaviors>
</ImageButton>
</StackLayout>
</StackLayout>
<Line BackgroundColor="#E6E6E6"/>
</StackLayout>
<ScrollView Grid.Row="1">
<VerticalStackLayout>
<local:ContentViewBook BookImage="buveurencre.jpg" BookName="La horde du contrevent" AutorName="Alain Damasio" BookStatus="À lire plus tard"/>
<Line Style="{StaticResource LineStyle3}"/>
<local:ContentViewBook BookImage="buveurencre.jpg" BookName="La zone du dehors" AutorName="Alain Damasio" BookStatus="À lire plus tard"/>
<Line Style="{StaticResource LineStyle3}"/>
<local:ContentViewBook BookImage="buveurencre.jpg" BookName="L'équateur d'Einstein" AutorName="Cixin Liu" BookStatus="À lire plus tard"/>
<Line Style="{StaticResource LineStyle3}"/>
<local:ContentViewBook BookImage="buveurencre.jpg" BookName="La forêt sombre" AutorName="Cixin Liu" BookStatus="À lire plus tard"/>
<Line Style="{StaticResource LineStyle3}"/>
<local:ContentViewBook BookImage="buveurencre.jpg" BookName="Le problème à trois corps" AutorName="Cixin Liu" BookStatus="À lire plus tard"/>
<Line Style="{StaticResource LineStyle3}"/>
<local:ContentViewBook BookImage="buveurencre.jpg" BookName="L'équateur d'Einstein" AutorName="Cixin Liu" BookStatus="À lire plus tard"/>
<Line Style="{StaticResource LineStyle3}"/>
<local:ContentViewBook BookImage="buveurencre.jpg" BookName="La forêt sombre" AutorName="Cixin Liu" BookStatus="À lire plus tard"/>
<Line Style="{StaticResource LineStyle3}"/>
<local:ContentViewBook BookImage="buveurencre.jpg" BookName="Le problème à trois corps" AutorName="Cixin Liu" BookStatus="À lire plus tard"/>
</VerticalStackLayout>
</ScrollView>
</Grid>
</ContentPage>

@ -0,0 +1,21 @@
using CommunityToolkit.Maui.Views;
namespace PocketBook;
public partial class LaterPage : ContentPage
{
public LaterPage()
{
InitializeComponent();
}
private async void RetourMainMenu(object sender, EventArgs e)
{
await Navigation.PopToRootAsync();
}
private void OnImageButtonClicked(object sender, EventArgs e)
{
this.ShowPopup(new AddBook());
}
}

@ -0,0 +1,64 @@
<?xml version="1.0" encoding="utf-8" ?>
<ContentPage xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
x:Class="PocketBook.LikePage"
xmlns:local="clr-namespace:PocketBook"
xmlns:toolkit="http://schemas.microsoft.com/dotnet/2022/maui/toolkit">
<Grid RowDefinitions="auto, *">
<VerticalStackLayout>
<StackLayout Orientation="Horizontal" Padding="5,10,0,10" >
<StackLayout Orientation="Horizontal" HorizontalOptions="StartAndExpand">
<StackLayout.GestureRecognizers>
<TapGestureRecognizer Tapped="RetourMainMenu"/>
</StackLayout.GestureRecognizers>
<Image Source="chevron_left.png">
<Image.Behaviors>
<toolkit:IconTintColorBehavior TintColor="{StaticResource Primary}"/>
</Image.Behaviors>
</Image>
<Label Text="Mes livres" Style="{StaticResource TitleLabelLeftStyle}"/>
</StackLayout>
<Label Text="Favoris" Style="{StaticResource TitleLabelStyle}"/>
<StackLayout HorizontalOptions="EndAndExpand" Orientation="Horizontal">
<ImageButton Style="{StaticResource RightIconToolBar2}" Source="plus.png">
<ImageButton.Behaviors>
<toolkit:IconTintColorBehavior TintColor="{StaticResource Primary}"/>
</ImageButton.Behaviors>
</ImageButton>
<ImageButton x:Name="imageArrows" Style="{StaticResource RightIconToolBar}" Source="arrows.png">
<ImageButton.Behaviors>
<toolkit:IconTintColorBehavior TintColor="{StaticResource Primary}"/>
</ImageButton.Behaviors>
</ImageButton>
</StackLayout>
</StackLayout>
<Line BackgroundColor="#E6E6E6"/>
</VerticalStackLayout>
<ScrollView Grid.Row="1">
<VerticalStackLayout>
<local:ContentViewBook BookImage="buveurencre.jpg" BookName="La horde du contrevent" AutorName="Alain Damasio" BookStatus="À lire plus tard"/>
<Line Style="{StaticResource LineStyle3}"/>
<local:ContentViewBook BookImage="buveurencre.jpg" BookName="La zone du dehors" AutorName="Alain Damasio" BookStatus="À lire plus tard"/>
<Line Style="{StaticResource LineStyle3}"/>
<local:ContentViewBook BookImage="buveurencre.jpg" BookName="L'équateur d'Einstein" AutorName="Cixin Liu" BookStatus="À lire plus tard"/>
<Line Style="{StaticResource LineStyle3}"/>
<local:ContentViewBook BookImage="buveurencre.jpg" BookName="La forêt sombre" AutorName="Cixin Liu" BookStatus="À lire plus tard"/>
<Line Style="{StaticResource LineStyle3}"/>
<local:ContentViewBook BookImage="buveurencre.jpg" BookName="Le problème à trois corps" AutorName="Cixin Liu" BookStatus="À lire plus tard"/>
<Line Style="{StaticResource LineStyle3}"/>
<local:ContentViewBook BookImage="buveurencre.jpg" BookName="L'équateur d'Einstein" AutorName="Cixin Liu" BookStatus="À lire plus tard"/>
<Line Style="{StaticResource LineStyle3}"/>
<local:ContentViewBook BookImage="buveurencre.jpg" BookName="La forêt sombre" AutorName="Cixin Liu" BookStatus="À lire plus tard"/>
<Line Style="{StaticResource LineStyle3}"/>
<local:ContentViewBook BookImage="buveurencre.jpg" BookName="Le problème à trois corps" AutorName="Cixin Liu" BookStatus="À lire plus tard"/>
</VerticalStackLayout>
</ScrollView>
</Grid>
</ContentPage>

@ -0,0 +1,21 @@
using CommunityToolkit.Maui.Views;
namespace PocketBook;
public partial class LikePage : ContentPage
{
public LikePage()
{
InitializeComponent();
}
private async void RetourMainMenu(object sender, EventArgs e)
{
await Navigation.PopToRootAsync();
}
private void OnImageButtonClicked(object sender, EventArgs e)
{
this.ShowPopup(new AddBook());
}
}

@ -0,0 +1,95 @@
<?xml version="1.0" encoding="utf-8" ?>
<ContentPage xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
xmlns:local="clr-namespace:PocketBook"
xmlns:toolkit="http://schemas.microsoft.com/dotnet/2022/maui/toolkit"
x:Class="PocketBook.MainPage">
<ScrollView>
<VerticalStackLayout>
<StackLayout Orientation="Horizontal" Padding="10">
<Label Style="{StaticResource TitleLabelLeftStyleMainPage}" Text="Modifier"/>
<Image Style="{StaticResource RightIconToolBarMainPage}" Scale="0.7" Source="plus.png">
<Image.Behaviors>
<toolkit:IconTintColorBehavior TintColor="{StaticResource Primary}"/>
</Image.Behaviors>
</Image>
</StackLayout>
<Label Style="{StaticResource TitleStyleMainPage}" Text="Mes Livres"/>
<Line BackgroundColor="{StaticResource LineColor1}"/>
<StackLayout Background="{StaticResource BackgroundMainPage}">
<local:ContentViewFilter FilterImageName="tray_second_fill.png" FilterName="Tous" FilterNum="45">
<local:ContentViewFilter.GestureRecognizers>
<TapGestureRecognizer Tapped="OnContentViewFilterTappedTous"/>
</local:ContentViewFilter.GestureRecognizers>
</local:ContentViewFilter>
<Line Style="{StaticResource LineStyle2}"/>
<local:ContentViewFilter FilterImageName="person_badge_clock_fill.png" FilterName="En prêt" FilterNum="1">
<local:ContentViewFilter.GestureRecognizers>
<TapGestureRecognizer Tapped="OnContentViewFilterTappedShare"/>
</local:ContentViewFilter.GestureRecognizers>
</local:ContentViewFilter>
<Line Style="{StaticResource LineStyle2}"/>
<local:ContentViewFilter FilterImageName="arrow_forward.png"
FilterName="A lire plus tard">
<local:ContentViewFilter.GestureRecognizers>
<TapGestureRecognizer Tapped="OnContentViewFilterTappedLater"/>
</local:ContentViewFilter.GestureRecognizers>
</local:ContentViewFilter>
<Line Style="{StaticResource LineStyle2}"/>
<local:ContentViewFilter FilterImageName="eyeglasses.png"
FilterName="Statut de lecture">
<local:ContentViewFilter.GestureRecognizers>
<TapGestureRecognizer Tapped="OnContentViewFilterTappedStatus"/>
</local:ContentViewFilter.GestureRecognizers>
</local:ContentViewFilter>
<Line Style="{StaticResource LineStyle2}"/>
<local:ContentViewFilter FilterImageName="heart_fill.png"
FilterName="Favoris">
<local:ContentViewFilter.GestureRecognizers>
<TapGestureRecognizer Tapped="OnContentViewFilterTappedLike"/>
</local:ContentViewFilter.GestureRecognizers>
</local:ContentViewFilter>
</StackLayout>
<Line BackgroundColor="{StaticResource LineColor1}"/>
<Label Text="Filtres" Style="{StaticResource SecondStyleMainPage}"/>
<Line BackgroundColor="{StaticResource LineColor1}"/>
<StackLayout Background="{StaticResource BackgroundMainPage}">
<local:ContentViewFilter FilterImageName="person_fill.png"
FilterName="Auteur">
<local:ContentViewFilter.GestureRecognizers>
<TapGestureRecognizer Tapped="OnContentViewFilterTappedAuteur"/>
</local:ContentViewFilter.GestureRecognizers>
</local:ContentViewFilter>
<Line Style="{StaticResource LineStyle2}"/>
<local:ContentViewFilter FilterImageName="cal.png"
FilterName="Date de publication">
<local:ContentViewFilter.GestureRecognizers>
<TapGestureRecognizer Tapped="OnContentViewFilterTappedDate"/>
</local:ContentViewFilter.GestureRecognizers>
</local:ContentViewFilter>
<Line Style="{StaticResource LineStyle2}"/>
<local:ContentViewFilter FilterImageName="sparkles.png"
FilterName="Note">
<local:ContentViewFilter.GestureRecognizers>
<TapGestureRecognizer Tapped="OnContentViewFilterTappedMark"/>
</local:ContentViewFilter.GestureRecognizers>
</local:ContentViewFilter>
</StackLayout>
<Line BackgroundColor="{StaticResource LineColor1}"/>
</VerticalStackLayout>
</ScrollView>
</ContentPage>

@ -0,0 +1,47 @@
namespace PocketBook;
public partial class MainPage : ContentPage
{
public MainPage()
{
InitializeComponent();
}
private async void OnContentViewFilterTappedTous(object sender, EventArgs e)
{
await Navigation.PushAsync(new TousPage());
}
private async void OnContentViewFilterTappedAuteur(object sender, EventArgs e)
{
await Navigation.PushAsync(new Auteur());
}
private async void OnContentViewFilterTappedDate(object sender,EventArgs e)
{
await Navigation.PushAsync(new DatePublic());
}
private async void OnContentViewFilterTappedShare(object sender, EventArgs e)
{
await Navigation.PushAsync(new SharePage());
}
private async void OnContentViewFilterTappedLike(object sender, EventArgs e)
{
await Navigation.PushAsync(new LikePage());
}
private async void OnContentViewFilterTappedMark(object sender, EventArgs e)
{
await Navigation.PushAsync(new MarkPage());
}
private async void OnContentViewFilterTappedLater(object sender, EventArgs e)
{
await Navigation.PushAsync(new LaterPage());
}
private async void OnContentViewFilterTappedStatus(object sender, EventArgs e)
{
await Navigation.PushAsync(new StatutPage());
}
}

@ -0,0 +1,47 @@
<?xml version="1.0" encoding="utf-8" ?>
<ContentPage xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
x:Class="PocketBook.MarkPage"
xmlns:local="clr-namespace:PocketBook"
xmlns:toolkit="http://schemas.microsoft.com/dotnet/2022/maui/toolkit">
<Grid RowDefinitions="auto, *">
<StackLayout Orientation="Vertical">
<StackLayout Orientation="Horizontal" VerticalOptions="Start" Padding="5,10,0,10">
<StackLayout Orientation="Horizontal" HorizontalOptions="StartAndExpand">
<StackLayout.GestureRecognizers>
<TapGestureRecognizer Tapped="RetourMainMenu"/>
</StackLayout.GestureRecognizers>
<Image Source="chevron_left.png">
<Image.Behaviors>
<toolkit:IconTintColorBehavior TintColor="{StaticResource Primary}"/>
</Image.Behaviors>
</Image>
</StackLayout>
<Label Text="Note" Style="{StaticResource TitleLabelStyle}"/>
<ImageButton x:Name="imageArrows" Style="{StaticResource RightIconToolBar}" Source="arrows.png">
<ImageButton.Behaviors>
<toolkit:IconTintColorBehavior TintColor="{StaticResource Primary}"/>
</ImageButton.Behaviors>
</ImageButton>
</StackLayout>
<Line BackgroundColor="{StaticResource LineColor1}"/>
</StackLayout>
<ScrollView Grid.Row="2">
<StackLayout>
<local:Filtrage Dataname="★" Margin="0,0,0,5" NumberData="1"/>
<Line Style="{StaticResource LineStyle}"/>
<local:Filtrage Dataname="★★" Margin="0,0,0,5" NumberData="6"/>
<Line Style="{StaticResource LineStyle}"/>
<local:Filtrage Dataname="★★★" Margin="0,0,0,5" NumberData="6"/>
<Line Style="{StaticResource LineStyle}"/>
<local:Filtrage Dataname="★★★★" Margin="0,0,0,5" NumberData="3"/>
<Line Style="{StaticResource LineStyle}"/>
<local:Filtrage Dataname="★★★★★" Margin="0,0,0,5" NumberData="2"/>
</StackLayout>
</ScrollView>
</Grid>
</ContentPage>

@ -0,0 +1,21 @@
using CommunityToolkit.Maui.Views;
namespace PocketBook;
public partial class MarkPage : ContentPage
{
public MarkPage()
{
InitializeComponent();
}
private async void RetourMainMenu(object sender, EventArgs e)
{
await Navigation.PopToRootAsync();
}
private void OnImageButtonClicked(object sender, EventArgs e)
{
this.ShowPopup(new AddBook());
}
}

@ -0,0 +1,53 @@
<?xml version="1.0" encoding="utf-8" ?>
<ContentPage xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
x:Class="PocketBook.SharePage"
Title="SharePage"
xmlns:toolkit="http://schemas.microsoft.com/dotnet/2022/maui/toolkit"
xmlns:local="clr-namespace:PocketBook">
<Grid RowDefinitions="auto, *">
<StackLayout Orientation="Vertical">
<StackLayout Orientation="Horizontal" Padding="5,10,0,10" >
<StackLayout Orientation="Horizontal" HorizontalOptions="StartAndExpand">
<StackLayout.GestureRecognizers>
<TapGestureRecognizer Tapped="RetourMainMenu"/>
</StackLayout.GestureRecognizers>
<Image Source="chevron_left.png">
<Image.Behaviors>
<toolkit:IconTintColorBehavior TintColor="{StaticResource Primary}"/>
</Image.Behaviors>
</Image>
<Label Text="Mes livres" Style="{StaticResource TitleLabelLeftStyle}"/>
</StackLayout>
<Label Text="En prêt" Style="{StaticResource TitleLabelStyle}"/>
<StackLayout HorizontalOptions="EndAndExpand" Orientation="Horizontal">
<ImageButton Style="{StaticResource RightIconToolBar2}" Source="plus.png">
<ImageButton.Behaviors>
<toolkit:IconTintColorBehavior TintColor="{StaticResource Primary}"/>
</ImageButton.Behaviors>
</ImageButton>
<ImageButton x:Name="imageArrows" Style="{StaticResource RightIconToolBar}" Source="arrows.png">
<ImageButton.Behaviors>
<toolkit:IconTintColorBehavior TintColor="{StaticResource Primary}"/>
</ImageButton.Behaviors>
</ImageButton>
</StackLayout>
</StackLayout>
</StackLayout>
<ScrollView Grid.Row="1">
<StackLayout>
<local:TitledAuthor NameText="Antoine"/>
<local:ContentViewBook BookImage="buveurencre.jpg" BookName="La forêt sombre" AutorName="Cixin Liu" BookStatus="Terminé"/>
<local:TitledAuthor NameText="Audrey Pouclet"/>
<local:ContentViewBook BookImage="buveurencre.jpg" BookName="La forêt sombre" AutorName="Cixin Liu" BookStatus="Terminé"/>
</StackLayout>
</ScrollView>
</Grid>
</ContentPage>

@ -0,0 +1,20 @@
using CommunityToolkit.Maui.Views;
namespace PocketBook;
public partial class SharePage : ContentPage
{
public SharePage()
{
InitializeComponent();
}
private async void RetourMainMenu(object sender, EventArgs e)
{
await Navigation.PopToRootAsync();
}
private void OnImageButtonClicked(object sender, EventArgs e)
{
this.ShowPopup(new AddBook());
}
}

@ -0,0 +1,65 @@
<?xml version="1.0" encoding="utf-8" ?>
<ContentPage xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
x:Class="PocketBook.StatutPage"
xmlns:local="clr-namespace:PocketBook"
xmlns:toolkit="http://schemas.microsoft.com/dotnet/2022/maui/toolkit">
<Grid RowDefinitions="auto, *">
<StackLayout Orientation="Vertical">
<StackLayout Orientation="Horizontal" Padding="5,10,0,10" >
<StackLayout Orientation="Horizontal" HorizontalOptions="StartAndExpand">
<StackLayout.GestureRecognizers>
<TapGestureRecognizer Tapped="RetourMainMenu"/>
</StackLayout.GestureRecognizers>
<Image Source="chevron_left.png">
<Image.Behaviors>
<toolkit:IconTintColorBehavior TintColor="{StaticResource Primary}"/>
</Image.Behaviors>
</Image>
<Label Style="{StaticResource TitleLabelLeftStyle}" Text="Mes livres"/>
</StackLayout>
<Label Text="Statut de lecture" Style="{StaticResource TitleLabelStyle}"/>
<StackLayout HorizontalOptions="EndAndExpand" Orientation="Horizontal">
<ImageButton Style="{StaticResource RightIconToolBar2}" Source="plus.png">
<ImageButton.Behaviors>
<toolkit:IconTintColorBehavior TintColor="{StaticResource Primary}"/>
</ImageButton.Behaviors>
</ImageButton>
<ImageButton x:Name="imageArrows" Style="{StaticResource RightIconToolBar}" Source="arrows.png">
<ImageButton.Behaviors>
<toolkit:IconTintColorBehavior TintColor="{StaticResource Primary}"/>
</ImageButton.Behaviors>
</ImageButton>
</StackLayout>
</StackLayout>
<Line BackgroundColor="#E6E6E6"/>
</StackLayout>
<ScrollView Grid.Row="1">
<VerticalStackLayout>
<local:TitledAuthor NameText="Lu"/>
<local:ContentViewBook BookImage="buveurencre.jpg" BookName="La horde du contrevent" AutorName="Alain Damasio" BookStatus="Lu"/>
<Line Style="{StaticResource LineStyle3}"/>
<local:ContentViewBook BookImage="buveurencre.jpg" BookName="La zone du dehors" AutorName="Alain Damasio" BookStatus="Lu"/>
<local:TitledAuthor NameText="À lire"/>
<local:ContentViewBook BookImage="buveurencre.jpg" BookName="L'équateur d'Einstein" AutorName="Cixin Liu" BookStatus="À lire"/>
<Line Style="{StaticResource LineStyle3}"/>
<local:ContentViewBook BookImage="buveurencre.jpg" BookName="La forêt sombre" AutorName="Cixin Liu" BookStatus="À lire"/>
<local:TitledAuthor NameText="Non lu"/>
<local:ContentViewBook BookImage="buveurencre.jpg" BookName="Le problème à trois corps" AutorName="Cixin Liu" BookStatus="Non lu"/>
<Line Style="{StaticResource LineStyle3}"/>
<local:ContentViewBook BookImage="buveurencre.jpg" BookName="L'équateur d'Einstein" AutorName="Cixin Liu" BookStatus="Non lu"/>
<Line Style="{StaticResource LineStyle3}"/>
<local:ContentViewBook BookImage="buveurencre.jpg" BookName="La forêt sombre" AutorName="Cixin Liu" BookStatus="Non lu"/>
<Line Style="{StaticResource LineStyle3}"/>
<local:ContentViewBook BookImage="buveurencre.jpg" BookName="Le problème à trois corps" AutorName="Cixin Liu" BookStatus="Non lu"/>
</VerticalStackLayout>
</ScrollView>
</Grid>
</ContentPage>

@ -0,0 +1,22 @@
using CommunityToolkit.Maui.Views;
namespace PocketBook;
public partial class StatutPage : ContentPage
{
public StatutPage()
{
InitializeComponent();
}
private async void RetourMainMenu(object sender, EventArgs e)
{
await Navigation.PopToRootAsync();
}
private void OnImageButtonClicked(object sender, EventArgs e)
{
this.ShowPopup(new AddBook());
}
}

@ -0,0 +1,99 @@
<?xml version="1.0" encoding="utf-8" ?>
<ContentPage xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
xmlns:local="clr-namespace:PocketBook"
x:Class="PocketBook.TousPage"
xmlns:toolkit="http://schemas.microsoft.com/dotnet/2022/maui/toolkit">
<Grid RowDefinitions="auto, *">
<StackLayout Orientation="Vertical">
<StackLayout Orientation="Horizontal" Padding="5,10,0,10" >
<StackLayout Orientation="Horizontal" HorizontalOptions="StartAndExpand">
<StackLayout.GestureRecognizers>
<TapGestureRecognizer Tapped="RetourMainMenu"/>
</StackLayout.GestureRecognizers>
<Image Source="chevron_left.png">
<Image.Behaviors>
<toolkit:IconTintColorBehavior TintColor="{StaticResource Primary}"/>
</Image.Behaviors>
</Image>
<Label Text="Mes livres" Style="{StaticResource TitleLabelLeftStyle}"/>
</StackLayout>
<Label Text="Tous" Style="{StaticResource TitleLabelStyle}"/>
<StackLayout HorizontalOptions="EndAndExpand" Orientation="Horizontal">
<ImageButton Style="{StaticResource RightIconToolBar2}" Source="plus.png">
<ImageButton.Behaviors>
<toolkit:IconTintColorBehavior TintColor="{StaticResource Primary}"/>
</ImageButton.Behaviors>
</ImageButton>
<ImageButton x:Name="imageArrows" Style="{StaticResource RightIconToolBar}" Source="arrows.png">
<ImageButton.Behaviors>
<toolkit:IconTintColorBehavior TintColor="{StaticResource Primary}"/>
</ImageButton.Behaviors>
</ImageButton>
</StackLayout>
</StackLayout>
<Line BackgroundColor="{StaticResource LineColor1}"/>
</StackLayout>
<ScrollView Grid.Row="1">
<VerticalStackLayout>
<local:TitledAuthor NameText="Alain Damasio"/>
<local:ContentViewBook BookImage="buveurencre.jpg" BookName="La horde du contrevent" AutorName="Alain Damasio" BookStatus="Non lu">
<local:ContentViewBook.GestureRecognizers>
<TapGestureRecognizer Tapped="OnBookSelected"/>
</local:ContentViewBook.GestureRecognizers>
</local:ContentViewBook>
<Line Style="{StaticResource LineStyle3}"/>
<local:ContentViewBook BookImage="buveurencre.jpg" BookName="La zone du dehors" AutorName="Alain Damasio" BookStatus="Terminé">
<local:ContentViewBook.GestureRecognizers>
<TapGestureRecognizer Tapped="OnBookSelected"/>
</local:ContentViewBook.GestureRecognizers>
</local:ContentViewBook>
<local:TitledAuthor NameText="Cixin Lui"/>
<local:ContentViewBook BookImage="buveurencre.jpg" BookName="L'équateur d'Einstein" AutorName="Cixin Liu" BookStatus="Terminé">
<local:ContentViewBook.GestureRecognizers>
<TapGestureRecognizer Tapped="OnBookSelected"/>
</local:ContentViewBook.GestureRecognizers>
</local:ContentViewBook>
<Line Style="{StaticResource LineStyle3}"/>
<local:ContentViewBook BookImage="buveurencre.jpg" BookName="La forêt sombre" AutorName="Cixin Liu" BookStatus="Terminé">
<local:ContentViewBook.GestureRecognizers>
<TapGestureRecognizer Tapped="OnBookSelected"/>
</local:ContentViewBook.GestureRecognizers>
</local:ContentViewBook>
<Line Style="{StaticResource LineStyle3}"/>
<local:ContentViewBook BookImage="buveurencre.jpg" BookName="Le problème à trois corps" AutorName="Cixin Liu" BookStatus="Terminé">
<local:ContentViewBook.GestureRecognizers>
<TapGestureRecognizer Tapped="OnBookSelected"/>
</local:ContentViewBook.GestureRecognizers>
</local:ContentViewBook>
<Line Style="{StaticResource LineStyle3}"/>
<local:ContentViewBook BookImage="buveurencre.jpg" BookName="L'équateur d'Einstein" AutorName="Cixin Liu" BookStatus="Terminé">
<local:ContentViewBook.GestureRecognizers>
<TapGestureRecognizer Tapped="OnBookSelected"/>
</local:ContentViewBook.GestureRecognizers>
</local:ContentViewBook>
<Line Style="{StaticResource LineStyle3}"/>
<local:ContentViewBook BookImage="buveurencre.jpg" BookName="La forêt sombre" AutorName="Cixin Liu" BookStatus="Terminé">
<local:ContentViewBook.GestureRecognizers>
<TapGestureRecognizer Tapped="OnBookSelected"/>
</local:ContentViewBook.GestureRecognizers>
</local:ContentViewBook>
<Line Style="{StaticResource LineStyle3}"/>
<local:ContentViewBook BookImage="buveurencre.jpg" BookName="Le problème à trois corps" AutorName="Cixin Liu" BookStatus="Terminé">
<local:ContentViewBook.GestureRecognizers>
<TapGestureRecognizer Tapped="OnBookSelected"/>
</local:ContentViewBook.GestureRecognizers>
</local:ContentViewBook>
</VerticalStackLayout>
</ScrollView>
</Grid>
</ContentPage>

@ -56,28 +56,49 @@
</ItemGroup>
<ItemGroup>
<MauiXaml Update="AddBook.xaml">
<MauiXaml Update="Pages\Composants\ContentView\TitledAuthor.xaml">
<Generator>MSBuild:Compile</Generator>
</MauiXaml>
<MauiXaml Update="Auteur.xaml">
<MauiXaml Update="Pages\Composants\Popup\AddBook.xaml">
<Generator>MSBuild:Compile</Generator>
</MauiXaml>
<MauiXaml Update="BookChange.xaml">
<MauiXaml Update="Pages\Auteur.xaml">
<Generator>MSBuild:Compile</Generator>
</MauiXaml>
<MauiXaml Update="BookDetail.xaml">
<MauiXaml Update="Pages\Composants\ContentView\BookChange.xaml">
<Generator>MSBuild:Compile</Generator>
</MauiXaml>
<MauiXaml Update="ContentViewBook.xaml">
<MauiXaml Update="Pages\BookDetail.xaml">
<Generator>MSBuild:Compile</Generator>
</MauiXaml>
<MauiXaml Update="ContentViewFilter.xaml">
<MauiXaml Update="Pages\Composants\ContentView\ContentViewBook.xaml">
<Generator>MSBuild:Compile</Generator>
</MauiXaml>
<MauiXaml Update="Pages\Composants\ContentView\ContentViewFilter.xaml">
<Generator>MSBuild:Compile</Generator>
</MauiXaml>
<MauiXaml Update="Pages\LaterPage.xaml">
<Generator>MSBuild:Compile</Generator>
</MauiXaml>
<MauiXaml Update="Pages\LikePage.xaml">
<Generator>MSBuild:Compile</Generator>
</MauiXaml>
<MauiXaml Update="Pages\MarkPage.xaml">
<Generator>MSBuild:Compile</Generator>
</MauiXaml>
<MauiXaml Update="NewContent1.xaml">
<Generator>MSBuild:Compile</Generator>
</MauiXaml>
<MauiXaml Update="TousPage.xaml">
<MauiXaml Update="Pages\SharePage.xaml">
<Generator>MSBuild:Compile</Generator>
</MauiXaml>
<MauiXaml Update="Pages\Composants\ContentView\Stars.xaml">
<Generator>MSBuild:Compile</Generator>
</MauiXaml>
<MauiXaml Update="Pages\StatutPage.xaml">
<Generator>MSBuild:Compile</Generator>
</MauiXaml>
<MauiXaml Update="Pages\TousPage.xaml">
<Generator>MSBuild:Compile</Generator>
</MauiXaml>
</ItemGroup>
@ -99,8 +120,8 @@
<None Remove="Resources\Images\books_vertical.svg" />
<None Remove="Resources\Images\buveurencre.jpg" />
<None Remove="Resources\Images\caca.svg" />
<None Remove="Resources\Images\cal.png" />
<None Remove="Resources\Images\calendar_badge_clock.svg" />
<None Remove="Resources\Images\calendar.svg" />
<None Remove="Resources\Images\chevron_left.svg" />
<None Remove="Resources\Images\chevron_right.svg" />
<None Remove="Resources\Images\dotnet_bot.svg" />
@ -132,6 +153,10 @@
<None Remove="Resources\Images\tray_second_fill.svg" />
<None Remove="Resources\Images\tray_second.svg" />
</ItemGroup>
<ItemGroup>
<MauiImage Include="Resources\Images\cal.png" />
</ItemGroup>
<ItemGroup>
<MauiImage Include="Resources\Images\arrow_forward.svg" />
<MauiImage Include="Resources\Images\arrows.svg" />
@ -149,7 +174,6 @@
<MauiImage Include="Resources\Images\buveurencre.jpg" />
<MauiImage Include="Resources\Images\book.svg" />
<MauiImage Include="Resources\Images\calendar_badge_clock.svg" />
<MauiImage Include="Resources\Images\calendar.svg" />
<MauiImage Include="Resources\Images\chevron_left.svg" />
<MauiImage Include="Resources\Images\chevron_right.svg" />
<MauiImage Include="Resources\Images\dotnet_bot.svg" />
@ -181,6 +205,11 @@
<MauiImage Include="Resources\Images\tray_second_fill.svg" />
<MauiImage Include="Resources\Images\tray_second.svg" />
</ItemGroup>
<ItemGroup>
<Compile Update="Pages\StatutPage.xaml.cs">
<DependentUpon>StatutPage.xaml</DependentUpon>
</Compile>
</ItemGroup>
<ProjectExtensions><VisualStudio><UserProperties XamarinHotReloadDebuggerTimeoutExceptionPocketBookHideInfoBar="True" /></VisualStudio></ProjectExtensions>
</Project>

Binary file not shown.

After

Width:  |  Height:  |  Size: 170 B

@ -1,20 +0,0 @@
<svg width="32" height="30" viewBox="0 0 32 30" fill="none" xmlns="http://www.w3.org/2000/svg">
<g clip-path="url(#clip0_2124_82363)" filter="url(#filter0_d_2124_82363)">
<path d="M7.67969 21.5977H23.6875C26.1367 21.5977 27.3555 20.3789 27.3555 17.9648V3.65625C27.3555 1.24219 26.1367 0.0234375 23.6875 0.0234375H7.67969C5.23047 0.0234375 4 1.23047 4 3.65625V17.9648C4 20.3906 5.23047 21.5977 7.67969 21.5977ZM7.50391 19.7109C6.46094 19.7109 5.88672 19.1602 5.88672 18.0703V7.01953C5.88672 5.94141 6.46094 5.37891 7.50391 5.37891H23.8398C24.8828 5.37891 25.4688 5.94141 25.4688 7.01953V18.0703C25.4688 19.1602 24.8828 19.7109 23.8398 19.7109H7.50391ZM13.3984 9.58594H14.0898C14.5 9.58594 14.6289 9.46875 14.6289 9.05859V8.36719C14.6289 7.95703 14.5 7.82812 14.0898 7.82812H13.3984C12.9883 7.82812 12.8477 7.95703 12.8477 8.36719V9.05859C12.8477 9.46875 12.9883 9.58594 13.3984 9.58594ZM17.2891 9.58594H17.9805C18.3906 9.58594 18.5312 9.46875 18.5312 9.05859V8.36719C18.5312 7.95703 18.3906 7.82812 17.9805 7.82812H17.2891C16.8789 7.82812 16.7383 7.95703 16.7383 8.36719V9.05859C16.7383 9.46875 16.8789 9.58594 17.2891 9.58594ZM21.1797 9.58594H21.8711C22.2812 9.58594 22.4219 9.46875 22.4219 9.05859V8.36719C22.4219 7.95703 22.2812 7.82812 21.8711 7.82812H21.1797C20.7695 7.82812 20.6406 7.95703 20.6406 8.36719V9.05859C20.6406 9.46875 20.7695 9.58594 21.1797 9.58594ZM9.50781 13.418H10.1875C10.6094 13.418 10.7383 13.3008 10.7383 12.8906V12.1992C10.7383 11.7891 10.6094 11.6719 10.1875 11.6719H9.50781C9.08594 11.6719 8.95703 11.7891 8.95703 12.1992V12.8906C8.95703 13.3008 9.08594 13.418 9.50781 13.418ZM13.3984 13.418H14.0898C14.5 13.418 14.6289 13.3008 14.6289 12.8906V12.1992C14.6289 11.7891 14.5 11.6719 14.0898 11.6719H13.3984C12.9883 11.6719 12.8477 11.7891 12.8477 12.1992V12.8906C12.8477 13.3008 12.9883 13.418 13.3984 13.418ZM17.2891 13.418H17.9805C18.3906 13.418 18.5312 13.3008 18.5312 12.8906V12.1992C18.5312 11.7891 18.3906 11.6719 17.9805 11.6719H17.2891C16.8789 11.6719 16.7383 11.7891 16.7383 12.1992V12.8906C16.7383 13.3008 16.8789 13.418 17.2891 13.418ZM21.1797 13.418H21.8711C22.2812 13.418 22.4219 13.3008 22.4219 12.8906V12.1992C22.4219 11.7891 22.2812 11.6719 21.8711 11.6719H21.1797C20.7695 11.6719 20.6406 11.7891 20.6406 12.1992V12.8906C20.6406 13.3008 20.7695 13.418 21.1797 13.418ZM9.50781 17.2617H10.1875C10.6094 17.2617 10.7383 17.1328 10.7383 16.7227V16.0312C10.7383 15.6211 10.6094 15.5039 10.1875 15.5039H9.50781C9.08594 15.5039 8.95703 15.6211 8.95703 16.0312V16.7227C8.95703 17.1328 9.08594 17.2617 9.50781 17.2617ZM13.3984 17.2617H14.0898C14.5 17.2617 14.6289 17.1328 14.6289 16.7227V16.0312C14.6289 15.6211 14.5 15.5039 14.0898 15.5039H13.3984C12.9883 15.5039 12.8477 15.6211 12.8477 16.0312V16.7227C12.8477 17.1328 12.9883 17.2617 13.3984 17.2617ZM17.2891 17.2617H17.9805C18.3906 17.2617 18.5312 17.1328 18.5312 16.7227V16.0312C18.5312 15.6211 18.3906 15.5039 17.9805 15.5039H17.2891C16.8789 15.5039 16.7383 15.6211 16.7383 16.0312V16.7227C16.7383 17.1328 16.8789 17.2617 17.2891 17.2617Z" fill="black" fill-opacity="0.85"/>
</g>
<defs>
<filter id="filter0_d_2124_82363" x="0" y="0" width="31.3555" height="29.5977" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB">
<feFlood flood-opacity="0" result="BackgroundImageFix"/>
<feColorMatrix in="SourceAlpha" type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0" result="hardAlpha"/>
<feOffset dy="4"/>
<feGaussianBlur stdDeviation="2"/>
<feComposite in2="hardAlpha" operator="out"/>
<feColorMatrix type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.25 0"/>
<feBlend mode="normal" in2="BackgroundImageFix" result="effect1_dropShadow_2124_82363"/>
<feBlend mode="normal" in="SourceGraphic" in2="effect1_dropShadow_2124_82363" result="shape"/>
</filter>
<clipPath id="clip0_2124_82363">
<rect width="23.3555" height="21.5977" fill="white" transform="translate(4)"/>
</clipPath>
</defs>
</svg>

Before

Width:  |  Height:  |  Size: 3.8 KiB

@ -41,4 +41,11 @@
<Color x:Key="Blue200Accent">#72ACF1</Color>
<Color x:Key="Blue300Accent">#A7CBF6</Color>
<Color x:Key="LineColor1">#E6E6E6</Color>
<Color x:Key="TopBackgroundGrey">#F2F1F6</Color>
<Color x:Key="BackgroundMainPage">#F8F8F8</Color>
<Color x:Key="FontColor1">#9D9D9D</Color>
<Color x:Key="FontColor2">#AFAFAF</Color>
</ResourceDictionary>

@ -402,4 +402,118 @@
<Setter Property="SelectedTabColor" Value="{AppThemeBinding Light={StaticResource Gray950}, Dark={StaticResource Gray200}}" />
</Style>
<Style x:Key="TitleLabelLeftStyle" TargetType="Label">
<Setter Property="FontAttributes" Value="Bold" />
<Setter Property="FontSize" Value="16" />
<Setter Property="TextColor" Value="{StaticResource Primary}"/>
<Setter Property="VerticalTextAlignment" Value="Center" />
<Setter Property="HorizontalOptions" Value="CenterAndExpand" />
</Style>
<Style x:Key="TitleLabelLeftStyleMainPage" TargetType="Label">
<Setter Property="FontSize" Value="16" />
<Setter Property="TextColor" Value="{StaticResource Primary}"/>
<Setter Property="VerticalTextAlignment" Value="Center" />
<Setter Property="HorizontalOptions" Value="StartAndExpand" />
</Style>
<Style x:Key="TitleLabelStyle" TargetType="Label">
<Setter Property="FontAttributes" Value="Bold" />
<Setter Property="FontSize" Value="18"/>
<Setter Property="VerticalTextAlignment" Value="Center" />
<Setter Property="HorizontalOptions" Value="Center" />
</Style>
<Style x:Key="TitleLabelStyleDetailBook" TargetType="Label">
<Setter Property="FontAttributes" Value="Bold" />
<Setter Property="FontSize" Value="18"/>
<Setter Property="VerticalTextAlignment" Value="Center" />
<Setter Property="HorizontalOptions" Value="CenterAndExpand" />
</Style>
<Style x:Key="RightIconToolBarMainPage" TargetType="ImageButton">
<Setter Property="WidthRequest" Value="25"/>
<Setter Property="HeightRequest" Value="25"/>
<Setter Property="HorizontalOptions" Value="EndAndExpand"/>
</Style>
<Style x:Key="RightIconToolBar" TargetType="ImageButton">
<Setter Property="WidthRequest" Value="25"/>
<Setter Property="HeightRequest" Value="25"/>
<Setter Property="HorizontalOptions" Value="EndAndExpand"/>
<Setter Property="Margin" Value="10,0,10,0"/>
</Style>
<Style x:Key="RightIconToolBar2" TargetType="ImageButton">
<Setter Property="WidthRequest" Value="20"/>
<Setter Property="HeightRequest" Value="20"/>
<Setter Property="HorizontalOptions" Value="StartAndExpand"/>
<Setter Property="VerticalOptions" Value="Center"/>
</Style>
<Style x:Key="LineStyle" TargetType="Line">
<Setter Property="BackgroundColor" Value="{StaticResource LineColor1}"/>
<Setter Property="Margin" Value="60,0,0,0"/>
</Style>
<Style x:Key="LineStyle2" TargetType="Line">
<Setter Property="BackgroundColor" Value="{StaticResource LineColor1}"/>
<Setter Property="Margin" Value="25,0,0,0"/>
</Style>
<Style x:Key="LineStyle3" TargetType="Line">
<Setter Property="BackgroundColor" Value="{StaticResource LineColor1}"/>
<Setter Property="Margin" Value="15,0,0,0"/>
</Style>
<Style x:Key="TitleStyleMainPage" TargetType="Label">
<Setter Property="Padding" Value="15,0,0,0"/>
<Setter Property="FontSize" Value="38"/>
<Setter Property="FontAttributes" Value="Bold"/>
<Setter Property="Margin" Value="0,0,10,10"/>
</Style>
<Style x:Key="SecondStyleMainPage" TargetType="Label">
<Setter Property="Padding" Value="20,20,0,20"/>
<Setter Property="FontSize" Value="20"/>
<Setter Property="FontAttributes" Value="Bold"/>
</Style>
<Style x:Key="LabelStyleDetailBook" TargetType="Label">
<Setter Property="TextColor" Value="{StaticResource FontColor1}"/>
<Setter Property="FontSize" Value="20"/>
<Setter Property="Margin" Value="0,10,0,0"/>
</Style>
<Style x:Key="LabelStyleDetailBook2" TargetType="Label">
<Setter Property="TextColor" Value="{StaticResource FontColor1}"/>
<Setter Property="FontSize" Value="18"/>
<Setter Property="Margin" Value="0,0,15,0"/>
<Setter Property="HorizontalOptions" Value="EndAndExpand"/>
</Style>
<Style x:Key="LabelStyleDetailBook3" TargetType="Label">
<Setter Property="FontSize" Value="14"/>
<Setter Property="FontAttributes" Value="Bold"/>
<Setter Property="Margin" Value="10,10,0,5"/>
</Style>
<Style x:Key="LabelStyleDetailBook4" TargetType="Label">
<Setter Property="FontSize" Value="18"/>
<Setter Property="TextColor" Value="{StaticResource FontColor1}"/>
<Setter Property="Margin" Value="10,0,0,10"/>
</Style>
<Style x:Key="SearchBarStyle" TargetType="SearchBar">
<Setter Property="Grid.Row" Value="1"/>
<Setter Property="VerticalOptions" Value="Start"/>
<Setter Property="Placeholder" Value="Rechercher"/>
<Setter Property="FontSize" Value="16"/>
<Setter Property="BackgroundColor" Value="Transparent"/>
<Setter Property="CancelButtonColor" Value="Grey"/>
<Setter Property="PlaceholderColor" Value="#C7C7CC"/>
</Style>
</ResourceDictionary>

@ -1,83 +0,0 @@
<?xml version="1.0" encoding="utf-8" ?>
<ContentPage xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
xmlns:local="clr-namespace:PocketBook"
x:Class="PocketBook.TousPage"
xmlns:toolkit="http://schemas.microsoft.com/dotnet/2022/maui/toolkit">
<Grid RowDefinitions="auto, *">
<StackLayout Orientation="Vertical">
<StackLayout Orientation="Horizontal" Padding="5,0,0,0" >
<StackLayout Orientation="Horizontal" HorizontalOptions="StartAndExpand">
<StackLayout.GestureRecognizers>
<TapGestureRecognizer Tapped="RetourMainMenu"/>
</StackLayout.GestureRecognizers>
<Image Source="chevron_left.png">
<Image.Behaviors>
<toolkit:IconTintColorBehavior TintColor="{StaticResource Primary}"/>
</Image.Behaviors>
</Image>
<Label VerticalTextAlignment="Center" Text="Mes livres" FontAttributes="Bold" TextColor="{StaticResource Primary}" FontSize="15" Margin="5,0,0,0"/>
</StackLayout>
<Label Text="Tous" FontAttributes="Bold" FontSize="18" VerticalTextAlignment="Center" HorizontalOptions="Center" Margin="0,0,10,0"/>
<StackLayout HorizontalOptions="EndAndExpand" Orientation="Horizontal">
<ImageButton VerticalOptions="Center" Clicked="OnImageButtonClicked" HorizontalOptions="StartAndExpand" Source="plus.png" Scale="0.5">
<ImageButton.Behaviors>
<toolkit:IconTintColorBehavior TintColor="{StaticResource Primary}"/>
</ImageButton.Behaviors>
</ImageButton>
<ImageButton x:Name="imageArrows" WidthRequest="25" HeightRequest="25" HorizontalOptions="End" Scale="0.6" Source="arrows.png">
<ImageButton.Behaviors>
<toolkit:IconTintColorBehavior TintColor="{StaticResource Primary}"/>
</ImageButton.Behaviors>
</ImageButton>
</StackLayout>
</StackLayout>
<Line BackgroundColor="#E6E6E6"/>
</StackLayout>
<ScrollView Grid.Row="1">
<VerticalStackLayout>
<StackLayout BackgroundColor="#F8F8F8" Padding="5">
<Label Text="Alain Damasio" TextColor="#AFAFAF" FontAttributes="Bold" Margin="15,0,0,0" />
</StackLayout>
<local:ContentViewBook BookImage="buveurencre.jpg" BookName="La horde du contrevent" AutorName="Alain Damasio" BookStatus="Non lu">
<local:ContentViewBook.GestureRecognizers>
<TapGestureRecognizer Tapped="OnBookSelected"/>
</local:ContentViewBook.GestureRecognizers>
</local:ContentViewBook>
<Line BackgroundColor="#E6E6E6" Margin="15,0,0,0"/>
<local:ContentViewBook BookImage="buveurencre.jpg" BookName="La zone du dehors" AutorName="Alain Damasio" BookStatus="Terminé">
<local:ContentViewBook.GestureRecognizers>
<TapGestureRecognizer Tapped="OnBookSelected"/>
</local:ContentViewBook.GestureRecognizers>
</local:ContentViewBook>
<StackLayout BackgroundColor="#F8F8F8" Padding="5">
<Label Text="Cixin Liu" TextColor="#AFAFAF" FontAttributes="Bold" Margin="15,0,0,0" />
</StackLayout>
<local:ContentViewBook BookImage="buveurencre.jpg" BookName="L'équateur d'Einstein" AutorName="Cixin Liu" BookStatus="Terminé">
<local:ContentViewBook.GestureRecognizers>
<TapGestureRecognizer Tapped="OnBookSelected"/>
</local:ContentViewBook.GestureRecognizers>
</local:ContentViewBook>
<Line BackgroundColor="#E6E6E6" Margin="15,0,0,0"/>
<local:ContentViewBook BookImage="buveurencre.jpg" BookName="La forêt sombre" AutorName="Cixin Liu" BookStatus="Terminé">
<local:ContentViewBook.GestureRecognizers>
<TapGestureRecognizer Tapped="OnBookSelected"/>
</local:ContentViewBook.GestureRecognizers>
</local:ContentViewBook>
<Line BackgroundColor="#E6E6E6" Margin="15,0,0,0"/>
<local:ContentViewBook BookImage="buveurencre.jpg" BookName="Le problème à trois corps" AutorName="Cixin Liu" BookStatus="Terminé">
<local:ContentViewBook.GestureRecognizers>
<TapGestureRecognizer Tapped="OnBookSelected"/>
</local:ContentViewBook.GestureRecognizers>
</local:ContentViewBook>
</VerticalStackLayout>
</ScrollView>
</Grid>
</ContentPage>
Loading…
Cancel
Save