-
Notifications
You must be signed in to change notification settings - Fork 16
/
MainPage.xaml
136 lines (130 loc) · 5.7 KB
/
MainPage.xaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
<ContentPage
x:Class="EmailAuth.MainPage"
xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
BackgroundColor="{DynamicResource SecondaryColor}"
NavigationPage.HasNavigationBar="False">
<ContentPage.Content>
<Grid
BackgroundColor="#1C375C"
HorizontalOptions="FillAndExpand"
VerticalOptions="FillAndExpand">
<Grid.RowDefinitions>
<RowDefinition Height="Auto" />
<RowDefinition Height="*" />
</Grid.RowDefinitions>
<StackLayout Grid.Row="0" HorizontalOptions="Center">
<Image
Margin="0,30"
Aspect="AspectFit"
HeightRequest="100"
Source="dotnet_bot.svg"
WidthRequest="80" />
</StackLayout>
<Frame
Grid.Row="1"
Margin="0,0,0,-40"
BorderColor="#1C375C"
CornerRadius="50"
HasShadow="True"
HeightRequest="700">
<Grid
Padding="20,50,20,0"
HorizontalOptions="FillAndExpand"
RowSpacing="20"
VerticalOptions="FillAndExpand">
<Grid.RowDefinitions>
<RowDefinition Height="Auto" />
<RowDefinition Height="Auto" />
<RowDefinition Height="Auto" />
<RowDefinition Height="Auto" />
<RowDefinition Height="Auto" />
<RowDefinition Height="Auto" />
<RowDefinition Height="Auto" />
<RowDefinition Height="Auto" />
<RowDefinition Height="Auto" />
</Grid.RowDefinitions>
<Label
Grid.Row="0"
FontAttributes="Bold"
FontSize="24"
HorizontalOptions="CenterAndExpand"
Text="Welcome Back!"
TextColor="#1C375C" />
<Label
Grid.Row="1"
Margin="0,-15,0,0"
HorizontalOptions="CenterAndExpand"
Text="Login in to account"
TextColor="#1C375C" />
<Entry
Grid.Row="2"
Margin="0,20,0,0"
HorizontalOptions="FillAndExpand"
Placeholder="Username"
Text="{Binding UserName}"
VerticalOptions="FillAndExpand" />
<Entry
Grid.Row="3"
HorizontalOptions="FillAndExpand"
IsPassword="True"
Placeholder="Password"
Text="{Binding UserPassword}"
VerticalOptions="FillAndExpand" />
<Button
Grid.Row="4"
BackgroundColor="#1C375C"
Command="{Binding LoginBtn}"
CornerRadius="20"
Text="Login" />
<Button
Grid.Row="5"
BackgroundColor="#1C375C"
Command="{Binding RegisterBtn}"
CornerRadius="20"
Text="Register using Email" />
<Label
Grid.Row="5"
HorizontalOptions="CenterAndExpand"
Text="or signin with" />
<StackLayout
Grid.Row="6"
HorizontalOptions="CenterAndExpand"
Orientation="Horizontal"
Spacing="40">
<Image
Aspect="AspectFit"
HeightRequest="30"
Source="https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcSo626DNKJxdHM-VNRD0m7x_8Jim-r9kRalJQ"
WidthRequest="30" />
<Image
Aspect="AspectFit"
HeightRequest="30"
Source="https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcRnLfAn36-LTYNHjioWgvu-0KUTIDDrW5lX_g"
WidthRequest="30" />
<Image
Aspect="AspectFit"
HeightRequest="30"
Source="https://www.freepnglogos.com/uploads/google-logo-png/google-logo-icon-png-transparent-background-osteopathy-16.png"
WidthRequest="30" />
<Image
Aspect="AspectFit"
HeightRequest="30"
Source="https://cdn-icons-png.flaticon.com/512/174/174857.png"
WidthRequest="30" />
</StackLayout>
<Label
Grid.Row="7"
FontAttributes="Bold"
HorizontalOptions="CenterAndExpand"
Text="Forget Password" />
<Label
Grid.Row="8"
Margin="0,-10,0,0"
HorizontalOptions="CenterAndExpand"
Text="Don't have an account? Sign up here" />
</Grid>
</Frame>
</Grid>
</ContentPage.Content>
</ContentPage>