119 lines
6.3 KiB
XML
119 lines
6.3 KiB
XML
<Window x:Class="CineBook.Views.MainWindow"
|
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
|
Title="CineBook — Kino Verwaltungssystem"
|
|
Height="680" Width="1100"
|
|
WindowStartupLocation="CenterScreen"
|
|
Background="#0A0A0A">
|
|
<Grid>
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition Height="56"/>
|
|
<RowDefinition Height="*"/>
|
|
<RowDefinition Height="28"/>
|
|
</Grid.RowDefinitions>
|
|
|
|
<!-- TOP BAR -->
|
|
<Border Grid.Row="0" Background="#111" BorderBrush="#F5C518" BorderThickness="0,0,0,2">
|
|
<DockPanel Margin="16,0">
|
|
<StackPanel Orientation="Horizontal" VerticalAlignment="Center">
|
|
<TextBlock Text="🎬" FontSize="22" VerticalAlignment="Center"/>
|
|
<TextBlock Text=" CINEBOOK" FontFamily="Courier New" FontSize="20"
|
|
FontWeight="Bold" Foreground="#F5C518" VerticalAlignment="Center"/>
|
|
<TextBlock Text=" — KINO VERWALTUNGSSYSTEM" FontFamily="Courier New"
|
|
FontSize="11" Foreground="#666" VerticalAlignment="Center" Margin="4,0,0,0"/>
|
|
</StackPanel>
|
|
<StackPanel DockPanel.Dock="Right" Orientation="Horizontal" VerticalAlignment="Center" HorizontalAlignment="Right">
|
|
<TextBlock x:Name="UserInfoText" FontFamily="Courier New" FontSize="12"
|
|
Foreground="#888" VerticalAlignment="Center" Margin="0,0,16,0"/>
|
|
<Button Content="[ ABMELDEN ]" Style="{StaticResource RetroButtonRed}"
|
|
Height="30" Click="LogoutClick"/>
|
|
</StackPanel>
|
|
</DockPanel>
|
|
</Border>
|
|
|
|
<!-- MAIN CONTENT - TAB NAVIGATION -->
|
|
<Grid Grid.Row="1">
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition Width="160"/>
|
|
<ColumnDefinition Width="*"/>
|
|
</Grid.ColumnDefinitions>
|
|
|
|
<!-- SIDEBAR NAV -->
|
|
<Border Background="#111" BorderBrush="#222" BorderThickness="0,0,2,0">
|
|
<StackPanel Margin="0,16,0,0">
|
|
<TextBlock Text="N A V I G A T I O N" FontFamily="Courier New" FontSize="9"
|
|
Foreground="#555" Margin="16,0,0,10"/>
|
|
|
|
<Button x:Name="BtnMovies" Content="🎥 FILME" Click="NavClick"
|
|
Tag="movies" Style="{StaticResource NavButton}"/>
|
|
<Button x:Name="BtnScreenings" Content="📅 VORFÜHRUNGEN" Click="NavClick"
|
|
Tag="screenings" Style="{StaticResource NavButton}"/>
|
|
<Button x:Name="BtnBookings" Content="🎟 BUCHUNGEN" Click="NavClick"
|
|
Tag="bookings" Style="{StaticResource NavButton}"/>
|
|
<Button x:Name="BtnAdmin" Content="🛠 ADMIN" Click="NavClick"
|
|
Tag="admin" Style="{StaticResource NavButton}" Visibility="Collapsed"/>
|
|
|
|
<Separator Background="#222" Margin="16,20"/>
|
|
|
|
<TextBlock Text="K O N T O" FontFamily="Courier New" FontSize="9"
|
|
Foreground="#555" Margin="16,0,0,10"/>
|
|
<Button x:Name="BtnMine" Content="👤 MEINE BUCHUNGEN" Click="NavClick"
|
|
Tag="mine" Style="{StaticResource NavButton}"/>
|
|
</StackPanel>
|
|
</Border>
|
|
|
|
<!-- VIEW AREA -->
|
|
<ContentControl x:Name="MainContent" Grid.Column="1" Background="#0A0A0A"/>
|
|
</Grid>
|
|
|
|
<!-- STATUS BAR -->
|
|
<Border Grid.Row="2" Background="#111" BorderBrush="#222" BorderThickness="0,1,0,0">
|
|
<DockPanel Margin="12,0">
|
|
<TextBlock x:Name="DbStatusText" FontFamily="Courier New" FontSize="10"
|
|
Foreground="#555" VerticalAlignment="Center"/>
|
|
<TextBlock x:Name="StatsText" DockPanel.Dock="Right" FontFamily="Courier New"
|
|
FontSize="10" Foreground="#555" VerticalAlignment="Center" HorizontalAlignment="Right"/>
|
|
</DockPanel>
|
|
</Border>
|
|
</Grid>
|
|
|
|
<Window.Resources>
|
|
<Style x:Key="NavButton" TargetType="Button">
|
|
<Setter Property="Background" Value="Transparent"/>
|
|
<Setter Property="Foreground" Value="#888"/>
|
|
<Setter Property="FontFamily" Value="Courier New"/>
|
|
<Setter Property="FontSize" Value="11"/>
|
|
<Setter Property="FontWeight" Value="Bold"/>
|
|
<Setter Property="HorizontalContentAlignment" Value="Left"/>
|
|
<Setter Property="Padding" Value="16,10"/>
|
|
<Setter Property="BorderThickness" Value="0"/>
|
|
<Setter Property="Cursor" Value="Hand"/>
|
|
<Setter Property="Template">
|
|
<Setter.Value>
|
|
<ControlTemplate TargetType="Button">
|
|
<Border x:Name="Bd" Background="{TemplateBinding Background}"
|
|
BorderBrush="{TemplateBinding BorderBrush}"
|
|
BorderThickness="{TemplateBinding BorderThickness}">
|
|
<ContentPresenter HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}"
|
|
VerticalAlignment="Center"
|
|
Margin="{TemplateBinding Padding}"/>
|
|
</Border>
|
|
<ControlTemplate.Triggers>
|
|
<Trigger Property="IsMouseOver" Value="True">
|
|
<Setter Property="Background" Value="#1a1a1a"/>
|
|
<Setter Property="Foreground" Value="#F5C518"/>
|
|
</Trigger>
|
|
</ControlTemplate.Triggers>
|
|
</ControlTemplate>
|
|
</Setter.Value>
|
|
</Setter>
|
|
</Style>
|
|
<Style x:Key="NavButtonActive" TargetType="Button" BasedOn="{StaticResource NavButton}">
|
|
<Setter Property="Background" Value="#1E1A00"/>
|
|
<Setter Property="Foreground" Value="#F5C518"/>
|
|
<Setter Property="BorderThickness" Value="3,0,0,0"/>
|
|
<Setter Property="BorderBrush" Value="#F5C518"/>
|
|
</Style>
|
|
</Window.Resources>
|
|
</Window>
|