Merge pull request 'splashPages' (#36) from xaml/splash into master

Reviewed-on: ShopNCook/ShopNCook#36
pull/39/head
Leo TUAILLON 2 years ago
commit 7f5f8b84f1

@ -73,5 +73,9 @@
Title="My Recipes Page" Title="My Recipes Page"
ContentTemplate="{DataTemplate pages:MyRecipesPage}" ContentTemplate="{DataTemplate pages:MyRecipesPage}"
Route="MyRecipes" /> Route="MyRecipes" />
<ShellContent
Title="Splash"
ContentTemplate="{DataTemplate pages:Splash}"
Route="Splash" />
</TabBar> </TabBar>
</Shell> </Shell>

@ -0,0 +1,37 @@
<?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="ShoopNCook.Pages.Splash"
Title="Splash">
<Grid
RowDefinitions="Auto,Auto,*,Auto">
<Image Grid.Row="0"
Source="logo.png"
Margin="0,80,0,0">
</Image>
<Label
Grid.Row="1"
Text="ShopNCook"
Style="{StaticResource h1}"
TextColor="{StaticResource TextColorPrimary}"
HorizontalTextAlignment="Center"
Margin="0,25,0,25"
/>
<Label
Grid.Row="2"
Text="Don't waste time planning your meals ! Eat better, faster, better !"
Style="{StaticResource h2}"
TextColor="{StaticResource TextColorSecondary}"
HorizontalTextAlignment="Center"
FontSize="Small"
Margin="15"
/>
<Button
Grid.Row="3"
BackgroundColor="{StaticResource Selected}"
FontFamily="PoppinsMedium"
TextColor="{StaticResource ButtonText}"
Text="Let's Get Started ➝"
Margin="25"/>
</Grid>
</ContentPage>

@ -0,0 +1,9 @@
namespace ShoopNCook.Pages;
public partial class Splash : ContentPage
{
public Splash()
{
InitializeComponent();
}
}

@ -90,6 +90,9 @@
</ItemGroup> </ItemGroup>
<ItemGroup> <ItemGroup>
<MauiXaml Update="Pages\Splash.xaml">
<Generator>MSBuild:Compile</Generator>
</MauiXaml>
<MauiXaml Update="Views\CounterView.xaml"> <MauiXaml Update="Views\CounterView.xaml">
<Generator>MSBuild:Compile</Generator> <Generator>MSBuild:Compile</Generator>
</MauiXaml> </MauiXaml>

Loading…
Cancel
Save