last fixes before PR

pull/12/head
maxime.BATISTA@etu.uca.fr 2 years ago
parent a58d30ee3f
commit 8dd44358ae

@ -1,4 +1,3 @@
<?xml version="1.0" encoding="UTF-8" ?> <?xml version="1.0" encoding="UTF-8" ?>
<Shell <Shell
x:Class="ShoopNCook.AppShell" x:Class="ShoopNCook.AppShell"

@ -1,53 +1,53 @@
<Project Sdk="Microsoft.NET.Sdk"> <Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup> <PropertyGroup>
<TargetFrameworks>net7.0-android;net7.0-ios;net7.0-maccatalyst</TargetFrameworks> <TargetFrameworks>net7.0-android;net7.0-ios;net7.0-maccatalyst</TargetFrameworks>
<TargetFrameworks Condition="$([MSBuild]::IsOSPlatform('windows'))">$(TargetFrameworks);net7.0-windows10.0.19041.0</TargetFrameworks> <TargetFrameworks Condition="$([MSBuild]::IsOSPlatform('windows'))">$(TargetFrameworks);net7.0-windows10.0.19041.0</TargetFrameworks>
<!-- Uncomment to also build the tizen app. You will need to install tizen by following this: https://github.com/Samsung/Tizen.NET --> <!-- Uncomment to also build the tizen app. You will need to install tizen by following this: https://github.com/Samsung/Tizen.NET -->
<!-- <TargetFrameworks>$(TargetFrameworks);net7.0-tizen</TargetFrameworks> --> <!-- <TargetFrameworks>$(TargetFrameworks);net7.0-tizen</TargetFrameworks> -->
<OutputType>Exe</OutputType> <OutputType>Exe</OutputType>
<RootNamespace>ShoopNCook</RootNamespace> <RootNamespace>ShoopNCook</RootNamespace>
<UseMaui>true</UseMaui> <UseMaui>true</UseMaui>
<SingleProject>true</SingleProject> <SingleProject>true</SingleProject>
<ImplicitUsings>enable</ImplicitUsings> <ImplicitUsings>enable</ImplicitUsings>
<!-- Display name --> <!-- Display name -->
<ApplicationTitle>ShoopNCook</ApplicationTitle> <ApplicationTitle>ShoopNCook</ApplicationTitle>
<!-- App Identifier --> <!-- App Identifier -->
<ApplicationId>com.companyname.shoopncook</ApplicationId> <ApplicationId>com.companyname.shoopncook</ApplicationId>
<ApplicationIdGuid>bf17e1fe-a722-42f6-a24d-3327d351c924</ApplicationIdGuid> <ApplicationIdGuid>bf17e1fe-a722-42f6-a24d-3327d351c924</ApplicationIdGuid>
<!-- Versions --> <!-- Versions -->
<ApplicationDisplayVersion>1.0</ApplicationDisplayVersion> <ApplicationDisplayVersion>1.0</ApplicationDisplayVersion>
<ApplicationVersion>1</ApplicationVersion> <ApplicationVersion>1</ApplicationVersion>
<SupportedOSPlatformVersion Condition="$([MSBuild]::GetTargetPlatformIdentifier('$(TargetFramework)')) == 'ios'">11.0</SupportedOSPlatformVersion> <SupportedOSPlatformVersion Condition="$([MSBuild]::GetTargetPlatformIdentifier('$(TargetFramework)')) == 'ios'">11.0</SupportedOSPlatformVersion>
<SupportedOSPlatformVersion Condition="$([MSBuild]::GetTargetPlatformIdentifier('$(TargetFramework)')) == 'maccatalyst'">13.1</SupportedOSPlatformVersion> <SupportedOSPlatformVersion Condition="$([MSBuild]::GetTargetPlatformIdentifier('$(TargetFramework)')) == 'maccatalyst'">13.1</SupportedOSPlatformVersion>
<SupportedOSPlatformVersion Condition="$([MSBuild]::GetTargetPlatformIdentifier('$(TargetFramework)')) == 'android'">21.0</SupportedOSPlatformVersion> <SupportedOSPlatformVersion Condition="$([MSBuild]::GetTargetPlatformIdentifier('$(TargetFramework)')) == 'android'">21.0</SupportedOSPlatformVersion>
<SupportedOSPlatformVersion Condition="$([MSBuild]::GetTargetPlatformIdentifier('$(TargetFramework)')) == 'windows'">10.0.17763.0</SupportedOSPlatformVersion> <SupportedOSPlatformVersion Condition="$([MSBuild]::GetTargetPlatformIdentifier('$(TargetFramework)')) == 'windows'">10.0.17763.0</SupportedOSPlatformVersion>
<TargetPlatformMinVersion Condition="$([MSBuild]::GetTargetPlatformIdentifier('$(TargetFramework)')) == 'windows'">10.0.17763.0</TargetPlatformMinVersion> <TargetPlatformMinVersion Condition="$([MSBuild]::GetTargetPlatformIdentifier('$(TargetFramework)')) == 'windows'">10.0.17763.0</TargetPlatformMinVersion>
<SupportedOSPlatformVersion Condition="$([MSBuild]::GetTargetPlatformIdentifier('$(TargetFramework)')) == 'tizen'">6.5</SupportedOSPlatformVersion> <SupportedOSPlatformVersion Condition="$([MSBuild]::GetTargetPlatformIdentifier('$(TargetFramework)')) == 'tizen'">6.5</SupportedOSPlatformVersion>
</PropertyGroup> </PropertyGroup>
<ItemGroup> <ItemGroup>
<!-- App Icon --> <!-- App Icon -->
<MauiIcon Include="Resources\AppIcon\appicon.svg" ForegroundFile="Resources\AppIcon\appiconfg.svg" Color="#512BD4" /> <MauiIcon Include="Resources\AppIcon\appicon.svg" ForegroundFile="Resources\AppIcon\appiconfg.svg" Color="#512BD4" />
<!-- Splash Screen --> <!-- Splash Screen -->
<MauiSplashScreen Include="Resources\Splash\splash.svg" Color="#512BD4" BaseSize="128,128" /> <MauiSplashScreen Include="Resources\Splash\splash.svg" Color="#512BD4" BaseSize="128,128" />
<!-- Images --> <!-- Images -->
<MauiImage Include="Resources\Images\*" /> <MauiImage Include="Resources\Images\*" />
<MauiImage Update="Resources\Images\dotnet_bot.svg" BaseSize="168,208" /> <MauiImage Update="Resources\Images\dotnet_bot.svg" BaseSize="168,208" />
<!-- Custom Fonts --> <!-- Custom Fonts -->
<MauiFont Include="Resources\Fonts\*" /> <MauiFont Include="Resources\Fonts\*" />
<!-- Raw Assets (also remove the "Resources\Raw" prefix) --> <!-- Raw Assets (also remove the "Resources\Raw" prefix) -->
<MauiAsset Include="Resources\Raw\**" LogicalName="%(RecursiveDir)%(Filename)%(Extension)" /> <MauiAsset Include="Resources\Raw\**" LogicalName="%(RecursiveDir)%(Filename)%(Extension)" />
</ItemGroup> </ItemGroup>
<ItemGroup> <ItemGroup>
<None Remove="Resources\Fonts\Poppins-Bold.ttf" /> <None Remove="Resources\Fonts\Poppins-Bold.ttf" />
<None Remove="Resources\Images\email_icon.svg" /> <None Remove="Resources\Images\email_icon.svg" />
@ -55,25 +55,25 @@
<None Remove="Resources\Images\password_icon.svg" /> <None Remove="Resources\Images\password_icon.svg" />
<None Remove="Resources\Images\visibility_off.svg" /> <None Remove="Resources\Images\visibility_off.svg" />
<None Remove="Resources\Images\visibility_on.svg" /> <None Remove="Resources\Images\visibility_on.svg" />
</ItemGroup> </ItemGroup>
<ItemGroup> <ItemGroup>
<None Remove="Resources\Fonts\arrow_back_ios_FILL0_wght400_GRAD200_opsz48.svg" /> <None Remove="Resources\Fonts\arrow_back_ios_FILL0_wght400_GRAD200_opsz48.svg" />
<None Remove="Resources\Images\default_profile_picture.png" /> <None Remove="Resources\Images\default_profile_picture.png" />
</ItemGroup> </ItemGroup>
<ItemGroup> <ItemGroup>
<MauiFont Include="Resources\Images\arrow_back.svg" /> <MauiFont Include="Resources\Images\arrow_back.svg" />
</ItemGroup> </ItemGroup>
<ItemGroup> <ItemGroup>
<PackageReference Include="Microsoft.Extensions.Logging.Debug" Version="7.0.0" /> <PackageReference Include="Microsoft.Extensions.Logging.Debug" Version="7.0.0" />
</ItemGroup> </ItemGroup>
<ItemGroup> <ItemGroup>
<MauiXaml Update="Views\ProfilePage.xaml"> <MauiXaml Update="Views\ProfilePage.xaml">
<Generator>MSBuild:Compile</Generator> <Generator>MSBuild:Compile</Generator>
</MauiXaml> </MauiXaml>
</ItemGroup> </ItemGroup>
</Project> </Project>

