PlaySectionView.axaml 4.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  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="1200" d:DesignHeight="650"
  6. x:Class="HelloItQuantum.Views.PlaySectionView"
  7. x:DataType="vm:MainWindowViewModel"
  8. xmlns:vm="using:HelloItQuantum.ViewModels">
  9. <UserControl.Styles>
  10. <Style Selector="TextBlock">
  11. <Setter Property="FontFamily" Value="{StaticResource BankGothicMediumRUS}" />
  12. </Style>
  13. </UserControl.Styles>
  14. <Panel Background="#C8FFF5">
  15. <StackPanel HorizontalAlignment="Stretch" Orientation="Vertical" VerticalAlignment="Stretch">
  16. <Grid ColumnDefinitions="Auto, *" RowDefinitions="*">
  17. <Image Grid.Column="0" Grid.Row="0" Source="/Assets/kvanlogo.png" Width="100" Height="100" Margin="30 0 0 0"></Image>
  18. <TextBlock Grid.Column="1" Grid.Row="0" Text="Узнай программирование" VerticalAlignment="Center"
  19. HorizontalAlignment="Stretch" FontSize="34" TextAlignment="Center"></TextBlock>
  20. </Grid>
  21. <Grid ColumnDefinitions="*, 30, *, 30, *" RowDefinitions="Auto, Auto" Background="" HorizontalAlignment="Center" VerticalAlignment="Bottom" Margin="30 20 30 0">
  22. <Border Grid.Column="0" Grid.Row="0" CornerRadius="40" Background="#0BA5CF" BoxShadow="0 5 #0534B5" VerticalAlignment="Stretch">
  23. <Button HorizontalAlignment="Stretch" VerticalAlignment="Stretch" VerticalContentAlignment="Center"
  24. Command="{Binding PlaySectionVM.GoCommands}" CornerRadius="40">
  25. <StackPanel>
  26. <Svg Path="/Assets/ImgPlaySection/icon_comands.svg" Margin="30 20"/>
  27. <Border Background="White" BorderThickness="1" HorizontalAlignment="Stretch" Margin="30 0 30 10"/>
  28. <TextBlock Text="Комманды" FontSize="24" TextAlignment="Center" Foreground="#FFFFFF" Margin="0 0 0 30"/>
  29. </StackPanel>
  30. </Button>
  31. </Border>
  32. <Rectangle Grid.Column="0" Grid.Row="1" Height="{Binding $parent[Grid].Bounds.Height}" Width="40" Fill="#54230E"/>
  33. <Border Grid.Column="2" Grid.Row="0" CornerRadius="40" Background="#F26527" BoxShadow="0 5 #973F19" VerticalAlignment="Stretch">
  34. <Button HorizontalAlignment="Stretch" VerticalAlignment="Stretch" VerticalContentAlignment="Center"
  35. Command="{Binding PlaySectionVM.GoLabyrinth}" CornerRadius="40">
  36. <StackPanel>
  37. <Svg Path="/Assets/ImgPlaySection/icon_labyrinth.svg" Margin="30 20"/>
  38. <Border Background="White" BorderThickness="1" HorizontalAlignment="Stretch" Margin="30 0 30 10"/>
  39. <TextBlock Text="Лабиринт" FontSize="24" TextAlignment="Center" Foreground="#FFFFFF" Margin="0 0 0 30"/>
  40. </StackPanel>
  41. </Button>
  42. </Border>
  43. <Rectangle Grid.Column="2" Grid.Row="1" Height="{Binding $parent[Grid].Bounds.Height}" Width="40" Fill="#54230E"/>
  44. <Border Grid.Column="4" Grid.Row="0" CornerRadius="40" Background="#00A659" BoxShadow="0 5 #006838" VerticalAlignment="Stretch">
  45. <Button HorizontalAlignment="Stretch" VerticalAlignment="Stretch" VerticalContentAlignment="Center"
  46. Command="{Binding PlaySectionVM.GoCreateFriend}" CornerRadius="40">
  47. <StackPanel>
  48. <Svg Path="/Assets/ImgPlaySection/icon_create_friend.svg" Margin="30 20"/>
  49. <Border Background="White" BorderThickness="1" HorizontalAlignment="Stretch" Margin="30 0 30 10"/>
  50. <TextBlock Text="Создай друга" FontSize="24" TextAlignment="Center" Foreground="#FFFFFF" Margin="0 0 0 30"/>
  51. </StackPanel>
  52. </Button>
  53. </Border>
  54. <Rectangle Grid.Column="4" Grid.Row="1" Height="{Binding $parent[Grid].Bounds.Height}" Width="40" Fill="#54230E"/>
  55. </Grid>
  56. </StackPanel>
  57. <!--Кнопка Далее-->
  58. <Border CornerRadius="20" Background="#B21E22" BoxShadow="0 5 #470C0D"
  59. Margin="0 20 30 20" HorizontalAlignment="Right" VerticalAlignment="Top">
  60. <Button Command="{Binding PlaySectionVM.GoBack}" CornerRadius="20">
  61. <TextBlock Text="Выйти" FontSize="28" Foreground="#FFFFFF" Margin="25 15"/>
  62. </Button>
  63. </Border>
  64. </Panel>
  65. </UserControl>