Compare commits

..

15 Commits

Author SHA1 Message Date
Vlad Torop
efb2c48b48 Востановить поменял на кнопку 2025-03-13 15:34:34 +03:00
Vlad Torop
57bc4d0963 Кнопка показать пароль работает правильно 2025-03-13 15:09:11 +03:00
Vlad Torop
9436ddca06 Кнопка показать пароль работает неправильно 2025-03-13 14:47:44 +03:00
Vlad Torop
9458a1c3ea Увеличил высоту строки пароля 2025-03-13 11:43:08 +03:00
Vlad Torop
b40906f86f Нет проблем 2025-03-13 11:41:25 +03:00
Vlad Torop
ea75ef85c5 Нет проблем 2025-03-13 11:37:45 +03:00
Vlad Torop
938db3342f Проблемы 2025-03-13 10:58:56 +03:00
Vlad Torop
9a3e50e513 Почти доделал верстку 13.03.2025 2025-03-13 10:53:40 +03:00
Vlad Torop
c6c0c8138b Почти доделал верстку 2025-03-11 15:32:43 +03:00
Vlad Torop
c16dabb56b Начало верстки 2025-03-10 10:02:43 +03:00
Vlad Torop
74172bb298 Исправление1 2025-03-05 09:35:22 +03:00
Vlad Torop
639f66993e Добавил кликер на новую страничку 2025-03-05 09:27:37 +03:00
Vlad Torop
3a5fdb7dab Сделал переход на новую страничку 2025-03-05 09:15:28 +03:00
Vlad Torop
3675cf5729 Добавил Label на новую станичку 2025-03-05 09:04:47 +03:00
Vlad Torop
63589726bb Добавил новую страничку 2025-02-27 15:32:14 +03:00
8 changed files with 276 additions and 18 deletions

View File

