Skip to content

Commit

Permalink
fix bug in login page
Browse files Browse the repository at this point in the history
  • Loading branch information
Cubigator committed Apr 20, 2023
1 parent da8814e commit a16de1b
Showing 1 changed file with 32 additions and 30 deletions.
62 changes: 32 additions & 30 deletions Tele2App/View/LoginPage.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,79 +10,81 @@
<ViewModel:LoginViewModel></ViewModel:LoginViewModel>
</ContentPage.BindingContext>

<Grid RowDefinitions="*, 8*, 2*" Margin="50" RowSpacing="10">
<ScrollView>
<Grid RowDefinitions="*, 8*, 2*" Margin="50" RowSpacing="10">

<Label
<Label
FontSize="20" FontAttributes="Bold"
FontFamily="Tele2DisplaySerif-Bold" TextColor="Black"
HorizontalOptions="Center"
VerticalOptions="Center"
Text="Вход / Регистрация"></Label>

<StackLayout Grid.Row="1">
<Border
<StackLayout Grid.Row="1">
<Border
Stroke="Black"
StrokeThickness="4"
Background="White"
Padding="25, 50, 25, 40"
HorizontalOptions="Center"
>
<Border.StrokeShape>
<RoundRectangle CornerRadius="20,20,20,20" />
</Border.StrokeShape>
<VerticalStackLayout>
<Entry Keyboard="Telephone" Text="{Binding PhoneNumber}"
<Border.StrokeShape>
<RoundRectangle CornerRadius="20,20,20,20" />
</Border.StrokeShape>
<VerticalStackLayout>
<Entry Keyboard="Telephone" Text="{Binding PhoneNumber}"
TextColor="Black" WidthRequest="200"
Placeholder="Номер телефона" PlaceholderColor="Gray">

</Entry>
<Entry IsPassword="True" Keyboard="Default" Text="{Binding Password}"
</Entry>
<Entry IsPassword="True" Keyboard="Default" Text="{Binding Password}"
TextColor="Black" WidthRequest="200"
Placeholder="Пароль" PlaceholderColor="Gray">

</Entry>
</Entry>

<Button
<Button
TextColor="White" Margin="5, 40, 5, 20"
Text="Войти" FontFamily="Tele2TextSans-Bold" BackgroundColor="Black"
HeightRequest="40" Padding="0"
Command="{Binding Login}"
CornerRadius="25">
<Button.Shadow>
<Shadow Brush="Black"
<Button.Shadow>
<Shadow Brush="Black"
Offset="0, 0"
Radius="20"
Opacity="0.5"/>
</Button.Shadow>
</Button>
</Button.Shadow>
</Button>

<Button Margin="5, 0, 5, 20"
<Button Margin="5, 0, 5, 20"
TextColor="Black" FontFamily="Tele2TextSans-Bold" HeightRequest="40"
Padding="0" Command="{Binding Registration}"
Text="Регистрация" BackgroundColor="White"
CornerRadius="25">
<Button.Shadow>
<Shadow Brush="Black"
<Button.Shadow>
<Shadow Brush="Black"
Offset="0, 0"
Radius="20"
Opacity="0.4" />
</Button.Shadow>
</Button>
</VerticalStackLayout>
</Border>
</StackLayout>
</Button.Shadow>
</Button>
</VerticalStackLayout>
</Border>
</StackLayout>

<ActivityIndicator IsVisible="{Binding IsBusy}"
<ActivityIndicator IsVisible="{Binding IsBusy}"
IsRunning="{Binding IsBusy}"
HorizontalOptions="Fill"
VerticalOptions="Center"
Color="Black"
Grid.RowSpan="2"
Grid.ColumnSpan="2"/>

<Image Source="tele2_logo_black.png" Grid.Row="2">

</Image>
</Grid>
<Image Source="tele2_logo_black.png" Grid.Row="2">

</Image>
</Grid>
</ScrollView>

</ContentPage>

0 comments on commit a16de1b

Please sign in to comment.