2025-12-21 13:40:42 -05:00
|
|
|
<?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="TodoApp.NewTodoPage"
|
|
|
|
|
Title="New Task"
|
2026-01-11 13:34:36 -05:00
|
|
|
BackgroundColor="{AppThemeBinding Light={StaticResource PageBackgroundLight}, Dark={StaticResource PageBackgroundDark}}">
|
2025-12-21 13:40:42 -05:00
|
|
|
|
|
|
|
|
<ContentPage.ToolbarItems>
|
2026-01-11 13:34:36 -05:00
|
|
|
<ToolbarItem Text="Save"
|
|
|
|
|
IconImageSource="save_white.svg"
|
|
|
|
|
Clicked="OnSaveClicked" />
|
2025-12-21 13:40:42 -05:00
|
|
|
</ContentPage.ToolbarItems>
|
|
|
|
|
|
|
|
|
|
<Grid RowDefinitions="Auto,Auto,Auto,*" RowSpacing="16" Padding="20">
|
|
|
|
|
|
|
|
|
|
<!-- Header -->
|
|
|
|
|
<VerticalStackLayout Grid.Row="0" Spacing="4">
|
|
|
|
|
<Label Text="Create a new task"
|
|
|
|
|
FontSize="24"
|
2026-01-11 13:34:36 -05:00
|
|
|
TextColor="{AppThemeBinding Light={StaticResource TextPrimaryLight}, Dark={StaticResource TextPrimaryDark}}" />
|
2025-12-21 13:40:42 -05:00
|
|
|
<Label Text="Fill in the details below"
|
|
|
|
|
FontSize="14"
|
2026-01-11 13:34:36 -05:00
|
|
|
TextColor="{AppThemeBinding Light={StaticResource TextSecondaryLight}, Dark={StaticResource TextSecondaryDark}}" />
|
2025-12-21 13:40:42 -05:00
|
|
|
</VerticalStackLayout>
|
|
|
|
|
|
|
|
|
|
<!-- Title Section -->
|
|
|
|
|
<VerticalStackLayout Grid.Row="1" Spacing="8">
|
|
|
|
|
<Label Text="TITLE"
|
|
|
|
|
FontSize="13"
|
|
|
|
|
FontAttributes="Bold"
|
|
|
|
|
TextColor="{StaticResource PrimaryColor}" />
|
2026-01-11 13:34:36 -05:00
|
|
|
<Border BackgroundColor="{AppThemeBinding Light={StaticResource CardBackgroundLight}, Dark={StaticResource CardBackgroundDark}}"
|
|
|
|
|
Stroke="{AppThemeBinding Light={StaticResource BorderLight}, Dark={StaticResource BorderDark}}"
|
2025-12-21 13:40:42 -05:00
|
|
|
StrokeThickness="1"
|
|
|
|
|
Padding="16,12">
|
|
|
|
|
<Border.StrokeShape>
|
|
|
|
|
<RoundRectangle CornerRadius="10" />
|
|
|
|
|
</Border.StrokeShape>
|
|
|
|
|
<Entry x:Name="TitleEntry"
|
|
|
|
|
Placeholder="What needs to be done?"
|
|
|
|
|
FontSize="18"
|
2026-01-11 13:34:36 -05:00
|
|
|
TextColor="{AppThemeBinding Light={StaticResource TextPrimaryLight}, Dark={StaticResource TextPrimaryDark}}"
|
|
|
|
|
PlaceholderColor="{AppThemeBinding Light={StaticResource TextSecondaryLight}, Dark={StaticResource TextSecondaryDark}}" />
|
2025-12-21 13:40:42 -05:00
|
|
|
</Border>
|
|
|
|
|
</VerticalStackLayout>
|
|
|
|
|
|
|
|
|
|
<!-- Notes Label -->
|
|
|
|
|
<Label Grid.Row="2"
|
|
|
|
|
Text="NOTES"
|
|
|
|
|
FontSize="13"
|
|
|
|
|
FontAttributes="Bold"
|
|
|
|
|
TextColor="{StaticResource PrimaryColor}" />
|
|
|
|
|
|
|
|
|
|
<!-- Notes Section (fills remaining space) -->
|
|
|
|
|
<Border Grid.Row="3"
|
2026-01-11 13:34:36 -05:00
|
|
|
BackgroundColor="{AppThemeBinding Light={StaticResource CardBackgroundLight}, Dark={StaticResource CardBackgroundDark}}"
|
|
|
|
|
Stroke="{AppThemeBinding Light={StaticResource BorderLight}, Dark={StaticResource BorderDark}}"
|
2025-12-21 13:40:42 -05:00
|
|
|
StrokeThickness="1"
|
|
|
|
|
Padding="16,12">
|
|
|
|
|
<Border.StrokeShape>
|
|
|
|
|
<RoundRectangle CornerRadius="10" />
|
|
|
|
|
</Border.StrokeShape>
|
|
|
|
|
<Editor x:Name="NotesEditor"
|
|
|
|
|
Placeholder="Add notes (optional)..."
|
|
|
|
|
FontSize="14"
|
2026-01-11 13:34:36 -05:00
|
|
|
TextColor="{AppThemeBinding Light={StaticResource TextPrimaryLight}, Dark={StaticResource TextPrimaryDark}}"
|
|
|
|
|
PlaceholderColor="{AppThemeBinding Light={StaticResource TextSecondaryLight}, Dark={StaticResource TextSecondaryDark}}"
|
2025-12-21 13:40:42 -05:00
|
|
|
VerticalOptions="Fill" />
|
|
|
|
|
</Border>
|
|
|
|
|
|
|
|
|
|
</Grid>
|
|
|
|
|
</ContentPage>
|