parent
0675e731d4
commit
5d66ff129e
@ -1,29 +1,29 @@
|
|||||||
<?xml version="1.0" encoding="utf-8" ?>
|
<?xml version="1.0" encoding="utf-8" ?>
|
||||||
<ContentView xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
|
<ContentView 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="ShoopNCook.Views.StepEntry">
|
x:Class="ShoopNCook.Views.StepEntry">
|
||||||
<VerticalStackLayout>
|
<VerticalStackLayout>
|
||||||
<HorizontalStackLayout>
|
<HorizontalStackLayout>
|
||||||
<Label
|
<Label
|
||||||
Style="{StaticResource h3}"
|
Style="{StaticResource h3}"
|
||||||
Text="Step"
|
Text="Step"
|
||||||
Margin="0, 0, 2, 0"/>
|
Margin="0, 0, 2, 0"/>
|
||||||
|
|
||||||
<Label
|
<Label
|
||||||
Style="{StaticResource h3}"
|
Style="{StaticResource h3}"
|
||||||
x:Name="OrdinalLabel"/>
|
x:Name="OrdinalLabel"/>
|
||||||
</HorizontalStackLayout>
|
</HorizontalStackLayout>
|
||||||
|
|
||||||
<Border
|
<Border
|
||||||
StrokeShape="RoundRectangle 5"
|
StrokeShape="RoundRectangle 5"
|
||||||
Stroke="Gray"
|
Stroke="Gray"
|
||||||
BackgroundColor="{StaticResource BackgroundSecondary}">
|
BackgroundColor="{StaticResource BackgroundSecondary}">
|
||||||
<Editor
|
<Editor
|
||||||
MaxLength="10000"
|
MaxLength="10000"
|
||||||
Style="{StaticResource UserInput}"
|
Style="{StaticResource UserInput}"
|
||||||
AutoSize="TextChanges"
|
AutoSize="TextChanges"
|
||||||
FontSize="15"/>
|
FontSize="15"/>
|
||||||
</Border>
|
</Border>
|
||||||
|
|
||||||
</VerticalStackLayout>
|
</VerticalStackLayout>
|
||||||
</ContentView>
|
</ContentView>
|
@ -1,19 +1,19 @@
|
|||||||
namespace ShoopNCook.Views;
|
namespace ShoopNCook.Views;
|
||||||
|
|
||||||
public partial class StepEntry : ContentView
|
public partial class StepEntry : ContentView
|
||||||
{
|
{
|
||||||
|
|
||||||
public StepEntry(): this(1)
|
public StepEntry(): this(1)
|
||||||
{}
|
{}
|
||||||
|
|
||||||
public StepEntry(uint ordinal)
|
public StepEntry(uint ordinal)
|
||||||
{
|
{
|
||||||
InitializeComponent();
|
InitializeComponent();
|
||||||
Ordinal = ordinal;
|
Ordinal = ordinal;
|
||||||
}
|
}
|
||||||
|
|
||||||
public uint Ordinal {
|
public uint Ordinal {
|
||||||
get => uint.Parse(OrdinalLabel.Text);
|
get => uint.Parse(OrdinalLabel.Text);
|
||||||
set => OrdinalLabel.Text = value.ToString();
|
set => OrdinalLabel.Text = value.ToString();
|
||||||
}
|
}
|
||||||
}
|
}
|
@ -1,171 +1,171 @@
|
|||||||
<?xml version="1.0" encoding="utf-8" ?>
|
<?xml version="1.0" encoding="utf-8" ?>
|
||||||
<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="ShoopNCook.Pages.ForgotPassword"
|
x:Class="ShoopNCook.Pages.ForgotPassword"
|
||||||
Title="ForgotPassword"
|
Title="ForgotPassword"
|
||||||
BackgroundColor="{StaticResource BackgroundPrimary}">
|
BackgroundColor="{StaticResource BackgroundPrimary}">
|
||||||
<ScrollView>
|
<ScrollView>
|
||||||
<Grid
|
<Grid
|
||||||
Padding="20"
|
Padding="20"
|
||||||
RowDefinitions="Auto, Auto, Auto, *">
|
RowDefinitions="Auto, Auto, Auto, *">
|
||||||
|
|
||||||
<!-- Profile label and return button -->
|
<!-- Profile label and return button -->
|
||||||
<Grid
|
<Grid
|
||||||
Grid.Row="0"
|
Grid.Row="0"
|
||||||
RowDefinitions="Auto, *"
|
RowDefinitions="Auto, *"
|
||||||
ColumnDefinitions="*, 1.5*"
|
ColumnDefinitions="*, 1.5*"
|
||||||
Margin="0, 0, 0, 40">
|
Margin="0, 0, 0, 40">
|
||||||
<HorizontalStackLayout>
|
<HorizontalStackLayout>
|
||||||
<ImageButton
|
<ImageButton
|
||||||
Grid.Column="0"
|
Grid.Column="0"
|
||||||
|
|
||||||
HeightRequest="50"
|
HeightRequest="50"
|
||||||
WidthRequest="50"
|
WidthRequest="50"
|
||||||
Source="arrow_back.svg"
|
Source="arrow_back.svg"
|
||||||
Clicked="OnBackButtonClicked"/>
|
Clicked="OnBackButtonClicked"/>
|
||||||
</HorizontalStackLayout>
|
</HorizontalStackLayout>
|
||||||
<Label
|
<Label
|
||||||
Margin="-40,10,0,0"
|
Margin="-40,10,0,0"
|
||||||
Grid.Column="1"
|
Grid.Column="1"
|
||||||
FontSize="24"
|
FontSize="24"
|
||||||
TextColor="{StaticResource TextColorPrimary}"
|
TextColor="{StaticResource TextColorPrimary}"
|
||||||
Text="Forgot Password"
|
Text="Forgot Password"
|
||||||
FontFamily="PoppinsBold"
|
FontFamily="PoppinsBold"
|
||||||
VerticalOptions="Start"/>
|
VerticalOptions="Start"/>
|
||||||
</Grid>
|
</Grid>
|
||||||
|
|
||||||
<!-- Email entry -->
|
<!-- Email entry -->
|
||||||
<Grid
|
<Grid
|
||||||
Grid.Row="1"
|
Grid.Row="1"
|
||||||
RowDefinitions="*, Auto, Auto"
|
RowDefinitions="*, Auto, Auto"
|
||||||
>
|
>
|
||||||
|
|
||||||
<Label
|
<Label
|
||||||
|
|
||||||
Grid.Row="0"
|
Grid.Row="0"
|
||||||
FontSize="15"
|
FontSize="15"
|
||||||
TextColor="{StaticResource TextColorSecondary}"
|
TextColor="{StaticResource TextColorSecondary}"
|
||||||
Text="Enter your email here : "
|
Text="Enter your email here : "
|
||||||
FontFamily="PoppinsBold"
|
FontFamily="PoppinsBold"
|
||||||
VerticalOptions="Center"/>
|
VerticalOptions="Center"/>
|
||||||
<Border
|
<Border
|
||||||
Grid.Row="1"
|
Grid.Row="1"
|
||||||
Style="{StaticResource SecondaryBorder}"
|
Style="{StaticResource SecondaryBorder}"
|
||||||
Margin="0,30,0,20">
|
Margin="0,30,0,20">
|
||||||
<Grid
|
<Grid
|
||||||
Padding="5"
|
Padding="5"
|
||||||
BackgroundColor="{StaticResource BackgroundSecondary}"
|
BackgroundColor="{StaticResource BackgroundSecondary}"
|
||||||
ColumnDefinitions="Auto,Auto,*">
|
ColumnDefinitions="Auto,Auto,*">
|
||||||
|
|
||||||
<Image
|
<Image
|
||||||
Grid.Column="1"
|
Grid.Column="1"
|
||||||
Source="email_icon.svg">
|
Source="email_icon.svg">
|
||||||
</Image>
|
</Image>
|
||||||
<Entry
|
<Entry
|
||||||
Style="{StaticResource UserInput}"
|
Style="{StaticResource UserInput}"
|
||||||
Grid.Column="2"
|
Grid.Column="2"
|
||||||
Placeholder="User Name"/>
|
Placeholder="User Name"/>
|
||||||
</Grid>
|
</Grid>
|
||||||
</Border>
|
</Border>
|
||||||
|
|
||||||
<VerticalStackLayout
|
<VerticalStackLayout
|
||||||
Grid.Row="2"
|
Grid.Row="2"
|
||||||
VerticalOptions="End">
|
VerticalOptions="End">
|
||||||
<Border
|
<Border
|
||||||
Margin="0, 30, 0, 0"
|
Margin="0, 30, 0, 0"
|
||||||
Stroke="{StaticResource BackgroundPrimary}"
|
Stroke="{StaticResource BackgroundPrimary}"
|
||||||
StrokeShape="RoundRectangle 12">
|
StrokeShape="RoundRectangle 12">
|
||||||
<Button
|
<Button
|
||||||
BackgroundColor="{StaticResource ActionButton}"
|
BackgroundColor="{StaticResource ActionButton}"
|
||||||
FontFamily="PoppinsMedium"
|
FontFamily="PoppinsMedium"
|
||||||
TextColor="White"
|
TextColor="White"
|
||||||
Text="Recup my Password"/>
|
Text="Recup my Password"/>
|
||||||
</Border>
|
</Border>
|
||||||
</VerticalStackLayout>
|
</VerticalStackLayout>
|
||||||
</Grid>
|
</Grid>
|
||||||
<Grid>
|
<Grid>
|
||||||
|
|
||||||
</Grid>
|
</Grid>
|
||||||
<!-- Sendmail grid -->
|
<!-- Sendmail grid -->
|
||||||
<Grid
|
<Grid
|
||||||
Grid.Row="2"
|
Grid.Row="2"
|
||||||
RowDefinitions="Auto,Auto,Auto,Auto,Auto,Auto,Auto"
|
RowDefinitions="Auto,Auto,Auto,Auto,Auto,Auto,Auto"
|
||||||
RowSpacing="10">
|
RowSpacing="10">
|
||||||
<Label
|
<Label
|
||||||
Grid.Row="0"
|
Grid.Row="0"
|
||||||
Margin="20"
|
Margin="20"
|
||||||
Text="A recuperation code as been send to your email address ! "
|
Text="A recuperation code as been send to your email address ! "
|
||||||
FontFamily="PoppinsBold"
|
FontFamily="PoppinsBold"
|
||||||
TextColor="LightGreen"/>
|
TextColor="LightGreen"/>
|
||||||
<Label
|
<Label
|
||||||
Grid.Row="1"
|
Grid.Row="1"
|
||||||
Text="Enter the code here"
|
Text="Enter the code here"
|
||||||
FontFamily="PoppinsBold"
|
FontFamily="PoppinsBold"
|
||||||
TextColor="{StaticResource TextColorSecondary}"/>
|
TextColor="{StaticResource TextColorSecondary}"/>
|
||||||
<Border
|
<Border
|
||||||
Grid.Row="2"
|
Grid.Row="2"
|
||||||
Style="{StaticResource SecondaryBorder}"
|
Style="{StaticResource SecondaryBorder}"
|
||||||
>
|
>
|
||||||
<Grid
|
<Grid
|
||||||
Padding="5"
|
Padding="5"
|
||||||
BackgroundColor="{StaticResource BackgroundSecondary}"
|
BackgroundColor="{StaticResource BackgroundSecondary}"
|
||||||
ColumnDefinitions="Auto,Auto,*">
|
ColumnDefinitions="Auto,Auto,*">
|
||||||
|
|
||||||
<Image
|
<Image
|
||||||
Grid.Column="1"
|
Grid.Column="1"
|
||||||
Source="code.png">
|
Source="code.png">
|
||||||
</Image>
|
</Image>
|
||||||
<Entry
|
<Entry
|
||||||
Style="{StaticResource UserInput}"
|
Style="{StaticResource UserInput}"
|
||||||
Grid.Column="2"
|
Grid.Column="2"
|
||||||
Placeholder="Code"/>
|
Placeholder="Code"/>
|
||||||
</Grid>
|
</Grid>
|
||||||
</Border>
|
</Border>
|
||||||
<Label
|
<Label
|
||||||
Grid.Row="3"
|
Grid.Row="3"
|
||||||
Text="Enter new Password here"
|
Text="Enter new Password here"
|
||||||
FontFamily="PoppinsBold"
|
FontFamily="PoppinsBold"
|
||||||
TextColor="{StaticResource TextColorSecondary}"/>
|
TextColor="{StaticResource TextColorSecondary}"/>
|
||||||
<Border
|
<Border
|
||||||
Grid.Row="4"
|
Grid.Row="4"
|
||||||
Style="{StaticResource SecondaryBorderShadow}">
|
Style="{StaticResource SecondaryBorderShadow}">
|
||||||
<Entry
|
<Entry
|
||||||
Style="{StaticResource UserInput}"
|
Style="{StaticResource UserInput}"
|
||||||
Placeholder="New password"/>
|
Placeholder="New password"/>
|
||||||
</Border>
|
</Border>
|
||||||
<Label
|
<Label
|
||||||
Grid.Row="5"
|
Grid.Row="5"
|
||||||
Text="Confirm your new Password here"
|
Text="Confirm your new Password here"
|
||||||
FontFamily="PoppinsBold"
|
FontFamily="PoppinsBold"
|
||||||
TextColor="{StaticResource TextColorSecondary}"/>
|
TextColor="{StaticResource TextColorSecondary}"/>
|
||||||
<Border
|
<Border
|
||||||
Grid.Row="6"
|
Grid.Row="6"
|
||||||
Style="{StaticResource SecondaryBorderShadow}">
|
Style="{StaticResource SecondaryBorderShadow}">
|
||||||
<Entry
|
<Entry
|
||||||
Style="{StaticResource UserInput}"
|
Style="{StaticResource UserInput}"
|
||||||
Placeholder="New password"/>
|
Placeholder="New password"/>
|
||||||
</Border>
|
</Border>
|
||||||
</Grid>
|
</Grid>
|
||||||
|
|
||||||
<!-- Save button -->
|
<!-- Save button -->
|
||||||
|
|
||||||
<VerticalStackLayout
|
<VerticalStackLayout
|
||||||
Grid.Row="3"
|
Grid.Row="3"
|
||||||
VerticalOptions="End">
|
VerticalOptions="End">
|
||||||
<Border
|
<Border
|
||||||
Margin="0, 30, 0, 0"
|
Margin="0, 30, 0, 0"
|
||||||
Stroke="{StaticResource BackgroundPrimary}"
|
Stroke="{StaticResource BackgroundPrimary}"
|
||||||
StrokeShape="RoundRectangle 12">
|
StrokeShape="RoundRectangle 12">
|
||||||
<Button
|
<Button
|
||||||
BackgroundColor="{StaticResource ActionButton}"
|
BackgroundColor="{StaticResource ActionButton}"
|
||||||
FontFamily="PoppinsMedium"
|
FontFamily="PoppinsMedium"
|
||||||
TextColor="White"
|
TextColor="White"
|
||||||
Text="Save Change"/>
|
Text="Save Change"/>
|
||||||
</Border>
|
</Border>
|
||||||
</VerticalStackLayout>
|
</VerticalStackLayout>
|
||||||
|
|
||||||
|
|
||||||
</Grid>
|
</Grid>
|
||||||
|
|
||||||
</ScrollView>
|
</ScrollView>
|
||||||
</ContentPage>
|
</ContentPage>
|
@ -1,13 +1,13 @@
|
|||||||
namespace ShoopNCook.Pages;
|
namespace ShoopNCook.Pages;
|
||||||
|
|
||||||
public partial class ForgotPassword : ContentPage
|
public partial class ForgotPassword : ContentPage
|
||||||
{
|
{
|
||||||
public ForgotPassword()
|
public ForgotPassword()
|
||||||
{
|
{
|
||||||
InitializeComponent();
|
InitializeComponent();
|
||||||
}
|
}
|
||||||
private async void OnBackButtonClicked(object sender, EventArgs e)
|
private async void OnBackButtonClicked(object sender, EventArgs e)
|
||||||
{
|
{
|
||||||
await Navigation.PopAsync();
|
await Navigation.PopAsync();
|
||||||
}
|
}
|
||||||
}
|
}
|
Loading…
Reference in new issue