Загрузка данных


<Window x:Class="CreateVanillaPlusPlusLauncher.MainWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
        xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
        mc:Ignorable="d"
        Title="Create: Vanilla++"
        Width="1200"
        Height="720"
        MinWidth="1000"
        MinHeight="600"
        WindowStartupLocation="CenterScreen"
        WindowStyle="None"
        AllowsTransparency="True"
        Background="Transparent">

    <Window.Resources>

        <!-- Основные цвета -->
        <SolidColorBrush x:Key="GlassBackground"
                         Color="#E6121418"/>

        <SolidColorBrush x:Key="GlassPanel"
                         Color="#CC1B1E23"/>

        <SolidColorBrush x:Key="GlassPanelLight"
                         Color="#331FFFFFF"/>

        <SolidColorBrush x:Key="Copper"
                         Color="#C98545"/>

        <SolidColorBrush x:Key="CopperLight"
                         Color="#E2A467"/>

        <SolidColorBrush x:Key="TextPrimary"
                         Color="#FFF4F1EC"/>

        <SolidColorBrush x:Key="TextSecondary"
                         Color="#FF9B9DA3"/>

        <!-- Тень окна -->
        <DropShadowEffect x:Key="WindowShadow"
                          BlurRadius="35"
                          ShadowDepth="0"
                          Opacity="0.55"
                          Color="#000000"/>

        <!-- Стиль кнопок -->
        <Style x:Key="TopBarButton"
               TargetType="Button">

            <Setter Property="Width"
                    Value="42"/>

            <Setter Property="Height"
                    Value="34"/>

            <Setter Property="Background"
                    Value="Transparent"/>

            <Setter Property="Foreground"
                    Value="{StaticResource TextSecondary}"/>

            <Setter Property="BorderThickness"
                    Value="0"/>

            <Setter Property="FontSize"
                    Value="15"/>

            <Setter Property="Cursor"
                    Value="Hand"/>

            <Setter Property="Template">

                <Setter.Value>

                    <ControlTemplate TargetType="Button">

                        <Border Background="{TemplateBinding Background}"
                                CornerRadius="8">

                            <ContentPresenter
                                HorizontalAlignment="Center"
                                VerticalAlignment="Center"/>

                        </Border>

                    </ControlTemplate>

                </Setter.Value>

            </Setter>

            <Style.Triggers>

                <Trigger Property="IsMouseOver"
                         Value="True">

                    <Setter Property="Background"
                            Value="#22FFFFFF"/>

                    <Setter Property="Foreground"
                            Value="{StaticResource TextPrimary}"/>

                </Trigger>

            </Style.Triggers>

        </Style>

    </Window.Resources>


    <!-- Внешняя оболочка -->

    <Border Margin="18"
            CornerRadius="24"
            Background="{StaticResource GlassBackground}"
            BorderBrush="#25FFFFFF"
            BorderThickness="1"
            Effect="{StaticResource WindowShadow}">

        <Grid>

            <!-- Фон -->
            <Border CornerRadius="24"
                    Background="#FF111317"/>


            <!-- Верхняя панель -->

            <Grid Height="72"
                  VerticalAlignment="Top">

                <Grid.ColumnDefinitions>

                    <ColumnDefinition Width="*"/>

                    <ColumnDefinition Width="Auto"/>

                </Grid.ColumnDefinitions>


                <!-- Логотип -->

                <StackPanel Orientation="Horizontal"
                            Margin="28,0,0,0"
                            VerticalAlignment="Center">

                    <!-- Create-акцент -->

                    <Border Width="38"
                            Height="38"
                            CornerRadius="11"
                            Background="#22C98545"
                            BorderBrush="#55C98545"
                            BorderThickness="1">

                        <TextBlock Text="⚙"
                                   FontSize="20"
                                   Foreground="{StaticResource CopperLight}"
                                   HorizontalAlignment="Center"
                                   VerticalAlignment="Center"/>

                    </Border>


                    <StackPanel Margin="14,0,0,0">

                        <TextBlock Text="CREATE: VANILLA++"
                                   FontSize="16"
                                   FontWeight="SemiBold"
                                   Foreground="{StaticResource TextPrimary}"/>

                        <TextBlock Text="LAUNCHER"
                                   FontSize="10"
                                   FontWeight="SemiBold"
                                   Foreground="{StaticResource Copper}"
                                   LetterSpacing="2"/>

                    </StackPanel>

                </StackPanel>


                <!-- Профиль -->

                <Border Grid.Column="1"
                        Margin="0,0,18,0"
                        Padding="12,7"
                        CornerRadius="14"
                        Background="#18FFFFFF"
                        BorderBrush="#18FFFFFF"
                        BorderThickness="1"
                        VerticalAlignment="Center">

                    <StackPanel Orientation="Horizontal">

                        <Border Width="34"
                                Height="34"
                                CornerRadius="10"
                                Background="#FF292D34">

                            <TextBlock Text="E"
                                       FontSize="15"
                                       FontWeight="Bold"
                                       Foreground="{StaticResource CopperLight}"
                                       HorizontalAlignment="Center"
                                       VerticalAlignment="Center"/>

                        </Border>

                        <StackPanel Margin="10,0,8,0"
                                    VerticalAlignment="Center">

                            <TextBlock Text="Игрок"
                                       FontSize="10"
                                       Foreground="{StaticResource TextSecondary}"/>

                            <TextBlock Text="Ваш аккаунт"
                                       FontSize="12"
                                       Foreground="{StaticResource TextPrimary}"/>

                        </StackPanel>

                    </StackPanel>

                </Border>

            </Grid>


            <!-- Основная область -->

            <Grid Margin="0,72,0,0">

                <Grid.ColumnDefinitions>

                    <ColumnDefinition Width="220"/>

                    <ColumnDefinition Width="*"/>

                </Grid.ColumnDefinitions>


                <!-- Левое меню -->

                <StackPanel Grid.Column="0"
                            Margin="22,25,15,25">

                    <TextBlock Text="МЕНЮ"
                               Margin="12,0,0,12"
                               FontSize="10"
                               FontWeight="SemiBold"
                               Foreground="{StaticResource TextSecondary}"/>


                    <!-- Главная -->

                    <Border Height="48"
                            CornerRadius="13"
                            Background="#1FC98545"
                            Margin="0,0,0,7">

                        <Grid>

                            <TextBlock Text="⌂"
                                       Margin="16,0,0,0"
                                       FontSize="20"
                                       Foreground="{StaticResource CopperLight}"
                                       VerticalAlignment="Center"/>

                            <TextBlock Text="Главная"
                                       Margin="50,0,0,0"
                                       FontSize="13"
                                       Foreground="{StaticResource TextPrimary}"
                                       VerticalAlignment="Center"/>

                        </Grid>

                    </Border>


                    <!-- Обновления -->

                    <Border Height="48"
                            CornerRadius="13"
                            Background="Transparent"
                            Margin="0,0,0,7">

                        <Grid>

                            <TextBlock Text="↻"
                                       Margin="16,0,0,0"
                                       FontSize="19"
                                       Foreground="{StaticResource TextSecondary}"
                                       VerticalAlignment="Center"/>

                            <TextBlock Text="Обновления"
                                       Margin="50,0,0,0"
                                       FontSize="13"
                                       Foreground="{StaticResource TextSecondary}"
                                       VerticalAlignment="Center"/>

                        </Grid>

                    </Border>


                    <!-- Аккаунт -->

                    <Border Height="48"
                            CornerRadius="13"
                            Background="Transparent"
                            Margin="0,0,0,7">

                        <Grid>

                            <TextBlock Text="●"
                                       Margin="17,0,0,0"
                                       FontSize="13"
                                       Foreground="{StaticResource TextSecondary}"
                                       VerticalAlignment="Center"/>

                            <TextBlock Text="Аккаунт"
                                       Margin="50,0,0,0"
                                       FontSize="13"
                                       Foreground="{StaticResource TextSecondary}"
                                       VerticalAlignment="Center"/>

                        </Grid>

                    </Border>


                    <!-- Настройки -->

                    <Border Height="48"
                            CornerRadius="13"
                            Background="Transparent">

                        <Grid>

                            <TextBlock Text="⚙"
                                       Margin="16,0,0,0"
                                       FontSize="18"
                                       Foreground="{StaticResource TextSecondary}"
                                       VerticalAlignment="Center"/>

                            <TextBlock Text="Настройки"
                                       Margin="50,0,0,0"
                                       FontSize="13"
                                       Foreground="{StaticResource TextSecondary}"
                                       VerticalAlignment="Center"/>

                        </Grid>

                    </Border>


                    <!-- Нижний статус -->

                    <Border Margin="0,Auto,0,0"
                            Padding="12"
                            CornerRadius="13"
                            Background="#12FFFFFF">

                        <StackPanel>

                            <TextBlock Text="СЕРВЕР"
                                       FontSize="9"
                                       Foreground="{StaticResource TextSecondary}"/>

                            <StackPanel Orientation="Horizontal"
                                        Margin="0,5,0,0">

                                <Ellipse Width="8"
                                         Height="8"
                                         Fill="#65C98945"/>

                                <TextBlock Text=" Онлайн"
                                           Margin="6,0,0,0"
                                           FontSize="11"
                                           Foreground="{StaticResource TextPrimary}"/>

                            </StackPanel>

                        </StackPanel>

                    </Border>

                </StackPanel>


                <!-- Правая часть -->

                <Grid Grid.Column="1"
                      Margin="10,25,28,25">

                    <Grid.RowDefinitions>

                        <RowDefinition Height="*"/>

                        <RowDefinition Height="150"/>

                    </Grid.RowDefinitions>


                    <!-- Главная карточка -->

                    <Border Grid.Row="0"
                            CornerRadius="22"
                            Background="{StaticResource GlassPanel}"
                            BorderBrush="#20FFFFFF"
                            BorderThickness="1"
                            Padding="32">

                        <Grid>

                            <Grid.RowDefinitions>

                                <RowDefinition Height="*"/>

                                <RowDefinition Height="Auto"/>

                            </Grid.RowDefinitions>


                            <!-- Информация -->

                            <StackPanel VerticalAlignment="Center">

                                <TextBlock Text="CREATE: VANILLA++"
                                           FontSize="30"
                                           FontWeight="Bold"
                                           Foreground="{StaticResource TextPrimary}"/>

                                <TextBlock Text="Твоя фабрика. Твой мир."
                                           Margin="0,6,0,0"
                                           FontSize="15"
                                           Foreground="{StaticResource TextSecondary}"/>


                                <StackPanel Orientation="Horizontal"
                                            Margin="0,25,0,0">

                                    <Border Padding="11,6"
                                            CornerRadius="9"
                                            Background="#18C98545">

                                        <TextBlock Text="FORGE 1.20.1"
                                                   FontSize="10"
                                                   FontWeight="SemiBold"
                                                   Foreground="{StaticResource CopperLight}"/>

                                    </Border>


                                    <Border Margin="8,0,0,0"
                                            Padding="11,6"
                                            CornerRadius="9"
                                            Background="#15FFFFFF">

                                        <TextBlock Text="BUILD 1.0.0"
                                                   FontSize="10"
                                                   Foreground="{StaticResource TextSecondary}"/>

                                    </Border>

                                </StackPanel>

                            </StackPanel>


                            <!-- Кнопки -->

                            <StackPanel Grid.Row="1"
                                        Orientation="Horizontal"
                                        HorizontalAlignment="Left">

                                <Button Width="190"
                                        Height="52"
                                        Content="▶   ИГРАТЬ"
                                        FontSize="14"
                                        FontWeight="Bold"
                                        Foreground="#FF15171A"
                                        Background="{StaticResource Copper}"
                                        BorderThickness="0"
                                        Cursor="Hand"/>

                                <Button Width="190"
                                        Height="52"
                                        Margin="12,0,0,0"
                                        Content="↻   ПРОВЕРИТЬ ОБНОВЛЕНИЯ"
                                        FontSize="11"
                                        Foreground="{StaticResource TextPrimary}"
                                        Background="#18FFFFFF"
                                        BorderBrush="#20FFFFFF"
                                        BorderThickness="1"
                                        Cursor="Hand"/>

                            </StackPanel>

                        </Grid>

                    </Border>


                    <!-- Нижние карточки -->

                    <Grid Grid.Row="1"
                          Margin="0,15,0,0">

                        <Grid.ColumnDefinitions>

                            <ColumnDefinition Width="*"/>

                            <ColumnDefinition Width="*"/>

                        </Grid.ColumnDefinitions>


                        <!-- Сервер -->

                        <Border Grid.Column="0"
                                CornerRadius="18"
                                Background="{StaticResource GlassPanel}"
                                BorderBrush="#20FFFFFF"
                                BorderThickness="1"
                                Padding="20">

                            <StackPanel>

                                <TextBlock Text="СЕРВЕР"
                                           FontSize="10"
                                           Foreground="{StaticResource TextSecondary}"/>

                                <TextBlock Text="Create: Vanilla++"
                                           Margin="0,8,0,0"
                                           FontSize="17"
                                           FontWeight="SemiBold"
                                           Foreground="{StaticResource TextPrimary}"/>

                                <TextBlock Text="●  Онлайн"
                                           Margin="0,5,0,0"
                                           FontSize="11"
                                           Foreground="{StaticResource CopperLight}"/>

                            </StackPanel>

                        </Border>


                        <!-- Версия -->

                        <Border Grid.Column="1"
                                Margin="15,0,0,0"
                                CornerRadius="18"
                                Background="{StaticResource GlassPanel}"
                                BorderBrush="#20FFFFFF"
                                BorderThickness="1"
                                Padding="20">

                            <StackPanel>

                                <TextBlock Text="СБОРКА"
                                           FontSize="10"
                                           Foreground="{StaticResource TextSecondary}"/>

                                <TextBlock Text="1.0.0"
                                           Margin="0,8,0,0"
                                           FontSize="25"
                                           FontWeight="Bold"
                                           Foreground="{StaticResource CopperLight}"/>

                                <TextBlock Text="Последняя версия"
                                           FontSize="11"
                                           Foreground="{StaticResource TextSecondary}"/>

                            </StackPanel>

                        </Border>

                    </Grid>

                </Grid>

            </Grid>


            <!-- Кнопки окна -->

            <StackPanel Orientation="Horizontal"
                        HorizontalAlignment="Right"
                        VerticalAlignment="Top"
                        Margin="0,2,28,0">

                <Button Style="{StaticResource TopBarButton}"
                        Content="—"/>

                <Button Style="{StaticResource TopBarButton}"
                        Content="□"/>

                <Button Style="{StaticResource TopBarButton}"
                        Content="×"/>

            </StackPanel>

        </Grid>

    </Border>

</Window>