@ -5,126 +5,137 @@
Title="ProfilePage" Title="ProfilePage"
BackgroundColor="{StaticResource BackgroundPrimary}"> BackgroundColor="{StaticResource BackgroundPrimary}">
<Grid <ScrollView>
Margin="20"
RowDefinitions="Auto, *, Auto, Auto">
<!-- Profile and return button -->
<Grid <Grid
Grid.Row="0" Margin="20"
RowDefinitions="Auto, *" RowDefinitions="Auto, Auto, Auto, *">
ColumnDefinitions="*, 1.5*"
Margin="0, 0, 0, 40"> <!-- Profile label and return button -->
<HorizontalStackLayout> <Grid
<ImageButton Grid.Row="0"
Grid.Column="0" RowDefinitions="Auto, *"
ColumnDefinitions="*, 1.5*"
Margin="0, 0, 0, 40">
<HorizontalStackLayout>
<ImageButton
Grid.Column="0"
HeightRequest="50" HeightRequest="50"
WidthRequest="50" WidthRequest="50"
Source="arrow_back.svg"/> Source="arrow_back.svg"/>
</HorizontalStackLayout> </HorizontalStackLayout>
<Label <Label
Grid.Column="1" Grid.Column="1"
FontSize="24" FontSize="24"
TextColor="{StaticResource TextColorPrimary}" TextColor="{StaticResource TextColorPrimary}"
Text="Profile" Text="Profile"
FontFamily="PoppinsBold" FontFamily="PoppinsBold"
VerticalOptions="Center"/> VerticalOptions="Center"/>
</Grid> </Grid>
<!-- Profile picture and name --> <!-- Profile picture and name -->
<Grid <Grid
Grid.Row="1" Grid.Row="1"
RowDefinitions="*, Auto, Auto"> RowDefinitions="*, Auto, Auto">
<Border <Border
Grid.Row="0"
StrokeShape="RoundRectangle 10000"
MaximumHeightRequest="150"
HorizontalOptions="Center"
Stroke="{StaticResource BackgroundPrimary}"
BackgroundColor="{StaticResource BackgroundSecondary}">
<ImageButton
Grid.Row="0" Grid.Row="0"
Source="default_profile_picture.png"/> StrokeShape="RoundRectangle 10000"
</Border> MaximumHeightRequest="150"
MaximumWidthRequest="150"
HorizontalOptions="Center"
Stroke="{StaticResource BackgroundPrimary}"
BackgroundColor="{StaticResource BackgroundSecondary}">
<ImageButton
Grid.Row="0"
Source="default_profile_picture.png"/>
</Border>
<Label <Label
Grid.Row="1" Grid.Row="1"
FontSize="30" FontSize="30"
HorizontalOptions="Center" HorizontalOptions="Center"
TextColor="{StaticResource TextColorPrimary}" TextColor="{StaticResource TextColorPrimary}"
Text="%Profile_Name%" Text="%Profile_Name%"
FontFamily="PoppinsBold"/> FontFamily="PoppinsBold"/>
<Label <Label
Grid.Row="2"
FontSize="16"
HorizontalOptions="Center"
TextColor="{StaticResource TextColorSecondary}"
Text="Profile settings"
FontFamily="PoppinsBold"/>
</Grid>
<!-- User inputs -->
<Grid
Grid.Row="2" Grid.Row="2"
FontSize="16" Margin="0, 20, 0, 0"
HorizontalOptions="Center" RowDefinitions="Auto, *, Auto, *">
TextColor="{StaticResource TextColorSecondary}" <Label
Text="Profile settings" Grid.Row="0"
FontFamily="PoppinsBold"/> Text="Name"
FontFamily="PoppinsBold"
TextColor="{StaticResource TextColorSecondary}"/>
</Grid> <Border
Grid.Row="1"
StrokeShape="RoundRectangle 12"
Stroke="{StaticResource BackgroundSecondary}">
<Entry
TextColor="{StaticResource TextColorPrimary}"
PlaceholderColor="{StaticResource TextColorSecondary}"
BackgroundColor="{StaticResource BackgroundSecondary}"
Text="%Profile_Name%"
Placeholder="Place your name here"/>
</Border>
<Grid <Label
Grid.Row="2" Grid.Row="2"
Margin="0, 20, 0, 0" Text="Your Email"
RowDefinitions="Auto, *, Auto, *"> FontFamily="PoppinsBold"
<Label TextColor="{StaticResource TextColorSecondary}"/>
Grid.Row="0" <Border
Text="Name" Grid.Row="3"
FontFamily="PoppinsBold" StrokeShape="RoundRectangle 12"
TextColor="{StaticResource TextColorSecondary}"/> Stroke="{StaticResource BackgroundSecondary}">
<Entry
TextColor="{StaticResource TextColorPrimary}"
PlaceholderColor="{StaticResource TextColorSecondary}"
BackgroundColor="{StaticResource BackgroundSecondary}"
Text="%Profile_Mail%"
FontFamily="PoppinsBold"
Placeholder="Place your mail address here"/>
</Border>
<Border </Grid>
Grid.Row="1"
StrokeShape="RoundRectangle 12"
Stroke="{StaticResource BackgroundSecondary}">
<Entry
TextColor="{StaticResource TextColorPrimary}"
PlaceholderColor="{StaticResource TextColorSecondary}"
BackgroundColor="{StaticResource BackgroundSecondary}"
Text="%Profile_Name%"
Placeholder="Place your name here"/>
</Border>
<Label
Grid.Row="2" <!-- Save button -->
Text="Your Email"
FontFamily="PoppinsBold" <VerticalStackLayout
TextColor="{StaticResource TextColorSecondary}"/>
<Border
Grid.Row="3" Grid.Row="3"
StrokeShape="RoundRectangle 12" VerticalOptions="End">
Stroke="{StaticResource BackgroundSecondary}"> <Border
<Entry Margin="0, 30, 0, 0"
TextColor="{StaticResource TextColorPrimary}" Stroke="{StaticResource BackgroundPrimary}"
PlaceholderColor="{StaticResource TextColorSecondary}" StrokeShape="RoundRectangle 12">
BackgroundColor="{StaticResource BackgroundSecondary}" <Label
Text="%Profile_Mail%" HeightRequest="50"
FontFamily="PoppinsBold" BackgroundColor="{StaticResource ActionButton}"
Placeholder="Place your mail address here"/> HorizontalTextAlignment="Center"
</Border> VerticalTextAlignment="Center"
FontFamily="PoppinsBold"
Text="SAVE"/>
</Border>
</VerticalStackLayout>
</Grid>
</Grid>
<Border </ScrollView>
Grid.Row="4"
Margin="0, 30, 0, 0"
Stroke="{StaticResource BackgroundPrimary}"
StrokeShape="RoundRectangle 12">
<Label
HeightRequest="50"
BackgroundColor="{StaticResource ActionButton}"
HorizontalTextAlignment="Center"
VerticalTextAlignment="Center"
FontFamily="PoppinsBold"
Text="LOG IN"/>
</Border>
</Grid>
</ContentPage> </ContentPage>
Loading…
Cancel
Save