Mise en propre

Leana BESSON 2 years ago
parent 551e5a2c0f
commit 980e4bf098

File diff suppressed because it is too large Load Diff

@ -1,5 +1,6 @@
using System;
using System.Collections.Generic;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
@ -13,7 +14,9 @@ namespace Model
public System() { }
public void ChangeColor()
{
theme_color = false;
if (theme_color = true)
theme_color = false;
else theme_color = true;
}
public void RechercheAnimal(string nom)
{
@ -28,10 +31,7 @@ namespace Model
{
num_page = num_page - 1;
}
public void Suivant()
{
num_page = num_page + 1;
}
}
}

@ -8,13 +8,13 @@
<ShellContent
Title="Home"
Title="Accueil"
FlyoutIcon="icone_home.png"
ContentTemplate="{DataTemplate local:MainPage}"
Route="MainPage"/>
<ShellContent
Title="Espece"
Title="Espèce"
FlyoutIcon="icone_animaux1.png"
ContentTemplate="{DataTemplate local:NewPage1}"
Route="NewPage1" />
@ -24,11 +24,11 @@
ContentTemplate="{DataTemplate local:NewPage2}"
Route="NewPage2" />
<ShellContent
Title="Details especes"
Title="Détail espèce"
ContentTemplate="{DataTemplate local:NewPage3}"
Route="NewPage3" />
<ShellContent
Title="Details races"
Title="Détail race"
ContentTemplate="{DataTemplate local:NewPage4}"
Route="NewPage4" />

@ -10,12 +10,6 @@
Padding="30,0"
VerticalOptions="Start">
<Button
x:Name="CounterBtn"
Text="Click me"
SemanticProperties.Hint="Counts the number of times you click"
Clicked="OnCounterClicked"
HorizontalOptions="Center" />
</VerticalStackLayout>
</ScrollView>

@ -2,10 +2,10 @@
<ContentPage xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
x:Class="essai1.NewPage1"
Title="Espece Adoptable">
Title="Wikipet's">
<VerticalStackLayout
Spacing="45"
Padding="50,0">
Padding="5,15">
<HorizontalStackLayout
Spacing="25"
@ -14,45 +14,40 @@
Source="icone_retour.png"
HeightRequest="50"
HorizontalOptions="Start"/>
<Label
Text="retour"
SemanticProperties.HeadingLevel="Level1"
FontSize="50"
HorizontalOptions="Start"/>
</HorizontalStackLayout>
<Label
Text="Liste des animaux de compagnie :"
<Label
Text="Les espèces"
SemanticProperties.HeadingLevel="Level1"
FontSize="30"
FontSize="40"
HorizontalOptions="Start"
TextDecorations="Underline"/>
</HorizontalStackLayout>
<HorizontalStackLayout
Spacing="25"
Padding="30,0">
<StackLayout BackgroundColor="{StaticResource Primary}">
<Image Source="chien.jpg" HeightRequest="200" />
<StackLayout BackgroundColor="{StaticResource Primary}" HeightRequest="300" WidthRequest="250" Padding="0, 25">
<Image Source="chien.jpg" HeightRequest="200" WidthRequest="200" />
<Label Text="Chien" FontSize="25" Margin="15" TextColor="{StaticResource Secondary}" HorizontalOptions="Center"/>
</StackLayout>
<StackLayout BackgroundColor="{StaticResource Primary}">
<Image Source="chat.jpg" HeightRequest="200" />
<StackLayout BackgroundColor="{StaticResource Primary}" HeightRequest="300" WidthRequest="250" Padding="0, 25">
<Image Source="chat.jpg" HeightRequest="200" WidthRequest="200" />
<Label Text="Chat" FontSize="25" Margin="15" TextColor="{StaticResource Secondary}" HorizontalOptions="Center"/>
</StackLayout>
<StackLayout BackgroundColor="{StaticResource Primary}">
<Image Source="furet.jpg" HeightRequest="200" />
<StackLayout BackgroundColor="{StaticResource Primary}" HeightRequest="300" WidthRequest="250" Padding="0, 25">
<Image Source="furet.jpg" HeightRequest="200" WidthRequest="200"/>
<Label Text="Furet" FontSize="25" Margin="15" TextColor="{StaticResource Secondary}" HorizontalOptions="Center"/>
</StackLayout>
<StackLayout BackgroundColor="{StaticResource Primary}">
<Image Source="hamster.jpg" HeightRequest="200" />
<StackLayout BackgroundColor="{StaticResource Primary}" HeightRequest="300" WidthRequest="250" Padding="0, 25">
<Image Source="hamster.jpg" HeightRequest="200" WidthRequest="200"/>
<Label Text="Hamster" FontSize="25" Margin="15" TextColor="{StaticResource Secondary}" HorizontalOptions="Center"/>
</StackLayout>
<StackLayout BackgroundColor="{StaticResource Primary}">
<Image Source="poissonrouge.jpg" HeightRequest="200" />
<StackLayout BackgroundColor="{StaticResource Primary}" HeightRequest="300" WidthRequest="250" Padding="0, 25">
<Image Source="poissonrouge.jpg" HeightRequest="200" WidthRequest="200"/>
<Label Text="Poison Rouge" FontSize="25" Margin="15" TextColor="{StaticResource Secondary}" HorizontalOptions="Center"/>
</StackLayout>

