feat: implement core domain models, authentication service, and UI components for the attendance system
This commit is contained in:
@@ -0,0 +1,56 @@
|
||||
<UserControl xmlns="https://github.com/avaloniaui"
|
||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||
xmlns:vm="using:Asistencia.ViewModels"
|
||||
x:Class="Asistencia.Views.LoginView"
|
||||
x:DataType="vm:LoginViewModel">
|
||||
|
||||
<Design.DataContext>
|
||||
<vm:LoginViewModel />
|
||||
</Design.DataContext>
|
||||
|
||||
<Panel Background="{DynamicResource BackgroundSecondary}">
|
||||
<Border HorizontalAlignment="Center" VerticalAlignment="Center"
|
||||
CornerRadius="16" Padding="48" Width="420"
|
||||
Background="{DynamicResource BackgroundPrimary}"
|
||||
BorderBrush="{DynamicResource BorderColor}" BorderThickness="1">
|
||||
|
||||
<StackPanel Spacing="8">
|
||||
<TextBlock Text="Sistema de Asistencia"
|
||||
FontSize="28" FontWeight="Bold"
|
||||
Foreground="{DynamicResource PrimaryNavy}"
|
||||
HorizontalAlignment="Center" />
|
||||
|
||||
<TextBlock Text="Inicie sesion con su cuenta"
|
||||
FontSize="14" Foreground="{DynamicResource TextSecondary}"
|
||||
HorizontalAlignment="Center" Margin="0,0,0,24" />
|
||||
|
||||
<TextBlock Text="RUT" FontSize="13" FontWeight="SemiBold"
|
||||
Foreground="{DynamicResource TextPrimary}" />
|
||||
<TextBox Watermark="Ej: 12345678-9"
|
||||
Text="{Binding Rut}"
|
||||
FontSize="14" Margin="0,0,0,8" />
|
||||
|
||||
<TextBlock Text="Contrasena" FontSize="13" FontWeight="SemiBold"
|
||||
Foreground="{DynamicResource TextPrimary}" />
|
||||
<TextBox Watermark="Ingrese su contrasena"
|
||||
Text="{Binding Password}"
|
||||
PasswordChar="*"
|
||||
FontSize="14" Margin="0,0,0,16" />
|
||||
|
||||
<Button Content="Iniciar Sesion"
|
||||
Command="{Binding LoginCommand}"
|
||||
Classes="primary"
|
||||
HorizontalAlignment="Stretch"
|
||||
Height="44"
|
||||
IsEnabled="{Binding !IsLoading}" />
|
||||
|
||||
<TextBlock Text="{Binding ErrorMessage}"
|
||||
Foreground="{DynamicResource DangerColor}"
|
||||
FontSize="13"
|
||||
HorizontalAlignment="Center"
|
||||
IsVisible="{Binding HasError}"
|
||||
Margin="0,8,0,0" />
|
||||
</StackPanel>
|
||||
</Border>
|
||||
</Panel>
|
||||
</UserControl>
|
||||
Reference in New Issue
Block a user