HomeView.axaml 2.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. <UserControl xmlns="https://github.com/avaloniaui"
  2. xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  3. xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
  4. xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
  5. mc:Ignorable="d" d:DesignWidth="800" d:DesignHeight="450"
  6. x:Class="HelloItQuantum.Views.HomeView"
  7. x:DataType="vm:MainWindowViewModel"
  8. xmlns:vm="using:HelloItQuantum.ViewModels"
  9. Background="#B4E3F0">
  10. <UserControl.Styles>
  11. <Style Selector="Button">
  12. <Setter Property="FontFamily" Value="{StaticResource BankGothicMediumRUS}"/>
  13. <Setter Property="FontSize" Value="50"/>
  14. <Setter Property="Foreground" Value="White"/>
  15. <Setter Property="CornerRadius" Value="20"/>
  16. <Setter Property="HorizontalContentAlignment" Value="Center"/>
  17. <Setter Property="VerticalContentAlignment" Value="Center"/>
  18. <Setter Property="VerticalAlignment" Value="Stretch"/>
  19. <Setter Property="HorizontalAlignment" Value="Stretch"/>
  20. </Style>
  21. </UserControl.Styles>
  22. <StackPanel>
  23. <Grid ColumnDefinitions="Auto, 8*" Height="{Binding $parent[StackPanel].Bounds.Height}">
  24. <Panel Grid.Column="0" VerticalAlignment="Stretch">
  25. <Image Source="/Assets/ImgAuth/фонAuth.png" Height="{Binding $parent[Grid].Bounds.Height}" HorizontalAlignment="Left"/>
  26. <Grid RowDefinitions="4*, 8*, 4*" ColumnDefinitions="2*, 8*, 5*">
  27. <Svg Grid.Row="1" Grid.Column="1"
  28. Path="/Assets/ImgAuth/ItKvantumLogoAuth.svg" HorizontalAlignment="Center" Margin="0 0 160 0"/>
  29. </Grid>
  30. </Panel>
  31. <Grid Grid.Column="1" ColumnDefinitions="12*, 1*" RowDefinitions="3*,6*,5*,3*,3*">
  32. <Border Grid.Row="1" Grid.Column="0" Margin="0 10" CornerRadius="20" Background="#006838" BoxShadow="0 5 #013E21" HorizontalAlignment="Stretch">
  33. <Button Content="Играть" Command="{Binding HomeVM.ClickPlay}" CornerRadius="20"/>
  34. </Border>
  35. <Border Grid.Row="2" Grid.Column="0" Margin="0 10" CornerRadius="20" Background="#F26527" BoxShadow="0 5 #753417" HorizontalAlignment="Stretch">
  36. <Button Content="Прогресс" Command="{Binding HomeVM.ClickStatistic}" CornerRadius="20"/>
  37. </Border>
  38. <Border Grid.Row="3" Grid.Column="0" Margin="0 10" CornerRadius="20" Background="#B21E22" BoxShadow="0 5 #470C0D" HorizontalAlignment="Stretch">
  39. <Button Content="Выйти" Command="{Binding HomeVM.ClickExit}" CornerRadius="20"/>
  40. </Border>
  41. </Grid>
  42. </Grid>
  43. </StackPanel>
  44. </UserControl>