@ -1,10 +1,15 @@
<?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:x="http://schemas.microsoft.com/winfx/2009/xaml" x:Class="MobailApp.MainPage"
x:Class="MobailApp.MainPage"> xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
HeightRequest="812"
MaximumHeightRequest="812"
MaximumWidthRequest="375"
WidthRequest="375">
<ScrollView> <ScrollView>
<VerticalStackLayout <!--<VerticalStackLayout
Padding="30,0" Padding="30,0"
Spacing="25"> Spacing="25">
<Image <Image
@ -26,11 +31,153 @@
<Button <Button
x:Name="CounterBtn" x:Name="CounterBtn"
Text="Click me" Text="Click me"
SemanticProperties.Hint="Counts the number of times you click" SemanticProperties.Hint="Counts the number of times you click"
Clicked="OnCounterClicked" Clicked="OnCounterClicked"
HorizontalOptions="Fill" /> HorizontalOptions="Fill" />
</VerticalStackLayout> <Button
x:Name="NewPageOpenbtn"
Text="New page"
SemanticProperties.Hint="Counts the number of times you click"
Clicked="NewPageOpenbtn_Clicked"
HorizontalOptions="Fill" />
</VerticalStackLayout>-->
<Grid>
<Grid.RowDefinitions>
<RowDefinition Height="746" />
<RowDefinition Height="19" />
</Grid.RowDefinitions>
<StackLayout Grid.Row="0">
<StackLayout Margin="20,75,20,0" HorizontalOptions="Center">
<Label
FontSize="32"
HorizontalOptions="Center"
Text="Привет!"
TextColor="#707B81" />
<Label
Margin="0,8,0,0"
FontSize="16"
HorizontalOptions="Center"
Text="Заполните Свои Данные Или"
TextColor="#707B81" />
<Label
FontSize="16"
HorizontalOptions="Center"
Text="Продолжите Через Социальные Медиа"
TextColor="#707B81" />
</StackLayout>
<StackLayout Margin="20,30,20,0">
<Grid HeightRequest="244" MinimumWidthRequest="335">
<Grid HeightRequest="196" WidthRequest="335">
<Grid.RowDefinitions>
<RowDefinition Height="80" />
<RowDefinition Height="80" />
</Grid.RowDefinitions>
<StackLayout Grid.Row="0" MinimumWidthRequest="335">
<Label
HorizontalOptions="Start"
Text="Email"
TextColor="#707B81"
VerticalOptions="Start" />
<HorizontalStackLayout>
<Frame
Margin="0,12,0,0"
BackgroundColor="#f7f7f9"
BorderColor="#f7f7f9"
CornerRadius="15"
HeightRequest="48"
WidthRequest="335">
<Entry
x:Name="etyEmail"
HeightRequest="48"
IsReadOnly="False"
Text="xyz@gmail.com"
TextColor="#6A6A6A" />
</Frame>
</HorizontalStackLayout>
</StackLayout>
<StackLayout
Grid.Row="1"
Margin="0,26,0,0"
WidthRequest="335">
<Label
HorizontalOptions="Start"
Text="Пароль"
TextColor="#707B81"
VerticalOptions="Start" />
<HorizontalStackLayout>
<Frame
Margin="0,12,0,0"
BackgroundColor="#f7f7f9"
BorderColor="#f7f7f9"
CornerRadius="15"
HeightRequest="48"
WidthRequest="335">
<Grid HeightRequest="40">
<Grid.ColumnDefinitions>
<ColumnDefinition />
<ColumnDefinition Width="40" />
</Grid.ColumnDefinitions>
<Entry
x:Name="etyPass"
HeightRequest="48"
IsPassword="True"
IsReadOnly="False"
TextColor="#6A6A6A" />
<Button
x:Name="btnPassOpen"
Grid.Column="1"
BackgroundColor="#f7f7f9"
Clicked="btnPassOpen_Clicked"
FontSize="16"
HeightRequest="40"
Text="◉"
TextColor="Black"
WidthRequest="48" />
</Grid>
</Frame>
</HorizontalStackLayout>
</StackLayout>
</Grid>
<Button
BackgroundColor="White"
Margin="0,16,0,0"
FontSize="12"
HeightRequest="36"
HorizontalOptions="End"
Text="Восстановить"
TextColor="#707B81"
VerticalOptions="End"
WidthRequest="108" />
</Grid>
<Button
Margin="0,24,0,0"
BackgroundColor="#48B2E7"
Clicked="Button_Clicked"
CornerRadius="14"
Text="Войти"
TextColor="#F7F7F9" />
</StackLayout>
</StackLayout>
<StackLayout
Grid.Row="1"
HorizontalOptions="Center"
Orientation="Horizontal"
WidthRequest="335">
<Label
Margin="35,0,0,0"
FontSize="16"
HeightRequest="19"
Text="Вы впервые?"
TextColor="#6A6A6A" />
<Button
BackgroundColor="White"
FontSize="16"
HeightRequest="40"
Text="Создать Пользователя"
TextColor="#2B2B2B" />
</StackLayout>
</Grid>
</ScrollView> </ScrollView>
</ContentPage> </ContentPage>

View File

@ -2,24 +2,54 @@
{ {
public partial class MainPage : ContentPage public partial class MainPage : ContentPage
{ {
int count = 0; //int count = 0;
bool Pass = false;
string Email = "";
public MainPage() public MainPage()
{ {
InitializeComponent(); InitializeComponent();
} }
private void OnCounterClicked(object sender, EventArgs e) private async void Button_Clicked(object sender, EventArgs e)
{ {
count++; await Navigation.PushAsync(new NewPage1());
if (count == 1)
CounterBtn.Text = $"Clicked {count} time";
else
CounterBtn.Text = $"Clicked {count} times";
SemanticScreenReader.Announce(CounterBtn.Text);
} }
private async void btnPassOpen_Clicked(object sender, EventArgs e)
{
if(Pass == false)
{
btnPassOpen.Text = "◎";
etyPass.IsPassword = false;
Pass = true;
}
else
{
btnPassOpen.Text = "◉";
etyPass.IsPassword = true;
Pass = false;
}
//await Navigation.PushAsync(new NewPage2());
}
//private void OnCounterClicked(object sender, EventArgs e)
//{
// count++;
// if (count == 1)
// CounterBtn.Text = $"Clicked {count} time";
// else
// CounterBtn.Text = $"Clicked {count} times";
// SemanticScreenReader.Announce(CounterBtn.Text);
//}
//private async void NewPageOpenbtn_Clicked(System.Object sender, System.EventArgs e)
//{
// await Navigation.PushAsync(new NewPage1());
//}
} }
} }

