parent
bb33e695d6
commit
b506f1ee3d
@ -0,0 +1,66 @@
|
|||||||
|
<?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.CreateRecipePage"
|
||||||
|
Title="CreateRecipePage"
|
||||||
|
BackgroundColor="{StaticResource BackgroundPrimary}">
|
||||||
|
<Grid
|
||||||
|
RowDefinitions="Auto, Auto, *"
|
||||||
|
Padding="20, 30, 20, 0">
|
||||||
|
<!-- Header label and return button -->
|
||||||
|
<HorizontalStackLayout
|
||||||
|
Grid.Row="0"
|
||||||
|
MaximumHeightRequest="60">
|
||||||
|
|
||||||
|
<ImageButton
|
||||||
|
HeightRequest="50"
|
||||||
|
WidthRequest="50"
|
||||||
|
Source="arrow_back.svg"
|
||||||
|
HorizontalOptions="Start"/>
|
||||||
|
|
||||||
|
<Label
|
||||||
|
Text="Create new recipe"
|
||||||
|
Style="{StaticResource h3}"
|
||||||
|
FontSize="20"
|
||||||
|
VerticalTextAlignment="Center"/>
|
||||||
|
</HorizontalStackLayout>
|
||||||
|
|
||||||
|
<!--Image display and upload button-->
|
||||||
|
<Grid
|
||||||
|
Grid.Row="1"
|
||||||
|
RowDefinitions="Auto">
|
||||||
|
<Border
|
||||||
|
Grid.Row="0"
|
||||||
|
BackgroundColor="{StaticResource ImageBackground}"
|
||||||
|
Stroke="White"
|
||||||
|
StrokeThickness="2"
|
||||||
|
StrokeShape="RoundRectangle 25">
|
||||||
|
<Image
|
||||||
|
x:Name="RecipeImage"
|
||||||
|
HeightRequest="250"/>
|
||||||
|
</Border>
|
||||||
|
<Border
|
||||||
|
Grid.Row="0"
|
||||||
|
BackgroundColor="{StaticResource Selected}"
|
||||||
|
Stroke="White"
|
||||||
|
StrokeThickness="2"
|
||||||
|
StrokeShape="RoundRectangle 200"
|
||||||
|
WidthRequest="50"
|
||||||
|
HeightRequest="50"
|
||||||
|
HorizontalOptions="End"
|
||||||
|
VerticalOptions="End"
|
||||||
|
TranslationY="20"
|
||||||
|
TranslationX="-20">
|
||||||
|
<ImageButton
|
||||||
|
Source="edit.svg"
|
||||||
|
WidthRequest="30"
|
||||||
|
/>
|
||||||
|
</Border>
|
||||||
|
</Grid>
|
||||||
|
|
||||||
|
<Entry
|
||||||
|
Style="{StaticResource UserInput}"
|
||||||
|
Placeholder="Specify your recipe name"/>
|
||||||
|
</Grid>
|
||||||
|
|
||||||
|
</ContentPage>
|
@ -0,0 +1,9 @@
|
|||||||
|
namespace ShoopNCook.Pages;
|
||||||
|
|
||||||
|
public partial class CreateRecipePage : ContentPage
|
||||||
|
{
|
||||||
|
public CreateRecipePage()
|
||||||
|
{
|
||||||
|
InitializeComponent();
|
||||||
|
}
|
||||||
|
}
|
After Width: | Height: | Size: 780 B |
Loading…
Reference in new issue