splashPages

pull/36/head
Leo TUAILLON 2 years ago
parent bb33e695d6
commit c46fcace90

@ -73,5 +73,9 @@
Title="My Recipes Page"
ContentTemplate="{DataTemplate pages:MyRecipesPage}"
Route="MyRecipes" />
<ShellContent
Title="Splash"
ContentTemplate="{DataTemplate pages:Splash}"
Route="Splash" />
</TabBar>
</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();
}
}

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

Loading…
Cancel
Save