@ -2,21 +2,18 @@
<ContentPage xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
<ContentPage xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
x:Class="PocketBook.BookDetail"
x:Class="PocketBook.BookDetail"
xmlns:local="clr-namespace:PocketBook"
Title="BookDetail">
Title="BookDetail">
<Grid>
<Grid.RowDefinitions>
<!-- StackLayout Orientation="Vertical">
<RowDefinition Height="Auto" />
<RowDefinition Height="*" />
</Grid.RowDefinitions>
<StackLayout Orientation="Vertical">
<StackLayout Grid.Row="0" Orientation="Horizontal" BackgroundColor="#F2F1F6" Padding="0,10,60,20">
<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étails du livre" FontAttributes="Bold" FontSize="18" VerticalTextAlignment="Center" HorizontalOptions="CenterAndExpand"/>
</StackLayout>
</StackLayout>
<Line BackgroundColor="#E6E6E6"/>
<Line BackgroundColor="#E6E6E6"/>
</StackLayout>
</StackLayout> -->
<ScrollView Grid.Row="1" >
<ScrollView>
<StackLayout>
<StackLayout>
<StackLayout Orientation="Horizontal" Margin="15,0,0,20">
<StackLayout Orientation="Horizontal" Margin="15,0,0,20">
@ -25,13 +22,7 @@
<StackLayout Orientation="Vertical">
<StackLayout Orientation="Vertical">
<Label x:Name="titreBook" FontAttributes="Bold" Margin="0,25,0,0"/>
<Label x:Name="titreBook" FontAttributes="Bold" Margin="0,25,0,0"/>
<StackLayout Orientation="Horizontal" Margin="0,90,0,0">
<Label Text="★★★★★" TextColor="#D1D1D1" Margin="0,90,0,0"/>
<Image Source="star.svg" WidthRequest="20"/>
<Image Source="star.svg" WidthRequest="20"/>
<Image Source="star.svg" WidthRequest="20"/>
<Image Source="star.svg" WidthRequest="20"/>
<Image Source="star.svg" WidthRequest="20"/>
</StackLayout>
</StackLayout>
</StackLayout>
</StackLayout>
</StackLayout>
<StackLayout Margin="15,0,0,0">
<StackLayout Margin="15,0,0,0">
@ -43,79 +34,61 @@
<Line BackgroundColor="#D0D0D2" />
<Line BackgroundColor="#D0D0D2" />
<StackLayout Margin="10,10,0,10">
<StackLayout Margin="10,10,0,10">
<Label Text="Auteur" FontSize="16" FontAttributes="Bold"/>
<Label Text="Auteur" FontSize="16" FontAttributes="Bold"/>
<Label x:Name="bookAuteur" FontSize="20" Margin="0,10,0,0"/>
<Label x:Name="bookAuteur" TextColor="#9D9D9D" FontSize="20" Margin="0,10,0,0"/>
</StackLayout>
</StackLayout>
<Line BackgroundColor="#D0D0D2" />
<Line BackgroundColor="#D0D0D2" />
<StackLayout Margin="10,10,0,10">
<StackLayout Margin="10,10,0,10">
<Label Text="Maison d'édition" FontSize="16" FontAttributes="Bold"/>
<Label Text="Maison d'édition" FontSize="16" FontAttributes="Bold"/>
<Label x:Name="bookEdition" FontSize="20" Margin="0,10,0,0"/>
<Label x:Name="bookEdition" TextColor="#9D9D9D" FontSize="20" Margin="0,10,0,0"/>
</StackLayout>
</StackLayout>
<Line BackgroundColor="#D0D0D2" />
<Line BackgroundColor="#D0D0D2" />
<StackLayout Margin="10,10,0,10">
<StackLayout Margin="10,10,0,10">
<Label Text="Résumé" FontSize="16" FontAttributes="Bold"/>
<Label Text="Résumé" FontSize="16" FontAttributes="Bold"/>
<Label x:Name="bookResume" 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.
<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"/>
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>
</StackLayout>
<Line BackgroundColor="#D0D0D2" />
<Line BackgroundColor="#D0D0D2" />
<StackLayout Margin="0,10,0,10">
<StackLayout Margin="0,10,0,10">
<Label Text="Détails" FontSize="16 " Margin="10,0,0,5" FontAttributes="Bold"/>
<Label Text="Détails" FontSize="14 " Margin="10,0,0,5" FontAttributes="Bold"/>
<StackLayout Orientation="Horizontal">
<StackLayout Orientation="Horizontal">
<Label Text="Nombre de pages" Margin="10,0,0,5" FontSize="20 "/>
<Label Text="Nombre de pages" TextColor="#9D9D9D" Margin="10,0,0,5" FontSize="18 "/>
<Label FontSize="20" x:Name="bookNbPages " HorizontalOptions="EndAndExpand" Margin="10,0,15,0"/>
<Label FontSize="18" x:Name="bookNbPages" TextColor="#9D9D9D " HorizontalOptions="EndAndExpand" Margin="10,0,15,0"/>
</StackLayout>
</StackLayout>
<StackLayout Orientation="Horizontal">
<StackLayout Orientation="Horizontal">
<Label Text="Langue" Margin="10,0,0,5" FontSize="20 "/>
<Label Text="Langue" TextColor="#9D9D9D" Margin="10,0,0,5" FontSize="18 "/>
<Label x:Name="bookLangue" FontSize="20 " HorizontalOptions="EndAndExpand" Margin="10,0,15,0"/>
<Label x:Name="bookLangue" FontSize="18" TextColor="#9D9D9D " HorizontalOptions="EndAndExpand" Margin="10,0,15,0"/>
</StackLayout>
</StackLayout>
<StackLayout Orientation="Horizontal" Margin="10,0,0,10">
<StackLayout Orientation="Horizontal" Margin="10,0,0,10">
<Label Text="ISBN" FontSize="20 "/>
<Label Text="ISBN" TextColor="#9D9D9D" FontSize="18 "/>
<Label x:Name="bookISBN" FontSize="20 " HorizontalOptions="EndAndExpand" Margin="0,0,15,0"/>
<Label x:Name="bookISBN" TextColor="#9D9D9D" FontSize="18 " HorizontalOptions="EndAndExpand" Margin="0,0,15,0"/>
</StackLayout>
</StackLayout>
<Line BackgroundColor="#D0D0D2"/>
<Line BackgroundColor="#D0D0D2"/>
<Label Text="Statut de lecture" FontSize="16 " Margin="10,10,0,5" FontAttributes="Bold"/>
<Label Text="Statut de lecture" FontSize="14 " Margin="10,10,0,5" FontAttributes="Bold"/>
<StackLayout Orientation="Horizontal">
<StackLayout Orientation="Horizontal">
<Label Text="Statut" Margin="10,0,0,5" FontSize="20 "/>
<Label Text="Statut" TextColor="#9D9D9D" Margin="10,0,0,5" FontSize="18 "/>
<Label x:Name="bookStatus" FontSize="20 " HorizontalOptions="EndAndExpand" Margin="0,0,15,0"/>
<Label x:Name="bookStatus" TextColor="#9D9D9D" FontSize="18 " HorizontalOptions="EndAndExpand" Margin="0,0,15,0"/>
</StackLayout>
</StackLayout>
<Line BackgroundColor="#D0D0D2"/>
<Line BackgroundColor="#D0D0D2"/>
<Label Text="Bibliothèque" FontSize="16 " Margin="10,10,0,5" FontAttributes="Bold"/>
<Label Text="Bibliothèque" FontSize="14 " Margin="10,10,0,5" FontAttributes="Bold"/>
<StackLayout Orientation="Horizontal">
<StackLayout Orientation="Horizontal">
<Label Text="Ajouté le" Margin="10,0,0,10" FontSize="20 "/>
<Label Text="Ajouté le" TextColor="#9D9D9D" Margin="10,0,0,10" FontSize="18 "/>
<Label x:Name="bookAdd" FontSize="20 " HorizontalOptions="EndAndExpand" Margin="0,0,15,0"/>
<Label x:Name="bookAdd" TextColor="#9D9D9D" FontSize="18 " HorizontalOptions="EndAndExpand" Margin="0,0,15,0"/>
</StackLayout>
</StackLayout>
<Line BackgroundColor="#D0D0D2"/>
<Line BackgroundColor="#D0D0D2"/>
<StackLayout Padding="50"/>
<StackLayout Padding="50"/>
<Line BackgroundColor="#D0D0D2"/>
<Line BackgroundColor="#D0D0D2"/>
<StackLayout Orientation="Horizontal" Margin="10,15,0,15">
<local:BookChange PropertyName="Déplacer le livre" ImageName="folder.svg"/>
<Image Source="person.svg" WidthRequest="30" HeightRequest="30" />
<Label Text="Déplacer le livre" TextColor="{StaticResource Primary}" FontAttributes="Bold" VerticalOptions="Center" Margin="15,0,0,0"/>
</StackLayout>
<Line BackgroundColor="#D0D0D2"/>
<Line BackgroundColor="#D0D0D2"/>
<StackLayout Orientation="Horizontal" Margin="10,15,0,15">
<local:BookChange PropertyName="Ajouter à la liste à lire plus tard" ImageName="plus_round.svg"/>
<Image Source="person.svg" WidthRequest="30" HeightRequest="30" />
<Label Text="Ajouter à la liste à lire plus tard" TextColor="{StaticResource Primary}" FontAttributes="Bold" VerticalOptions="Center" Margin="15,0,0,0"/>
</StackLayout>
<Line BackgroundColor="#D0D0D2"/>
<Line BackgroundColor="#D0D0D2"/>
<StackLayout Orientation="Horizontal" Margin="10,15,0,15">
<local:BookChange PropertyName="Changer le statut de lecture" ImageName="eyeglasses.svg"/>
<Image Source="person.svg" WidthRequest="30" HeightRequest="30" />
<Label Text="Changer le statut de lecture" TextColor="{StaticResource Primary}" FontAttributes="Bold" VerticalOptions="Center" Margin="15,0,0,0"/>
</StackLayout>
<Line BackgroundColor="#D0D0D2"/>
<Line BackgroundColor="#D0D0D2"/>
<local:BookChange PropertyName="Prêter le livre" ImageName="person.svg"/>
<StackLayout Orientation="Horizontal" Margin="10,15,0,15">
<Image Source="person.svg" WidthRequest="30" HeightRequest="30" />
<Label Text="Prêter le livre" TextColor="{StaticResource Primary}" FontAttributes="Bold" VerticalOptions="Center" Margin="15,0,0,0"/>
</StackLayout>
<Line BackgroundColor="#D0D0D2"/>
</StackLayout>
</StackLayout>
</StackLayout>
</StackLayout>
</StackLayout>
</StackLayout>
</ScrollView>
</ScrollView>
</Grid>
</ContentPage>
</ContentPage>