evtl sogar fertig

This commit is contained in:
OliverT87 2025-06-04 08:56:55 +02:00
parent 68cf1e01db
commit eae41e1218
3 changed files with 64 additions and 13 deletions

View File

@ -2,10 +2,44 @@
<UserControl xmlns="https://github.com/avaloniaui" <UserControl xmlns="https://github.com/avaloniaui"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:i="using:Avalonia.Interactivity" xmlns:i="using:Avalonia.Interactivity"
x:Class="Project_Periodensystem.View.AboutPage"> x:Class="Project_Periodensystem.View.AboutPage"
Background="#5C5144">
<Grid> <Grid>
<StackPanel VerticalAlignment="Center"
HorizontalAlignment="Center">
<TextBlock Text="Author: Oliver Träger"
FontSize="20"
Foreground="White"
HorizontalAlignment="Center"
Margin="0,0,0,10"/>
<TextBlock Text="Klasse: ITFS2"
FontSize="20"
Foreground="White"
HorizontalAlignment="Center"
Margin="0,0,0,10"/>
<TextBlock Text="SS2025"
FontSize="20"
Foreground="White"
HorizontalAlignment="Center"
Margin="0,0,0,40"/>
</StackPanel>
<Button x:Name="BackButton" <Button x:Name="BackButton"
Click="BackButton_Click"> Click="BackButton_Click"
HorizontalAlignment="Left"
VerticalAlignment="Top"
Margin="20"
Padding="20,10"
Background="Black"
Foreground="White">
<Button.Styles>
<Style Selector="Button:pointerover /template/ ContentPresenter">
<Setter Property="Background" Value="DarkRed"/>
</Style>
<Style Selector="Button:pressed /template/ ContentPresenter">
<Setter Property="Background" Value="Red"/>
</Style>
</Button.Styles>
Back Back
</Button> </Button>
</Grid> </Grid>

View File

@ -1,7 +1,13 @@
<UserControl xmlns="https://github.com/avaloniaui" <UserControl xmlns="https://github.com/avaloniaui"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
x:Class="Project_Periodensystem.View.LandingPage"> x:Class="Project_Periodensystem.View.LandingPage"
Background="#5C5144">
<Grid> <Grid>
<TextBlock Text="Willkommen zum Periodensystem der Elemente!"
FontSize="36"
HorizontalAlignment="Center"
VerticalAlignment="Top"
Margin="0,40,0,0"/>
<Button Name="StartButton" <Button Name="StartButton"
Click="StartButton_Click" Click="StartButton_Click"
HorizontalAlignment="Center" HorizontalAlignment="Center"

View File

@ -3,7 +3,7 @@
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:conv="clr-namespace:Project_Periodensystem.View.Converters" xmlns:conv="clr-namespace:Project_Periodensystem.View.Converters"
x:Class="Project_Periodensystem.View.PeriodicTablePage" x:Class="Project_Periodensystem.View.PeriodicTablePage"
Background="Beige"> Background="#5C5144">
<UserControl.Resources> <UserControl.Resources>
<conv:SeriesToColorConverter x:Key="SeriesToColor"/> <conv:SeriesToColorConverter x:Key="SeriesToColor"/>
@ -19,7 +19,8 @@
<!-- Header --> <!-- Header -->
<TextBlock Grid.Row="0" <TextBlock Grid.Row="0"
Text="Periodensystem der Elemente" Text="Periodensystem der Elemente"
FontSize="24" FontSize="36"
FontWeight="Bold"
Foreground="White" Foreground="White"
HorizontalAlignment="Center" HorizontalAlignment="Center"
Margin="0,0,0,20"/> Margin="0,0,0,20"/>
@ -69,11 +70,21 @@
<!-- Footer with About Button --> <!-- Footer with About Button -->
<Button Grid.Row="2" <Button Grid.Row="2"
x:Name="AboutButton" x:Name="AboutButton"
Content="About"
Click="AboutButton_Click" Click="AboutButton_Click"
HorizontalAlignment="Right" HorizontalAlignment="Right"
Margin="0,20,0,0" Margin="0,20,0,0"
Padding="20,10"> Padding="20,10"
About Background="Black"
Foreground="White">
<Button.Styles>
<Style Selector="Button:pointerover /template/ ContentPresenter">
<Setter Property="Background" Value="DarkRed"/>
</Style>
<Style Selector="Button:pressed /template/ ContentPresenter">
<Setter Property="Background" Value="Red"/>
</Style>
</Button.Styles>
</Button> </Button>
</Grid> </Grid>
</UserControl> </UserControl>