@ -2,26 +2,37 @@
<ContentPage xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
x:Class="essai1.NewPage2"
Title="Vos animaux">
Title="Wikipet's">
<VerticalStackLayout
Spacing="45"
Padding="50,0">
<Label
Text="Bienvenue dans votre liste d'animaux :"
FontSize="40"
VerticalOptions="Start"
HorizontalOptions="Start" />
Padding="5,5">
<HorizontalStackLayout
Spacing="25"
Padding="30,0">
<Image
Source="icone_retour.png"
HeightRequest="50"
HorizontalOptions="Start"/>
<Label
Text="Vos animaux"
SemanticProperties.HeadingLevel="Level1"
FontSize="40"
HorizontalOptions="Start"
TextDecorations="Underline"/>
</HorizontalStackLayout>
<HorizontalStackLayout
Spacing="45">
<StackLayout BackgroundColor="{StaticResource Primary}">
<Image Source="chien.jpg" HeightRequest="200" />
<Label Text="Chien" FontSize="25" Margin="15" TextColor="{StaticResource Secondary}" HorizontalOptions="Center"/>
Spacing="25"
Padding="30,0">
<StackLayout BackgroundColor="{StaticResource Primary}" HeightRequest="300" WidthRequest="250" Padding="0, 25">
<Image Source="chien.jpg" HeightRequest="200" WidthRequest="200" />
<Label Text="Kikki" FontSize="25" Margin="15" TextColor="{StaticResource Secondary}" HorizontalOptions="Center"/>
</StackLayout>
<StackLayout BackgroundColor="{StaticResource Primary}">
<Image Source="chat.jpg" HeightRequest="200" />
<Label Text="Chat" FontSize="25" Margin="15" TextColor="{StaticResource Secondary}" HorizontalOptions="Center"/>
<StackLayout BackgroundColor="{StaticResource Primary}" HeightRequest="300" WidthRequest="250" Padding="0, 25">
<Image Source="chat.jpg" HeightRequest="200" WidthRequest="200" />
<Label Text="Pouette-Pouette" FontSize="25" Margin="15" TextColor="{StaticResource Secondary}" HorizontalOptions="Center"/>
</StackLayout>
</HorizontalStackLayout>

@ -2,7 +2,7 @@
<ContentPage xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
x:Class="essai1.NewPage3"
Title="Details Espèces">
Title="Wikipet's">
<ScrollView>
<VerticalStackLayout
Spacing="45"
@ -12,11 +12,12 @@
Source="icone_retour.png"
HeightRequest="50"
HorizontalOptions="Start"/>
<Label
Text="Chien"
VerticalOptions="Start"
HorizontalOptions="Start"
FontSize="50"/>
<Label
Text="Chien"
SemanticProperties.HeadingLevel="Level1"
FontSize="40"
HorizontalOptions="Start"
TextDecorations="Underline"/>
</HorizontalStackLayout>
@ -68,19 +69,19 @@
TextDecorations="Underline"/>
<HorizontalStackLayout
Spacing="45">
<StackLayout BackgroundColor="{StaticResource Primary}">
<Image Source="chien_berger_australien.jpg" HeightRequest="200" />
<StackLayout BackgroundColor="{StaticResource Primary}" HeightRequest="300" WidthRequest="250" Padding="0, 25">
<Image Source="chien_berger_australien.jpg" HeightRequest="200" WidthRequest="200"/>
<Label Text="Berger Australien" FontSize="25" Margin="15" TextColor="{StaticResource Secondary}" HorizontalOptions="Center"/>
</StackLayout>
<StackLayout BackgroundColor="{StaticResource Primary}">
<Image Source="chien_boxer.webp" HeightRequest="200" />
<StackLayout BackgroundColor="{StaticResource Primary}" HeightRequest="300" WidthRequest="250" Padding="0, 25">
<Image Source="chien_boxer.webp" HeightRequest="200" WidthRequest="200"/>
<Label Text="Boxer" FontSize="25" Margin="15" TextColor="{StaticResource Secondary}" HorizontalOptions="Center"/>
</StackLayout>
<StackLayout BackgroundColor="{StaticResource Primary}">
<Image Source="chien_chiwawa.jpg" HeightRequest="200" />
<StackLayout BackgroundColor="{StaticResource Primary}" HeightRequest="300" WidthRequest="250" Padding="0, 25">
<Image Source="chien_chiwawa.jpg" HeightRequest="200" WidthRequest="200"/>
<Label Text="Chiwawa" FontSize="25" Margin="15" TextColor="{StaticResource Secondary}" HorizontalOptions="Center"/>
</StackLayout>
</HorizontalStackLayout>

@ -2,7 +2,7 @@
<ContentPage xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
x:Class="essai1.NewPage4"
Title="Details Races">
Title="Wikipet's">
<VerticalStackLayout
Spacing="45"
Padding="50,0">
@ -11,11 +11,12 @@
Source="icone_retour.png"
HeightRequest="50"
HorizontalOptions="Start"/>
<Label
Text="Chien : berger australien"
VerticalOptions="Start"
HorizontalOptions="Start"
FontSize="50"/>
<Label
Text="Berger Australien"
SemanticProperties.HeadingLevel="Level1"
FontSize="40"
HorizontalOptions="Start"
TextDecorations="Underline"/>
</HorizontalStackLayout>

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.9 KiB

After

Width:  |  Height:  |  Size: 12 KiB

Loading…
Cancel
Save