PlaySectionView.axaml 4.1 KB

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