View File

@ -62,4 +62,13 @@
<PackageReference Include="Microsoft.Extensions.Logging.Debug" Version="8.0.0" /> <PackageReference Include="Microsoft.Extensions.Logging.Debug" Version="8.0.0" />
</ItemGroup> </ItemGroup>
<ItemGroup>
<MauiXaml Update="NewPage1.xaml">
<Generator>MSBuild:Compile</Generator>
</MauiXaml>
<MauiXaml Update="NewPage2.xaml">
<Generator>MSBuild:Compile</Generator>
</MauiXaml>
</ItemGroup>
</Project> </Project>

View File

@ -2,10 +2,20 @@
<Project ToolsVersion="Current" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> <Project ToolsVersion="Current" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup> <PropertyGroup>
<IsFirstTimeProjectOpen>False</IsFirstTimeProjectOpen> <IsFirstTimeProjectOpen>False</IsFirstTimeProjectOpen>
<ActiveDebugFramework>net8.0-windows10.0.19041.0</ActiveDebugFramework> <ActiveDebugFramework>net8.0-android</ActiveDebugFramework>
<ActiveDebugProfile>Windows Machine</ActiveDebugProfile> <ActiveDebugProfile>Pixel 2 Q 10.0 - API 29 (Android 10.0 — API 29)</ActiveDebugProfile>
<SelectedPlatformGroup>Emulator</SelectedPlatformGroup>
<DefaultDevice>pixel_2_-_api_29</DefaultDevice>
</PropertyGroup> </PropertyGroup>
<ItemGroup> <ItemGroup>
<MauiXaml Update="NewPage1.xaml">
<SubType>Designer</SubType>
</MauiXaml>
<MauiXaml Update="NewPage2.xaml">
<SubType>Designer</SubType>
</MauiXaml>
</ItemGroup>
<ItemGroup>
<None Update="App.xaml"> <None Update="App.xaml">
<SubType>Designer</SubType> <SubType>Designer</SubType>
</None> </None>

20
NewPage1.xaml Normal file
View File

@ -0,0 +1,20 @@
<?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="MobailApp.NewPage1"
Title="NewPage1">
<VerticalStackLayout VerticalOptions="Center">
<Label
Margin="0,0,0,30"
Text="Новая страничка"
FontSize="30"
VerticalOptions="Center"
HorizontalOptions="Center" />
<Button
x:Name="CounterBtn"
Text="Click me"
SemanticProperties.Hint="Counts the number of times you click"
Clicked="OnCounterClicked"
HorizontalOptions="Fill" />
</VerticalStackLayout>
</ContentPage>

21
NewPage1.xaml.cs Normal file
View File

@ -0,0 +1,21 @@
namespace MobailApp;
public partial class NewPage1 : ContentPage
{
int count = 0;
public NewPage1()
{
InitializeComponent();
}
private void OnCounterClicked(object sender, EventArgs e)
{
count++;
if (count == 1)
CounterBtn.Text = $"Clicked {count} time";
else
CounterBtn.Text = $"Clicked {count} times";
SemanticScreenReader.Announce(CounterBtn.Text);
}
}

12
NewPage2.xaml Normal file
View File

@ -0,0 +1,12 @@
<?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="MobailApp.NewPage2"
Title="NewPage2">
<VerticalStackLayout>
<Label
Text="Welcome to .NET MAUI!"
VerticalOptions="Center"
HorizontalOptions="Center" />
</VerticalStackLayout>
</ContentPage>

9
NewPage2.xaml.cs Normal file
View File

@ -0,0 +1,9 @@
namespace MobailApp;
public partial class NewPage2 : ContentPage
{
public NewPage2()
{
InitializeComponent();
}
}