From 0b6c21521bf67e24971c0f7e765e67319e7d5f57 Mon Sep 17 00:00:00 2001 From: luevard Date: Wed, 6 Sep 2023 12:32:28 +0200 Subject: [PATCH] :lipstick: fin de la page de la main page, debut de navigation et de la page Tous --- sources/PocketBook/Auteur.xaml | 14 +++++++++++ sources/PocketBook/Auteur.xaml.cs | 9 +++++++ sources/PocketBook/ContentViewFilter.xaml | 2 +- sources/PocketBook/ContentViewFilter.xaml.cs | 5 +++- sources/PocketBook/MainPage.xaml | 24 ++++++++++++++++--- sources/PocketBook/MainPage.xaml.cs | 11 +++++++-- sources/PocketBook/PocketBook.csproj | 6 +++++ .../PocketBook/Resources/Images/arrows.svg | 5 ++++ .../Resources/Images/chevron_left.svg | 3 +++ sources/PocketBook/TousPage.xaml | 19 +++++++++++++++ sources/PocketBook/TousPage.xaml.cs | 10 ++++++++ 11 files changed, 101 insertions(+), 7 deletions(-) create mode 100644 sources/PocketBook/Auteur.xaml create mode 100644 sources/PocketBook/Auteur.xaml.cs create mode 100644 sources/PocketBook/Resources/Images/arrows.svg create mode 100644 sources/PocketBook/Resources/Images/chevron_left.svg create mode 100644 sources/PocketBook/TousPage.xaml create mode 100644 sources/PocketBook/TousPage.xaml.cs diff --git a/sources/PocketBook/Auteur.xaml b/sources/PocketBook/Auteur.xaml new file mode 100644 index 0000000..e449401 --- /dev/null +++ b/sources/PocketBook/Auteur.xaml @@ -0,0 +1,14 @@ + + + + + + + \ No newline at end of file diff --git a/sources/PocketBook/Auteur.xaml.cs b/sources/PocketBook/Auteur.xaml.cs new file mode 100644 index 0000000..093ca89 --- /dev/null +++ b/sources/PocketBook/Auteur.xaml.cs @@ -0,0 +1,9 @@ +namespace PocketBook; + +public partial class Auteur : ContentPage +{ + public Auteur() + { + InitializeComponent(); + } +} \ No newline at end of file diff --git a/sources/PocketBook/ContentViewFilter.xaml b/sources/PocketBook/ContentViewFilter.xaml index f760d1c..57bd611 100644 --- a/sources/PocketBook/ContentViewFilter.xaml +++ b/sources/PocketBook/ContentViewFilter.xaml @@ -5,7 +5,7 @@ - + diff --git a/sources/PocketBook/MainPage.xaml.cs b/sources/PocketBook/MainPage.xaml.cs index b970a6b..afcad9d 100644 --- a/sources/PocketBook/MainPage.xaml.cs +++ b/sources/PocketBook/MainPage.xaml.cs @@ -2,11 +2,18 @@ public partial class MainPage : ContentPage { - int count = 0; - 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()); + } } diff --git a/sources/PocketBook/PocketBook.csproj b/sources/PocketBook/PocketBook.csproj index 6195046..7c83ab2 100644 --- a/sources/PocketBook/PocketBook.csproj +++ b/sources/PocketBook/PocketBook.csproj @@ -53,12 +53,18 @@ + + MSBuild:Compile + MSBuild:Compile MSBuild:Compile + + MSBuild:Compile + diff --git a/sources/PocketBook/Resources/Images/arrows.svg b/sources/PocketBook/Resources/Images/arrows.svg new file mode 100644 index 0000000..7562729 --- /dev/null +++ b/sources/PocketBook/Resources/Images/arrows.svg @@ -0,0 +1,5 @@ + + + + + \ No newline at end of file diff --git a/sources/PocketBook/Resources/Images/chevron_left.svg b/sources/PocketBook/Resources/Images/chevron_left.svg new file mode 100644 index 0000000..018f8b6 --- /dev/null +++ b/sources/PocketBook/Resources/Images/chevron_left.svg @@ -0,0 +1,3 @@ + + + \ No newline at end of file diff --git a/sources/PocketBook/TousPage.xaml b/sources/PocketBook/TousPage.xaml new file mode 100644 index 0000000..e6e4c37 --- /dev/null +++ b/sources/PocketBook/TousPage.xaml @@ -0,0 +1,19 @@ + + + + + + + + + + diff --git a/sources/PocketBook/TousPage.xaml.cs b/sources/PocketBook/TousPage.xaml.cs new file mode 100644 index 0000000..36bba43 --- /dev/null +++ b/sources/PocketBook/TousPage.xaml.cs @@ -0,0 +1,10 @@ +namespace PocketBook; + +public partial class TousPage : ContentPage +{ + public TousPage() + { + InitializeComponent(); + } + +} \ No newline at end of file