Beautify LoginPage
This commit is contained in:
@@ -2,7 +2,7 @@
|
|||||||
<ContentPage xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
|
<ContentPage xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
|
||||||
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
|
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
|
||||||
xmlns:models="clr-namespace:Jugenddienst_Stunden.ViewModels"
|
xmlns:models="clr-namespace:Jugenddienst_Stunden.ViewModels"
|
||||||
xmlns:zxing="clr-namespace:ZXing.Net.Maui.Controls;assembly=ZXing.Net.MAUI.Controls"
|
xmlns:zxing="clr-namespace:ZXing.Net.Maui.Controls;assembly=ZXing.Net.MAUI.Controls"
|
||||||
xmlns:conv="clr-namespace:Jugenddienst_Stunden.Converter"
|
xmlns:conv="clr-namespace:Jugenddienst_Stunden.Converter"
|
||||||
x:Class="Jugenddienst_Stunden.Views.LoginPage"
|
x:Class="Jugenddienst_Stunden.Views.LoginPage"
|
||||||
Title="{Binding Title}">
|
Title="{Binding Title}">
|
||||||
@@ -19,52 +19,47 @@
|
|||||||
</ContentPage.Resources>
|
</ContentPage.Resources>
|
||||||
|
|
||||||
<ScrollView>
|
<ScrollView>
|
||||||
<VerticalStackLayout Spacing="10" Margin="15">
|
<VerticalStackLayout Spacing="10" Margin="15,0">
|
||||||
|
|
||||||
<HorizontalStackLayout Spacing="10">
|
<Grid>
|
||||||
<Label FontSize="22" FontAttributes="Bold" Text="{Binding AppTitle}" Margin="0,4,0,0" />
|
<Grid.ColumnDefinitions>
|
||||||
<Label FontSize="22" Text="{Binding Version}" Margin="0,4,0,0" />
|
<ColumnDefinition Width="*"/>
|
||||||
|
<ColumnDefinition Width="*"/>
|
||||||
<HorizontalStackLayout HorizontalOptions="End" Spacing="10" Margin="25,0,0,0">
|
</Grid.ColumnDefinitions>
|
||||||
<Label Text="Login QR/manuell" Margin="0,12,0,0"/>
|
<HorizontalStackLayout Spacing="10" HorizontalOptions="Start" Grid.Column="0">
|
||||||
<Switch x:Name="LoginSwitch" IsToggled="False" Toggled="Switch_Toggled">
|
<Label FontSize="22" FontAttributes="Bold" Text="{Binding AppTitle}" Margin="0,4,0,0" />
|
||||||
|
<Label FontSize="22" Text="{Binding Version}" Margin="0,4,0,0" />
|
||||||
</Switch>
|
|
||||||
</HorizontalStackLayout>
|
</HorizontalStackLayout>
|
||||||
|
<HorizontalStackLayout HorizontalOptions="End" Spacing="10" Grid.Column="1">
|
||||||
|
<Label Text="Login QR/manuell" Margin="0,12,0,0"/>
|
||||||
|
<Switch x:Name="LoginSwitch" IsToggled="False" Toggled="Switch_Toggled"/>
|
||||||
|
</HorizontalStackLayout>
|
||||||
|
</Grid>
|
||||||
|
|
||||||
</HorizontalStackLayout>
|
<Label x:Name="ServerLabel" Text="{Binding Server}" IsVisible="{Binding Server, Converter={StaticResource StringVisibilityConverter}}" />
|
||||||
|
|
||||||
|
<VerticalStackLayout x:Name="LoginQR">
|
||||||
|
<Label Text="Login mit QR-Code" FontSize="32" HorizontalOptions="Start" />
|
||||||
|
<Label x:Name="Message" Text="{Binding Message}" Margin="0,15" />
|
||||||
|
|
||||||
|
<Border HeightRequest="300" Padding="0">
|
||||||
<Label x:Name="Message" Text="{Binding Message}" HeightRequest="40" />
|
<zxing:CameraBarcodeReaderView x:Name="barcodeScannerView"
|
||||||
<Label x:Name="ServerLabel" Text="{Binding Server}" HeightRequest="25" Margin="0,0,0,10" IsVisible="{Binding Server, Converter={StaticResource StringVisibilityConverter}}" />
|
|
||||||
|
|
||||||
<Frame x:Name="LoginQR" HeightRequest="300" Padding="0" CornerRadius="0">
|
|
||||||
<zxing:CameraBarcodeReaderView x:Name="barcodeScannerView"
|
|
||||||
BarcodesDetected="BarcodesDetected"
|
BarcodesDetected="BarcodesDetected"
|
||||||
HorizontalOptions="FillAndExpand"
|
HorizontalOptions="FillAndExpand"
|
||||||
VerticalOptions="FillAndExpand"/>
|
VerticalOptions="FillAndExpand"/>
|
||||||
</Frame>
|
</Border>
|
||||||
|
</VerticalStackLayout>
|
||||||
|
|
||||||
<VerticalStackLayout x:Name="LoginManual" Padding="30" Spacing="15">
|
<VerticalStackLayout x:Name="LoginManual" Spacing="15">
|
||||||
<Label Text="Manueller Login"
|
<Label Text="Manueller Login" FontSize="32" HorizontalOptions="Start" />
|
||||||
FontSize="32"
|
|
||||||
HorizontalOptions="Start" />
|
|
||||||
|
|
||||||
<Entry x:Name="UsernameEntry"
|
<Entry x:Name="UsernameEntry" Placeholder="Benutzername" Keyboard="Email" />
|
||||||
Placeholder="Benutzername"
|
|
||||||
Keyboard="Email" />
|
|
||||||
|
|
||||||
<Entry x:Name="PasswordEntry"
|
<Entry x:Name="PasswordEntry" Placeholder="Passwort" IsPassword="True" />
|
||||||
Placeholder="Passwort"
|
|
||||||
IsPassword="True" />
|
|
||||||
|
|
||||||
<Entry x:Name="ServerEntry"
|
<Entry x:Name="ServerEntry" Placeholder="Server" Keyboard="Url" />
|
||||||
Placeholder="Server"
|
|
||||||
Keyboard="Url" />
|
|
||||||
|
|
||||||
<Button Text="Login" Clicked="OnLoginButtonClicked" />
|
<Button Text="Login" Clicked="OnLoginButtonClicked" />
|
||||||
|
|
||||||
</VerticalStackLayout>
|
</VerticalStackLayout>
|
||||||
</VerticalStackLayout>
|
</VerticalStackLayout>
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user