<?xml version="1.0" encoding="utf-8" ?>
<Window
    x:Class="MBN_STOCK_WEBVIEW.LegacyParityApp.MainWindow"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    Title="V-Stock 증권정보송출시스템 for 매일경제TV (26.03.26)">
    <Grid x:Name="Root" Background="#FF08182B">
        <Grid.Resources>
            <Storyboard x:Name="StartupIntroEnterStoryboard">
                <DoubleAnimation
                    Storyboard.TargetName="StartupBrandContent"
                    Storyboard.TargetProperty="Opacity"
                    From="0"
                    To="1"
                    Duration="0:0:0.35">
                    <DoubleAnimation.EasingFunction>
                        <CubicEase EasingMode="EaseOut" />
                    </DoubleAnimation.EasingFunction>
                </DoubleAnimation>
                <DoubleAnimation
                    Storyboard.TargetName="StartupBrandTranslate"
                    Storyboard.TargetProperty="Y"
                    From="8"
                    To="0"
                    Duration="0:0:0.35">
                    <DoubleAnimation.EasingFunction>
                        <CubicEase EasingMode="EaseOut" />
                    </DoubleAnimation.EasingFunction>
                </DoubleAnimation>
                <DoubleAnimation
                    Storyboard.TargetName="StartupHeroScale"
                    Storyboard.TargetProperty="ScaleX"
                    From="1.035"
                    To="1"
                    Duration="0:0:1.5">
                    <DoubleAnimation.EasingFunction>
                        <CubicEase EasingMode="EaseOut" />
                    </DoubleAnimation.EasingFunction>
                </DoubleAnimation>
                <DoubleAnimation
                    Storyboard.TargetName="StartupHeroScale"
                    Storyboard.TargetProperty="ScaleY"
                    From="1.035"
                    To="1"
                    Duration="0:0:1.5">
                    <DoubleAnimation.EasingFunction>
                        <CubicEase EasingMode="EaseOut" />
                    </DoubleAnimation.EasingFunction>
                </DoubleAnimation>
            </Storyboard>
            <Storyboard x:Name="StartupIntroExitStoryboard">
                <DoubleAnimation
                    Storyboard.TargetName="LoadingOverlay"
                    Storyboard.TargetProperty="Opacity"
                    To="0"
                    Duration="0:0:0.18">
                    <DoubleAnimation.EasingFunction>
                        <CubicEase EasingMode="EaseIn" />
                    </DoubleAnimation.EasingFunction>
                </DoubleAnimation>
            </Storyboard>
        </Grid.Resources>

        <WebView2
            x:Name="Browser"
            IsHitTestVisible="False" />

        <Grid
            x:Name="LoadingOverlay"
            Canvas.ZIndex="10"
            IsHitTestVisible="True"
            AutomationProperties.AccessibilityView="Content"
            AutomationProperties.Name="매일경제TV V-STOCK 시작 화면">
            <Image
                x:Name="StartupHeroImage"
                IsHitTestVisible="False"
                RenderTransformOrigin="0.5,0.5"
                Source="ms-appx:///Assets/StartupHero.png"
                Stretch="UniformToFill">
                <Image.RenderTransform>
                    <ScaleTransform x:Name="StartupHeroScale" ScaleX="1" ScaleY="1" />
                </Image.RenderTransform>
            </Image>

            <Grid IsHitTestVisible="False">
                <Grid.Background>
                    <LinearGradientBrush StartPoint="0,0" EndPoint="0,1">
                        <GradientStop Offset="0" Color="#2B000000" />
                        <GradientStop Offset="0.48" Color="#3608182B" />
                        <GradientStop Offset="1" Color="#A5061426" />
                    </LinearGradientBrush>
                </Grid.Background>
            </Grid>

            <Grid IsHitTestVisible="False">
                <Grid.Background>
                    <LinearGradientBrush StartPoint="0,0.5" EndPoint="1,0.5">
                        <GradientStop Offset="0" Color="#73061426" />
                        <GradientStop Offset="0.32" Color="#1808182B" />
                        <GradientStop Offset="0.68" Color="#1808182B" />
                        <GradientStop Offset="1" Color="#73061426" />
                    </LinearGradientBrush>
                </Grid.Background>
            </Grid>

            <Border
                x:Name="StartupBrandContent"
                HorizontalAlignment="Center"
                VerticalAlignment="Center"
                Padding="36,30,36,26"
                Background="#B30A192C"
                BorderBrush="#38FFFFFF"
                BorderThickness="1"
                CornerRadius="28"
                IsHitTestVisible="False"
                Opacity="1">
                <Border.RenderTransform>
                    <TranslateTransform x:Name="StartupBrandTranslate" Y="0" />
                </Border.RenderTransform>
                <StackPanel Spacing="0">

                    <StackPanel Orientation="Horizontal">
                        <Border
                            Width="88"
                            Height="88"
                            Margin="0,0,24,0"
                            Background="#14FFFFFF"
                            BorderBrush="#28FFFFFF"
                            BorderThickness="1"
                            CornerRadius="22">
                            <Image
                                Margin="10"
                                Source="ms-appx:///Assets/Square150x150Logo.scale-200.png"
                                Stretch="Uniform" />
                        </Border>

                        <StackPanel VerticalAlignment="Center" Spacing="8">
                            <StackPanel Orientation="Horizontal">
                                <Border
                                    Width="190"
                                    Height="50"
                                    Padding="9,7"
                                    VerticalAlignment="Center"
                                    Background="White"
                                    CornerRadius="5">
                                    <Image
                                        Source="ms-appx:///Web/Brand/logo.png"
                                        Stretch="Uniform" />
                                </Border>
                                <Border
                                    Width="1"
                                    Height="36"
                                    Margin="18,0"
                                    VerticalAlignment="Center"
                                    Background="#52FFFFFF" />
                                <TextBlock
                                    VerticalAlignment="Center"
                                    CharacterSpacing="90"
                                    FontFamily="Segoe UI Variable Display"
                                    FontSize="30"
                                    FontWeight="SemiBold"
                                    Foreground="White"
                                    Text="V-STOCK" />
                            </StackPanel>
                            <TextBlock
                                CharacterSpacing="80"
                                FontFamily="Segoe UI Variable Text"
                                FontSize="15"
                                Foreground="#BFD2E6"
                                Text="증권정보 송출 시스템" />
                        </StackPanel>
                    </StackPanel>

                    <ProgressBar
                        Width="480"
                        Height="2"
                        Margin="0,30,0,0"
                        HorizontalAlignment="Center"
                        Background="#22FFFFFF"
                        Foreground="#FFF47B20"
                        IsIndeterminate="True" />
                </StackPanel>
            </Border>
        </Grid>

        <InfoBar
            x:Name="ErrorBar"
            Margin="12"
            HorizontalAlignment="Stretch"
            VerticalAlignment="Top"
            IsClosable="True"
            IsOpen="False"
            Severity="Error"
            Title="화면을 초기화하지 못했습니다." />
    </Grid>
</Window>
